public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marek Kasik <mkasik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/scribus] epel9: Rebuild for poppler 26.01.0
Date: Wed, 04 Nov 2026 21:42:57 GMT	[thread overview]
Message-ID: <179382857794.1.4025618983098748172.rpms-scribus-422b7d61a232@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-04 21:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179382857794.1.4025618983098748172.rpms-scribus-422b7d61a232@fedoraproject.org \
    --to=mkasik@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox