From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/scribus/, app-office/scribus/files/
Date: Sat, 07 Jun 2025 14:23:00 +0000 (UTC) [thread overview]
Message-ID: <1749306174.a858be988d35179b6742cc570eadbc47ef101d3a.asturm@gentoo> (raw)
commit: a858be988d35179b6742cc570eadbc47ef101d3a
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 7 14:12:46 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 7 14:22:54 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a858be98
app-office/scribus: Fix build w/ >=app-text/poppler-25.06.0
Closes: https://bugs.gentoo.org/957138
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../scribus/files/scribus-1.6.4-poppler-25.06.0.patch | 18 ++++++++++++++++++
.../scribus/files/scribus-1.7.0-poppler-25.06.0.patch | 17 +++++++++++++++++
app-office/scribus/scribus-1.6.4.ebuild | 1 +
app-office/scribus/scribus-1.7.0.ebuild | 2 +-
4 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/app-office/scribus/files/scribus-1.6.4-poppler-25.06.0.patch b/app-office/scribus/files/scribus-1.6.4-poppler-25.06.0.patch
new file mode 100644
index 000000000000..d87e8ca8a258
--- /dev/null
+++ b/app-office/scribus/files/scribus-1.6.4-poppler-25.06.0.patch
@@ -0,0 +1,18 @@
+Index: Scribus/scribus/plugins/import/pdf/slaoutput.cpp
+===================================================================
+--- Scribus/scribus/plugins/import/pdf/slaoutput.cpp (revision 26916)
++++ Scribus/scribus/plugins/import/pdf/slaoutput.cpp (revision 26918)
+@@ -606,7 +606,12 @@
+ FormWidget *fm = m_formWidgets->getWidget(i);
+ if (!fm)
+ continue;
+- AnnotWidget *ano = fm->getWidgetAnnotation();
++#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/app-office/scribus/files/scribus-1.7.0-poppler-25.06.0.patch b/app-office/scribus/files/scribus-1.7.0-poppler-25.06.0.patch
new file mode 100644
index 000000000000..c27b43ee17dc
--- /dev/null
+++ b/app-office/scribus/files/scribus-1.7.0-poppler-25.06.0.patch
@@ -0,0 +1,17 @@
+Index: Scribus/scribus/plugins/import/pdf/slaoutput.cpp
+===================================================================
+--- Scribus/scribus/plugins/import/pdf/slaoutput.cpp (revision 26917)
++++ Scribus/scribus/plugins/import/pdf/slaoutput.cpp (revision 26919)
+@@ -580,7 +580,12 @@
+ 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/app-office/scribus/scribus-1.6.4.ebuild b/app-office/scribus/scribus-1.6.4.ebuild
index 0f17502b6e9c..32d58591201a 100644
--- a/app-office/scribus/scribus-1.6.4.ebuild
+++ b/app-office/scribus/scribus-1.6.4.ebuild
@@ -83,6 +83,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.5.3-fpic.patch
"${FILESDIR}"/${PN}-1.6.1-findhyphen.patch
"${FILESDIR}"/${PN}-1.7.0-fix-icon-version.patch
+ "${FILESDIR}"/${P}-poppler-25.06.0.patch # 1.6 branch, in 1.6.5
)
src_prepare() {
diff --git a/app-office/scribus/scribus-1.7.0.ebuild b/app-office/scribus/scribus-1.7.0.ebuild
index 11ecb660fcc5..f0868e65df27 100644
--- a/app-office/scribus/scribus-1.7.0.ebuild
+++ b/app-office/scribus/scribus-1.7.0.ebuild
@@ -80,7 +80,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.7.0-findhyphen.patch
"${FILESDIR}"/${PN}-1.7.0-dont-install-thirdparty-license.patch
"${FILESDIR}"/${PN}-1.7.0-fix-icon-version.patch
- "${FILESDIR}"/${P}-poppler-25.02.0.patch # from trunk
+ "${FILESDIR}"/${P}-poppler-25.0{2,6}.0.patch # from trunk
)
src_prepare() {
next reply other threads:[~2025-06-07 14:23 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-07 14:23 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-12 17:00 [gentoo-commits] repo/gentoo:master commit in: app-office/scribus/, app-office/scribus/files/ Andreas Sturmlechner
2025-10-06 18:36 Andreas Sturmlechner
2025-09-26 12:09 Miroslav Šulc
2025-06-29 18:57 Andreas Sturmlechner
2025-06-11 17:13 Miroslav Šulc
2025-03-07 13:16 Andreas Sturmlechner
2025-02-10 20:11 Andreas Sturmlechner
2024-11-13 22:45 Andreas Sturmlechner
2024-07-18 8:44 Miroslav Šulc
2024-06-04 10:35 Miroslav Šulc
2024-03-04 10:29 Miroslav Šulc
2024-01-14 9:30 Miroslav Šulc
2023-09-24 8:02 Miroslav Šulc
2022-09-02 4:38 Sam James
2022-05-08 18:01 Sam James
2022-03-12 15:53 Andreas Sturmlechner
2022-01-14 4:48 Ionen Wolkens
2021-08-25 10:54 Miroslav Šulc
2021-04-06 12:30 Miroslav Šulc
2020-01-02 20:26 Andreas Sturmlechner
2019-12-07 9:47 Andreas Sturmlechner
2019-11-01 18:39 Andreas Sturmlechner
2019-01-25 0:00 Andreas Sturmlechner
2019-01-14 23:34 Andreas Sturmlechner
2018-03-19 23:56 Andreas Sturmlechner
2017-12-26 1:02 Andreas Sturmlechner
2017-06-04 11:54 Justin Lecher
2017-06-04 11:49 Justin Lecher
2016-12-06 9:32 Miroslav Šulc
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=1749306174.a858be988d35179b6742cc570eadbc47ef101d3a.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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