public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/scribus] epel9: Rebuild for poppler 25.07.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 : 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
^ 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 25.07.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