From c78c4e7a05c66a531661448e3d5a38e71ce15243a44d7268aad14c45dbd98eac Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Fri, 13 May 2022 21:03:18 +0000 Subject: [PATCH] Updating link to change in openSUSE:Factory/digikam revision 204.0 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/digikam?expand=0&rev=f2acca84a19cce3673c19af5d9be9c88 --- Fix-build-with-akonadi-contacts-22.04.patch | 28 +++++++++++++++++++++ digikam.changes | 6 +++++ digikam.spec | 3 +++ 3 files changed, 37 insertions(+) create mode 100644 Fix-build-with-akonadi-contacts-22.04.patch diff --git a/Fix-build-with-akonadi-contacts-22.04.patch b/Fix-build-with-akonadi-contacts-22.04.patch new file mode 100644 index 0000000..cc12f95 --- /dev/null +++ b/Fix-build-with-akonadi-contacts-22.04.patch @@ -0,0 +1,28 @@ +From 51efe295a222070743187af0367b0bf957879337 Mon Sep 17 00:00:00 2001 +From: Antonio Rojas +Date: Fri, 22 Apr 2022 19:13:28 +0200 +Subject: [PATCH] Fix build with akonadi-contacts 22.04 + +--- + core/utilities/extrasupport/addressbook/akonadiiface.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/core/utilities/extrasupport/addressbook/akonadiiface.cpp b/core/utilities/extrasupport/addressbook/akonadiiface.cpp +index 6a78863cf6..8e65a405da 100644 +--- a/core/utilities/extrasupport/addressbook/akonadiiface.cpp ++++ b/core/utilities/extrasupport/addressbook/akonadiiface.cpp +@@ -49,7 +49,11 @@ + #include + #endif + ++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 19, 80) ++#include ++#else + #include ++#endif + #include + + #if defined(Q_OS_DARWIN) && defined(Q_CC_CLANG) +-- +GitLab + diff --git a/digikam.changes b/digikam.changes index 153feb7..4162f26 100644 --- a/digikam.changes +++ b/digikam.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 13 06:46:48 UTC 2022 - Wolfgang Bauer + +- Add Fix-build-with-akonadi-contacts-22.04.patch to fix build with + the latest Akonadi versions + ------------------------------------------------------------------- Mon Mar 7 10:17:39 UTC 2022 - Wolfgang Bauer diff --git a/digikam.spec b/digikam.spec index 62059d2..da31ab2 100644 --- a/digikam.spec +++ b/digikam.spec @@ -33,6 +33,8 @@ Source2: %{name}.keyring %endif # PATCH-FIX-OPENSUSE -- Lower minimum exiv2 version to 0.26 Patch0: 0001-Revert-Exiv2-is-now-released-with-exported-targets-u.patch +# PATCH-FIX-UPSTREAM +Patch1: Fix-build-with-akonadi-contacts-22.04.patch # QtWebEngine is not available on ppc and zSystems ExclusiveArch: %{arm} aarch64 %{ix86} x86_64 %{mips} %{riscv} BuildRequires: QtAV-devel >= 1.12 @@ -171,6 +173,7 @@ The main digikam libraries that are being shared between showfoto and digikam # Leap 15 only has exiv2 0.26 %patch0 -p1 %endif +%patch1 -p1 %build %cmake_kf5 -d build -- -DENABLE_APPSTYLES=ON -DENABLE_MEDIAPLAYER=ON