e1214e61a2
- Fix the license tag. Zanshin has GPL-2.0-only and MIT files - Add patches to build with recent kcalendarcore versions: * 0001-Fix-compilation-with-latest-KCalCore-API-changes-Att.patch * 0001-Fix-build-with-Boost-1.70.0.patch * 0001-Look-for-AkonadiContact.patch * 0001-Remove-the-delegation-feature.patch * 0001-Fix-compilation-after-Collection-referenced-was-removed.patch * 0001-Fix-linking-of-the-cuke-steps.patch * 0001-Make-it-build-both-with-pre-and-post.patch - Drop patches: * findKF5sooner.patch * useknownGCCflag.patch * qpointerconnect.diff * fix-build-with-Qt-5.6.patch OBS-URL: https://build.opensuse.org/request/show/742248 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zanshin?expand=0&rev=5
48 lines
1.5 KiB
Diff
48 lines
1.5 KiB
Diff
commit 0d3760b646d15e66f43a6a48546eae11cbf84497
|
|
Author: Kevin Ottens <ervin@kde.org>
|
|
Date: Sun Aug 25 15:38:49 2019 +0200
|
|
|
|
Make it build both with pre and post 19.08.0 KCalCore
|
|
|
|
Summary:
|
|
Obviously this assumes a compiler supporting __has_include in C++14
|
|
mode, but that should be the case in most target platforms nowadays.
|
|
Beside this is hopefully temporary measure.
|
|
|
|
Reviewers: dfaure
|
|
|
|
Differential Revision: https://phabricator.kde.org/D23443
|
|
|
|
diff --git a/src/akonadi/akonadiserializer.cpp b/src/akonadi/akonadiserializer.cpp
|
|
index 8cb60ff..593712b 100644
|
|
--- a/src/akonadi/akonadiserializer.cpp
|
|
+++ b/src/akonadi/akonadiserializer.cpp
|
|
@@ -30,7 +30,11 @@
|
|
#include <AkonadiCore/Item>
|
|
#include <Akonadi/Notes/NoteUtils>
|
|
#include <KCalCore/Todo>
|
|
+#if __has_include(<kcalcore_version.h>)
|
|
#include <kcalcore_version.h>
|
|
+#else
|
|
+#include <kcalendarcore_version.h>
|
|
+#endif
|
|
#include <KMime/Message>
|
|
#include <QMimeDatabase>
|
|
#if KCALCORE_VERSION < QT_VERSION_CHECK(5, 6, 80)
|
|
diff --git a/tests/units/akonadi/akonadiserializertest.cpp b/tests/units/akonadi/akonadiserializertest.cpp
|
|
index e380baf..936f02c 100644
|
|
--- a/tests/units/akonadi/akonadiserializertest.cpp
|
|
+++ b/tests/units/akonadi/akonadiserializertest.cpp
|
|
@@ -34,7 +34,11 @@
|
|
#include <Akonadi/Notes/NoteUtils>
|
|
#include <AkonadiCore/Tag>
|
|
#include <KCalCore/Todo>
|
|
+#if __has_include(<kcalcore_version.h>)
|
|
#include <kcalcore_version.h>
|
|
+#else
|
|
+#include <kcalendarcore_version.h>
|
|
+#endif
|
|
#include <KMime/Message>
|
|
|
|
Q_DECLARE_METATYPE(Akonadi::Item*)
|