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 25.07.0
Date: Wed, 04 Nov 2026 21:42:52 GMT	[thread overview]
Message-ID: <179382857233.1.9338602401853344463.rpms-scribus-bc14e4109e27@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/scribus
Branch : epel9
Commit : bc14e4109e27a6812c5325bff2149a3f46646e25
Author : Marek Kasik <mkasik@redhat.com>
Date   : 2025-07-22T17:41:21+02:00
Stats  : +65/-0 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/scribus/c/bc14e4109e27a6812c5325bff2149a3f46646e25?branch=epel9

Log:
Rebuild for poppler 25.07.0

---
diff --git a/scribus-1.6.3-poppler-25.06.0.patch b/scribus-1.6.3-poppler-25.06.0.patch
new file mode 100644
index 0000000..6427f66
--- /dev/null
+++ b/scribus-1.6.3-poppler-25.06.0.patch
@@ -0,0 +1,24 @@
+From 8dcf8d777bd85a0741c455961f2de382e3ed47ec Mon Sep 17 00:00:00 2001
+From: Jean Ghali <jghali@libertysurf.fr>
+Date: Tue, 3 Jun 2025 22:50:26 +0000
+Subject: Fix build with poppler 25.06.0
+
+git-svn-id: svn://scribus.net/trunk/Scribus@26919 11d20701-8431-0410-a711-e3c959e3b870
+
+diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp
+index 0b878b6e2..63f28fa4f 100644
+--- a/scribus/plugins/import/pdf/slaoutput.cpp
++++ b/scribus/plugins/import/pdf/slaoutput.cpp
+@@ -580,7 +580,12 @@ bool SlaOutputDev::handleWidgetAnnot(Annot* annota, double xCoor, double yCoor,
+ 		FormWidget *fm = m_formWidgets->getWidget(i);
+ 		if (!fm)
+ 			continue;
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 06, 0)
++		std::shared_ptr<AnnotWidget> anoSharedPtr = fm->getWidgetAnnotation();
++		AnnotWidget* ano = anoSharedPtr.get();
++#else
+ 		AnnotWidget *ano = fm->getWidgetAnnotation();
++#endif
+ 		if (!ano)
+ 			continue;
+ 		if (ano != (AnnotWidget*) annota)

diff --git a/scribus-1.6.3-poppler-25.07.0.patch b/scribus-1.6.3-poppler-25.07.0.patch
new file mode 100644
index 0000000..2f784b0
--- /dev/null
+++ b/scribus-1.6.3-poppler-25.07.0.patch
@@ -0,0 +1,39 @@
+From ff6c6abfa8683028e548a269dee6a859b6f63335 Mon Sep 17 00:00:00 2001
+From: Jean Ghali <jghali@libertysurf.fr>
+Date: Fri, 4 Jul 2025 19:27:20 +0000
+Subject: Fix build with poppler 25.07.0
+
+git-svn-id: svn://scribus.net/trunk/Scribus@26940 11d20701-8431-0410-a711-e3c959e3b870
+
+diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp
+index 63f28fa4f..a575c91bb 100644
+--- a/scribus/plugins/import/pdf/slaoutput.cpp
++++ b/scribus/plugins/import/pdf/slaoutput.cpp
+@@ -3091,7 +3091,12 @@ void SlaOutputDev::updateFont(GfxState *state)
+ 			break;
+ 		case fontTrueType:
+ 		case fontTrueTypeOT:
+-#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(24, 11, 0)
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 7, 0)
++			if (!fileName.empty())
++				ff = FoFiTrueType::load(fileName.c_str(), fontLoc->fontNum);
++			else
++				ff = FoFiTrueType::make(fontsrc->buf, fontLoc->fontNum);
++#elif POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(24, 11, 0)
+ 			if (!fileName.empty())
+ 				ff = FoFiTrueType::load(fileName.c_str(), fontLoc->fontNum);
+ 			else
+@@ -3226,7 +3231,12 @@ void SlaOutputDev::updateFont(GfxState *state)
+ #endif
+ 			else
+ 			{
+-#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(24, 11, 0)
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(25, 7, 0)
++				if (!fileName.empty())
++					ff = FoFiTrueType::load(fileName.c_str(), fontLoc->fontNum);
++				else
++					ff = FoFiTrueType::make(fontsrc->buf, fontLoc->fontNum);
++#elif POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(24, 11, 0)
+ 				if (!fileName.empty())
+ 					ff = FoFiTrueType::load(fileName.c_str(), fontLoc->fontNum);
+ 				else

diff --git a/scribus.spec b/scribus.spec
index 759ea5c..f5d3e2d 100644
--- a/scribus.spec
+++ b/scribus.spec
@@ -15,6 +15,8 @@ Source0:        %{name}-%{version}-free.tar.xz
 #Source1:        http://downloads.sourceforge.net/%%{name}/%%{name}-%%{version}.tar.xz.asc
 
 Patch0:         scribus-1.6.3-poppler-25.02.0.patch
+Patch1:         scribus-1.6.3-poppler-25.06.0.patch
+Patch2:         scribus-1.6.3-poppler-25.07.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=179382857233.1.9338602401853344463.rpms-scribus-bc14e4109e27@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