]> git.pld-linux.org Git - packages/libkolab.git/blame - 0002-Make-libkolab-compile-with-upstream-kdepimlibs.patch
- release 4 (by relup.sh)
[packages/libkolab.git] / 0002-Make-libkolab-compile-with-upstream-kdepimlibs.patch
CommitLineData
bb97818a
WF
1From 34edc0a846b87570c06a5942b458adb720a34a9b Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Sandro=20Knau=C3=9F?= <mail@sandroknauss.de>
3Date: Tue, 10 Feb 2015 10:59:18 +0100
4Subject: [PATCH] Make libkolab compile with upstream kdepimlibs
5
6Because GENERIC tags have not entered upstream, we have to test for
7support. Our integration branch not supports a feature flag to indicate
8the availability of that feature.
9
10KOLAB: #4448
11---
12 CMakeLists.txt | 5 +++++
13 kolabformat/kolabobject.cpp | 5 ++++-
14 2 files changed, 9 insertions(+), 1 deletion(-)
15
16diff --git a/CMakeLists.txt b/CMakeLists.txt
17index 365edac..bd53e27 100644
18--- a/CMakeLists.txt
19+++ b/CMakeLists.txt
20@@ -78,6 +78,11 @@ add_definitions( -DKDEPIMLIBS_VERSION_MAJOR=${KdepimLibs_VERSION_MAJOR} )
21 add_definitions( -DKDEPIMLIBS_VERSION_MINOR=${KdepimLibs_VERSION_MINOR} )
22 add_definitions( -DKDEPIMLIBS_VERSION_PATCH=${KdepimLibs_VERSION_PATCH} )
23
24+#Tag::GENERIC is only available at the moment at the kolab/integration branches
25+if (KDEPIMLIBS_HAS_GENERIC_TAG)
26+ add_definitions( -DKDEPIMLIBS_HAS_GENERIC_TAG)
27+endif()
28+
29 if("${KdepimLibs_VERSION}" VERSION_GREATER "4.8.40" OR USE_LIBCALENDARING)
30 add_definitions(-DKDEPIMLIBS_VERSION_DEVEL)
31 endif()
32diff --git a/kolabformat/kolabobject.cpp b/kolabformat/kolabobject.cpp
33index 681b4a5..e5c404d 100644
34--- a/kolabformat/kolabobject.cpp
35+++ b/kolabformat/kolabobject.cpp
36@@ -435,8 +435,11 @@ ObjectType KolabObjectReader::Private::readKolabV3(const KMime::Message::Ptr &ms
37 mTag = Akonadi::Tag();
38 mTag.setName(Conversion::fromStdString(relation.name()));
39 mTag.setGid(Conversion::fromStdString(configuration.uid()).toLatin1());
40+#ifdef KDEPIMLIBS_HAS_GENERIC_TAG
41 mTag.setType(Akonadi::Tag::GENERIC);
42-
43+#else
44+ mTag.setType(Akonadi::Tag::PLAIN);
45+#endif
46 mTagMembers.reserve(relation.members().size());
47 foreach (const std::string &member, relation.members()) {
48 mTagMembers << Conversion::fromStdString(member);
49--
502.1.4
51
This page took 0.10383 seconds and 4 git commands to generate.