public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/gdal/files/, sci-libs/gdal/
Date: Mon, 06 Oct 2025 18:36:41 +0000 (UTC)	[thread overview]
Message-ID: <1759775793.bf9a55a0b2aa54536d72952938f14161b90fb4f1.asturm@gentoo> (raw)

commit:     bf9a55a0b2aa54536d72952938f14161b90fb4f1
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  6 17:20:39 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Oct  6 18:36:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf9a55a0

sci-libs/gdal: Fix build w/ app-text/poppler-25.10.0

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../gdal/files/gdal-3.11.4-poppler-25.10.patch     | 42 ++++++++++++++++++++++
 sci-libs/gdal/gdal-3.11.4.ebuild                   |  4 +++
 2 files changed, 46 insertions(+)

diff --git a/sci-libs/gdal/files/gdal-3.11.4-poppler-25.10.patch b/sci-libs/gdal/files/gdal-3.11.4-poppler-25.10.patch
new file mode 100644
index 000000000000..6e46949209ca
--- /dev/null
+++ b/sci-libs/gdal/files/gdal-3.11.4-poppler-25.10.patch
@@ -0,0 +1,42 @@
+From a716a6cd5ffd779b30950f046fce91878fc97b9d Mon Sep 17 00:00:00 2001
+From: Even Rouault <even.rouault@spatialys.com>
+Date: Sun, 5 Oct 2025 00:50:51 +0200
+Subject: [PATCH] Add compatibility with Poppler 25.10 (support for older
+ versions kept)
+
+Fixes #13173
+---
+ frmts/pdf/pdfobject.cpp | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/frmts/pdf/pdfobject.cpp b/frmts/pdf/pdfobject.cpp
+index d8ded01d3e4b..2c5c44ba04d9 100644
+--- a/frmts/pdf/pdfobject.cpp
++++ b/frmts/pdf/pdfobject.cpp
+@@ -1437,7 +1437,12 @@ int64_t GDALPDFStreamPoppler::GetLength(int64_t nMaxSize)
+ 
+ static char *GooStringToCharStart(GooString &gstr)
+ {
+-    auto nLength = gstr.getLength();
++#if POPPLER_MAJOR_VERSION > 25 ||                                              \
++    (POPPLER_MAJOR_VERSION == 25 && POPPLER_MINOR_VERSION >= 10)
++    const auto nLength = gstr.size();
++#else
++    const auto nLength = gstr.getLength();
++#endif
+     if (nLength)
+     {
+         char *pszContent = static_cast<char *>(VSI_MALLOC_VERBOSE(nLength + 1));
+@@ -1514,7 +1519,12 @@ char *GDALPDFStreamPoppler::GetRawBytes()
+                  "GDALPDFStreamPoppler::GetRawBytes(): %s", e.what());
+         return nullptr;
+     }
++#if POPPLER_MAJOR_VERSION > 25 ||                                              \
++    (POPPLER_MAJOR_VERSION == 25 && POPPLER_MINOR_VERSION >= 10)
++    m_nRawLength = gstr.size();
++#else
+     m_nRawLength = gstr.getLength();
++#endif
+     return GooStringToCharStart(gstr);
+ }
+ 

diff --git a/sci-libs/gdal/gdal-3.11.4.ebuild b/sci-libs/gdal/gdal-3.11.4.ebuild
index 877e5f395937..d347a71a7942 100644
--- a/sci-libs/gdal/gdal-3.11.4.ebuild
+++ b/sci-libs/gdal/gdal-3.11.4.ebuild
@@ -141,6 +141,10 @@ EPYTEST_RERUNS=5
 EPYTEST_XDIST=1
 # distutils_enable_tests unconditionally touches BDEPEND
 
+PATCHES=(
+	"${FILESDIR}"/${P}-poppler-25.10.patch
+)
+
 pkg_setup() {
 	use java && java-pkg-opt-2_pkg_setup
 }


             reply	other threads:[~2025-10-06 18:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-06 18:36 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-10 20:11 [gentoo-commits] repo/gentoo:master commit in: sci-libs/gdal/files/, sci-libs/gdal/ Andreas Sturmlechner
2025-02-09 15:12 Andreas Sturmlechner
2023-11-21 22:36 Andreas Sturmlechner
2022-10-09 18:29 Andreas Sturmlechner
2022-03-12 15:53 Andreas Sturmlechner
2022-01-10 23:19 Sam James
2021-10-02 12:58 Andreas Sturmlechner
2021-05-28  3:47 Sam James
2020-04-13  9:21 Andreas Sturmlechner
2019-12-25 20:46 Andreas Sturmlechner
2019-11-01 18:53 Andreas Sturmlechner
2019-07-15  5:36 Andreas Sturmlechner
2019-06-12 10:03 Andreas Sturmlechner
2019-05-19 20:55 Andreas Sturmlechner
2019-01-16 20:01 Andreas Sturmlechner
2018-01-16 20:25 Andreas Sturmlechner
2017-12-20 20:08 Andreas Sturmlechner
2017-12-20 18:23 Amy Liffey
2017-07-19 18:54 Andreas Sturmlechner
2016-12-03 10:35 Amy Winston
2016-11-07 13:56 Amy Winston
2016-07-18 20:41 Sven Wegener

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=1759775793.bf9a55a0b2aa54536d72952938f14161b90fb4f1.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