public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/scribus] epel9: Rebuild for poppler 26.01.0
@ 2026-11-04 21:42 Marek Kasik
0 siblings, 0 replies; only message in thread
From: Marek Kasik @ 2026-11-04 21:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/scribus
Branch : epel9
Commit : 422b7d61a23220954f7ea7917ba42a351bd5b53c
Author : Marek Kasik <mkasik@redhat.com>
Date : 2026-01-29T12:44:35+01:00
Stats : +119/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/scribus/c/422b7d61a23220954f7ea7917ba42a351bd5b53c?branch=epel9
Log:
Rebuild for poppler 26.01.0
---
diff --git a/scribus-1.6.5-poppler-26.01.0.patch b/scribus-1.6.5-poppler-26.01.0.patch
new file mode 100644
index 0000000..311d388
--- /dev/null
+++ b/scribus-1.6.5-poppler-26.01.0.patch
@@ -0,0 +1,118 @@
+From ef7e975d6ea58c6afdddfdd1edb601a145cd9fd0 Mon Sep 17 00:00:00 2001
+From: Jean Ghali <jghali@libertysurf.fr>
+Date: Wed, 7 Jan 2026 23:12:03 +0000
+Subject: Fix build failure with poppler 26.01.0
+
+git-svn-id: svn://scribus.net/trunk/Scribus@27298 11d20701-8431-0410-a711-e3c959e3b870
+
+Modified for backport to Fedora.
+
+diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp
+index 94bd09303..c5ee20a4b 100644
+--- scribus-1.6.5/scribus/plugins/import/pdf/slaoutput.cpp
++++ scribus-1.6.5/scribus/plugins/import/pdf/slaoutput.cpp
+@@ -7,6 +7,7 @@ for which a new license (GPL+exception)
+
+ #include "slaoutput.h"
+
++#include <array>
+ #include <memory>
+ #if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(22, 2, 0)
+ #include <optional>
+@@ -2495,7 +2496,11 @@ void SlaOutputDev::drawImageMask(GfxStat
+ {
+ // qDebug() << "Draw Image Mask";
+ auto imgStr = std::make_shared<ImageStream>(str, width, 1, 1);
+-#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 1, 0)
++ bool rewindDone = imgStr->rewind();
++ if (!rewindDone)
++ return;
++#elif POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
+ bool resetDone = imgStr->reset();
+ if (!resetDone)
+ return;
+@@ -2576,7 +2581,11 @@ void SlaOutputDev::drawSoftMaskedImage(G
+ {
+ // qDebug() << "SlaOutputDev::drawSoftMaskedImage Masked Image Components" << colorMap->getNumPixelComps();
+ auto imgStr = std::make_shared<ImageStream>(str, width, colorMap->getNumPixelComps(), colorMap->getBits());
+-#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 1, 0)
++ bool rewindDone = imgStr->rewind();
++ if (!rewindDone)
++ return;
++#elif POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
+ bool resetDone = imgStr->reset();
+ if (!resetDone)
+ return;
+@@ -2598,7 +2607,11 @@ void SlaOutputDev::drawSoftMaskedImage(G
+ return;
+
+ auto mskStr = std::make_shared<ImageStream>(maskStr, maskWidth, maskColorMap->getNumPixelComps(), maskColorMap->getBits());
+-#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 1, 0)
++ bool mskRewindDone = mskStr->rewind();
++ if (!mskRewindDone)
++ return;
++#elif POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
+ bool mskResetDone = mskStr->reset();
+ if (!mskResetDone)
+ return;
+@@ -2660,7 +2673,11 @@ void SlaOutputDev::drawMaskedImage(GfxSt
+ {
+ // qDebug() << "SlaOutputDev::drawMaskedImage";
+ auto imgStr = std::make_shared<ImageStream>(str, width, colorMap->getNumPixelComps(), colorMap->getBits());
+-#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 1, 0)
++ bool rewindDone = imgStr->rewind();
++ if (!rewindDone)
++ return;
++#elif POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
+ bool resetDone = imgStr->reset();
+ if (resetDone)
+ return;
+@@ -2682,7 +2699,11 @@ void SlaOutputDev::drawMaskedImage(GfxSt
+ return;
+
+ auto mskStr = std::make_shared<ImageStream>(maskStr, maskWidth, 1, 1);
+-#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 1, 0)
++ bool mskRewindDone = mskStr->rewind();
++ if (!mskRewindDone)
++ return;
++#elif POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
+ bool mskResetDone = mskStr->reset();
+ if (!mskResetDone)
+ return;
+@@ -2732,7 +2753,11 @@ void SlaOutputDev::drawMaskedImage(GfxSt
+ void SlaOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, bool interpolate, const int* maskColors, bool inlineImg)
+ {
+ auto imgStr = std::make_shared<ImageStream>(str, width, colorMap->getNumPixelComps(), colorMap->getBits());
+-#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 1, 0)
++ bool rewindDone = imgStr->rewind();
++ if (!rewindDone)
++ return;
++#elif POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 02, 0)
+ bool resetDone = imgStr->reset();
+ if (!resetDone)
+ return;
+@@ -3125,10 +3150,18 @@ void SlaOutputDev::updateFont(GfxState *
+ #endif
+ const double *textMat = nullptr;
+ double m11, m12, m21, m22, fontSize;
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 1, 0)
++ std::array<SplashCoord, 4> mat = { 1.0, 0.0, 0.0, 1.0 };
++#else
+ SplashCoord mat[4] = { 1.0, 0.0, 0.0, 1.0 };
++#endif
+ int n = 0;
+ int faceIndex = 0;
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 1, 0)
++ std::array<SplashCoord, 6> matrix = { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 };
++#else
+ SplashCoord matrix[6] = { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 };
++#endif
+
+ m_font = nullptr;
+
diff --git a/scribus.spec b/scribus.spec
index 3e913a6..fd8e5e7 100644
--- a/scribus.spec
+++ b/scribus.spec
@@ -14,6 +14,7 @@ Source0: %{name}-%{version}-free.tar.xz
#Source0: http://downloads.sourceforge.net/%%{name}/%%{name}-%%{version}.tar.xz
#Source1: http://downloads.sourceforge.net/%%{name}/%%{name}-%%{version}.tar.xz.asc
+Patch: scribus-1.6.5-poppler-26.01.0.patch
BuildRequires: boost-devel
BuildRequires: cmake
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-04 21:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 21:42 [rpms/scribus] epel9: Rebuild for poppler 26.01.0 Marek Kasik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox