From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kfilemetadata/, kde-frameworks/kfilemetadata/files/
Date: Sat, 20 May 2023 18:03:18 +0000 (UTC) [thread overview]
Message-ID: <1684605755.3992bff6418317bb8d58bded14e977d8df15fa94.asturm@gentoo> (raw)
commit: 3992bff6418317bb8d58bded14e977d8df15fa94
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat May 20 16:59:35 2023 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat May 20 18:02:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3992bff6
kde-frameworks/kfilemetadata: Fix build with >=exiv2-0.28
Closes: https://bugs.gentoo.org/906090
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../files/kfilemetadata-5.106.0-exiv2-0.28.patch | 40 ++++++++++++++++++++++
.../kfilemetadata/kfilemetadata-5.106.0.ebuild | 2 ++
2 files changed, 42 insertions(+)
diff --git a/kde-frameworks/kfilemetadata/files/kfilemetadata-5.106.0-exiv2-0.28.patch b/kde-frameworks/kfilemetadata/files/kfilemetadata-5.106.0-exiv2-0.28.patch
new file mode 100644
index 000000000000..7c8b3012efc6
--- /dev/null
+++ b/kde-frameworks/kfilemetadata/files/kfilemetadata-5.106.0-exiv2-0.28.patch
@@ -0,0 +1,40 @@
+From 6fcce03cfd85fffbe6d7701506de49c5987fdbe5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= <bero@lindev.ch>
+Date: Thu, 18 May 2023 02:03:56 +0200
+Subject: [PATCH] Fix build with exiv2 >= 0.28
+
+---
+ src/extractors/exiv2extractor.cpp | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/src/extractors/exiv2extractor.cpp b/src/extractors/exiv2extractor.cpp
+index d39247b9..469a6325 100644
+--- a/src/extractors/exiv2extractor.cpp
++++ b/src/extractors/exiv2extractor.cpp
+@@ -75,7 +75,11 @@ QVariant toVariantDateTime(const Exiv2::Value& value)
+ QVariant toVariantLong(const Exiv2::Value& value)
+ {
+ if (value.typeId() == Exiv2::unsignedLong || value.typeId() == Exiv2::signedLong) {
++#if EXIV2_TEST_VERSION(0,28,0)
++ qlonglong val = value.toInt64();
++#else
+ qlonglong val = value.toLong();
++#endif
+ return QVariant(val);
+ }
+
+@@ -310,7 +314,11 @@ double Exiv2Extractor::fetchGpsAltitude(const Exiv2::ExifData& data)
+ it = data.findKey(Exiv2::ExifKey("Exif.GPSInfo.GPSAltitudeRef"));
+ if (it != data.end() && it->count() > 0 &&
+ (it->value().typeId() == Exiv2::unsignedByte || it->value().typeId() == Exiv2::signedByte)) {
++#if EXIV2_TEST_VERSION(0,28,0)
++ auto altRef = it->value().toInt64();
++#else
+ auto altRef = it->value().toLong();
++#endif
+ if (altRef) {
+ alt = -1.0 * ratio.first / ratio.second;
+ } else {
+--
+GitLab
+
diff --git a/kde-frameworks/kfilemetadata/kfilemetadata-5.106.0.ebuild b/kde-frameworks/kfilemetadata/kfilemetadata-5.106.0.ebuild
index 8cef200205be..42a73324ab29 100644
--- a/kde-frameworks/kfilemetadata/kfilemetadata-5.106.0.ebuild
+++ b/kde-frameworks/kfilemetadata/kfilemetadata-5.106.0.ebuild
@@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
"
BDEPEND="test? ( ${PYTHON_DEPS} )"
+PATCHES=( "${FILESDIR}/${P}-exiv2-0.28.patch" ) # bug 906090
+
pkg_setup() {
use test && python-any-r1_pkg_setup
ecm_pkg_setup
next reply other threads:[~2023-05-20 18:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-20 18:03 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-01-14 21:41 [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kfilemetadata/, kde-frameworks/kfilemetadata/files/ 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=1684605755.3992bff6418317bb8d58bded14e977d8df15fa94.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