Skip to content

Commit

Permalink
media-gfx/digikam: Fix build with >=kde-apps/akonadi-contacts-21.12.0
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/829539
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Dec 18, 2021
1 parent 024c45a commit 61895f0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
5 changes: 4 additions & 1 deletion media-gfx/digikam/digikam-7.3.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ RDEPEND="${COMMON_DEPEND}
panorama? ( media-gfx/hugin )
"

PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
PATCHES=(
"${FILESDIR}/${P}-cmake.patch"
"${FILESDIR}/${P}-akonadi-21.12.0.patch"
)

pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
Expand Down
31 changes: 31 additions & 0 deletions media-gfx/digikam/files/digikam-7.3.0-akonadi-21.12.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From 95a8ece964681fc6823e968541da2da2da06b3dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=96mer=20Fad=C4=B1l=20USTA?= <[email protected]>
Date: Sat, 2 Oct 2021 21:50:04 +0300
Subject: [PATCH] Fix compile for newer Akonadi Build Versions

---
core/utilities/extrasupport/addressbook/akonadiiface.cpp | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/core/utilities/extrasupport/addressbook/akonadiiface.cpp b/core/utilities/extrasupport/addressbook/akonadiiface.cpp
index 8e43dad0da..cb38036e39 100644
--- a/core/utilities/extrasupport/addressbook/akonadiiface.cpp
+++ b/core/utilities/extrasupport/addressbook/akonadiiface.cpp
@@ -41,7 +41,14 @@
#endif

#include <kjob.h>
+#include <akonadi_version.h>
+
+#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41)
+#include <Akonadi/Item>
+#else
#include <AkonadiCore/Item>
+#endif
+
#include <Akonadi/Contact/ContactSearchJob>
#include <KContacts/Addressee>

--
2.34.1

0 comments on commit 61895f0

Please sign in to comment.