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: kde-apps/kitinerary/files/, kde-apps/kitinerary/
Date: Fri, 31 May 2024 05:47:00 +0000 (UTC)	[thread overview]
Message-ID: <1717134393.281f676e87afb3bbe312fb59c84663bb8b75a01e.asturm@gentoo> (raw)

commit:     281f676e87afb3bbe312fb59c84663bb8b75a01e
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri May 31 05:44:54 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri May 31 05:46:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281f676e

kde-apps/kitinerary: Fix build with >=app-text/poppler-24.05

Closes: https://bugs.gentoo.org/933219
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/kitinerary-23.08.5-poppler-24.05.patch   | 37 ++++++++++++++++++++++
 kde-apps/kitinerary/kitinerary-23.08.5.ebuild      |  2 ++
 2 files changed, 39 insertions(+)

diff --git a/kde-apps/kitinerary/files/kitinerary-23.08.5-poppler-24.05.patch b/kde-apps/kitinerary/files/kitinerary-23.08.5-poppler-24.05.patch
new file mode 100644
index 000000000000..969e19e79df2
--- /dev/null
+++ b/kde-apps/kitinerary/files/kitinerary-23.08.5-poppler-24.05.patch
@@ -0,0 +1,37 @@
+From 6a0a4f455d58b96b8965667a7eb057abd244d87e Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <aacid@kde.org>
+Date: Sun, 21 Apr 2024 11:14:42 +0200
+Subject: [PATCH] Compile with newer poppler
+
+And remove ancient poppler ifdefs
+---
+ src/lib/pdf/pdfdocument.cpp              | 5 +++++
+ 1 file changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/src/lib/pdf/pdfdocument.cpp b/src/lib/pdf/pdfdocument.cpp
+index 417a0b85..f829e645 100644
+--- a/src/lib/pdf/pdfdocument.cpp
++++ b/src/lib/pdf/pdfdocument.cpp
+@@ -22,6 +22,7 @@
+ #include <PDFDoc.h>
+ #include <PDFDocEncoding.h>
+ #include <Stream.h>
++#include <UTF.h>
+ 
+ #include <cmath>
+ 
+@@ -330,7 +307,11 @@ QString gooStringToUnicode(const std::unique_ptr<GooString> &s)
+         return {};
+     }
+ 
++#if KPOPPLER_VERSION >= QT_VERSION_CHECK(24, 5, 0)
++    if (hasUnicodeByteOrderMark(s->toStr()) || hasUnicodeByteOrderMarkLE(s->toStr())) {
++#else
+     if (s->hasUnicodeMarker() || s->hasUnicodeMarkerLE()) {
++#endif
+         return QString::fromUtf16(reinterpret_cast<const char16_t*>(s->toStr().c_str()), s->toStr().size() / 2);
+     } else {
+         int len = 0;
+-- 
+GitLab
+

diff --git a/kde-apps/kitinerary/kitinerary-23.08.5.ebuild b/kde-apps/kitinerary/kitinerary-23.08.5.ebuild
index 0f5a2ef14317..f67e43bb771f 100644
--- a/kde-apps/kitinerary/kitinerary-23.08.5.ebuild
+++ b/kde-apps/kitinerary/kitinerary-23.08.5.ebuild
@@ -39,6 +39,8 @@ DEPEND="
 RDEPEND="${DEPEND}"
 BDEPEND="x11-misc/shared-mime-info"
 
+PATCHES=( "${FILESDIR}/${P}-poppler-24.05.patch" ) # bug 933219
+
 src_configure() {
 	local mycmakeargs=(
 		# sci-geosciences/osmctools; TODO: useful at all?


             reply	other threads:[~2024-05-31  5:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31  5:47 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-12-11 16:39 [gentoo-commits] repo/gentoo:master commit in: kde-apps/kitinerary/files/, kde-apps/kitinerary/ Sam James
2022-07-14  9:27 Andreas Sturmlechner
2019-11-01 18:39 Andreas Sturmlechner

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=1717134393.281f676e87afb3bbe312fb59c84663bb8b75a01e.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