1 |
commit: a73a4d0e2b4ef921a076c4f021503f4efdb12343 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 5 22:21:19 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 5 23:16:14 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a73a4d0e |
7 |
|
8 |
kde-apps/kdepimlibs: Fix build with gpgme-1.8.0 |
9 |
|
10 |
Fake GPGME_PTHREAD_{FOUND,LIBRARIES} values for rdeps. |
11 |
|
12 |
Gentoo-bug: 600510 |
13 |
|
14 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
15 |
|
16 |
.../files/kdepimlibs-4.14.11-gpgme-1.8.0.patch | 101 +++++++++++++++++++++ |
17 |
kde-apps/kdepimlibs/kdepimlibs-4.14.10-r3.ebuild | 62 +++++++++++++ |
18 |
.../kdepimlibs-4.14.11_pre20160211-r3.ebuild | 66 ++++++++++++++ |
19 |
3 files changed, 229 insertions(+) |
20 |
|
21 |
diff --git a/kde-apps/kdepimlibs/files/kdepimlibs-4.14.11-gpgme-1.8.0.patch b/kde-apps/kdepimlibs/files/kdepimlibs-4.14.11-gpgme-1.8.0.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..83a128c8f6c |
24 |
--- /dev/null |
25 |
+++ b/kde-apps/kdepimlibs/files/kdepimlibs-4.14.11-gpgme-1.8.0.patch |
26 |
@@ -0,0 +1,101 @@ |
27 |
+commit 0b684a86d8cf918a4c2ab047a4d6c3034a93c12b |
28 |
+Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
29 |
+Date: Sun Mar 5 18:28:45 2017 +0100 |
30 |
+ |
31 |
+ Adapt to >=gpgme-1.8.0, need for -phtread is gone |
32 |
+ |
33 |
+diff --git a/cmake/modules/FindGpgme.cmake b/cmake/modules/FindGpgme.cmake |
34 |
+index 5da9a60..268314a 100644 |
35 |
+--- a/cmake/modules/FindGpgme.cmake |
36 |
++++ b/cmake/modules/FindGpgme.cmake |
37 |
+@@ -11,12 +11,12 @@ |
38 |
+ # - GPGME_INCLUDES is the same for all of the above |
39 |
+ # - GPGME_FOUND is set if any of the above was found |
40 |
+ # - *nix: |
41 |
+-# There's also three variants: gpgme{,-pthread,-pth}. |
42 |
++# There's also two variants: gpgme{,-pth}. |
43 |
+ # - The variant used determines the multithreaded use possible: |
44 |
+-# - gpgme: no multithreading support available |
45 |
+-# - gpgme-pthread: multithreading available using POSIX threads |
46 |
++# - gpgme: >=GpgME-1.8.0 multithreading support available |
47 |
+ # - gpgme-pth: multithreading available using GNU PTH (cooperative multithreading) |
48 |
+-# - GPGME_{VANILLA,PTH,PTHREAD}_{FOUND,LIBRARIES} will be set for each of the above |
49 |
++# - GPGME_{VANILLA,PTH}_{FOUND,LIBRARIES} will be set for each of the above |
50 |
++# - GPGME_PTHREAD_{FOUND,LIBRARIES} will be set for legacy compatibility |
51 |
+ # - GPGME_INCLUDES is the same for all of the above |
52 |
+ # - GPGME_FOUND is set if any of the above was found |
53 |
+ # |
54 |
+@@ -164,7 +164,7 @@ else() # not WIN32 |
55 |
+ if ( _seem_to_have_cached_gpgme ) |
56 |
+ |
57 |
+ macro_bool_to_bool( GPGME_VANILLA_LIBRARIES GPGME_VANILLA_FOUND ) |
58 |
+- macro_bool_to_bool( GPGME_PTHREAD_LIBRARIES GPGME_PTHREAD_FOUND ) |
59 |
++ macro_bool_to_bool( GPGME_VANILLA_LIBRARIES GPGME_PTHREAD_FOUND ) |
60 |
+ macro_bool_to_bool( GPGME_PTH_LIBRARIES GPGME_PTH_FOUND ) |
61 |
+ |
62 |
+ if ( GPGME_VANILLA_FOUND OR GPGME_PTHREAD_FOUND OR GPGME_PTH_FOUND ) |
63 |
+@@ -189,7 +189,7 @@ else() # not WIN32 |
64 |
+ |
65 |
+ exec_program( ${_GPGMECONFIG_EXECUTABLE} ARGS --version OUTPUT_VARIABLE GPGME_VERSION ) |
66 |
+ |
67 |
+- set( _GPGME_MIN_VERSION "1.1.7" ) |
68 |
++ set( _GPGME_MIN_VERSION "1.7.99" ) |
69 |
+ if( ${GPGME_VERSION} VERSION_GREATER ${_GPGME_MIN_VERSION} ) |
70 |
+ set( _GPGME_INSTALLED_VERSION_OK TRUE ) |
71 |
+ endif() |
72 |
+@@ -207,7 +207,7 @@ else() # not WIN32 |
73 |
+ set( _gpgme_config_vanilla_libs ) |
74 |
+ endif() |
75 |
+ |
76 |
+- exec_program( ${_GPGMECONFIG_EXECUTABLE} ARGS --thread=pthread --libs OUTPUT_VARIABLE _gpgme_config_pthread_libs RETURN_VALUE _ret ) |
77 |
++ exec_program( ${_GPGMECONFIG_EXECUTABLE} ARGS --libs OUTPUT_VARIABLE _gpgme_config_pthread_libs RETURN_VALUE _ret ) |
78 |
+ if ( _ret ) |
79 |
+ set( _gpgme_config_pthread_libs ) |
80 |
+ endif() |
81 |
+@@ -294,7 +294,7 @@ else() # not WIN32 |
82 |
+ # This comment above doesn't make sense, the four following lines seem to do nothing. Alex |
83 |
+ set( GPGME_INCLUDES ${GPGME_INCLUDES} ) |
84 |
+ set( GPGME_VANILLA_LIBRARIES ${GPGME_VANILLA_LIBRARIES} ) |
85 |
+- set( GPGME_PTHREAD_LIBRARIES ${GPGME_PTHREAD_LIBRARIES} ) |
86 |
++ set( GPGME_PTHREAD_LIBRARIES ${GPGME_VANILLA_LIBRARIES} ) |
87 |
+ set( GPGME_PTH_LIBRARIES ${GPGME_PTH_LIBRARIES} ) |
88 |
+ |
89 |
+ if ( GPGME_VANILLA_FOUND OR GPGME_PTHREAD_FOUND OR GPGME_PTH_FOUND ) |
90 |
+@@ -319,7 +319,7 @@ else() # not WIN32 |
91 |
+ |
92 |
+ macro_bool_to_01( GPGME_FOUND HAVE_GPGME ) |
93 |
+ macro_bool_to_01( GPGME_VANILLA_FOUND HAVE_GPGME_VANILLA ) |
94 |
+- macro_bool_to_01( GPGME_PTHREAD_FOUND HAVE_GPGME_PTHREAD ) |
95 |
++ macro_bool_to_01( GPGME_VANILLA_FOUND HAVE_GPGME_PTHREAD ) |
96 |
+ macro_bool_to_01( GPGME_PTH_FOUND HAVE_GPGME_PTH ) |
97 |
+ |
98 |
+ endif() # WIN32 | Unix |
99 |
+diff --git a/cmake/modules/FindQGpgme.cmake b/cmake/modules/FindQGpgme.cmake |
100 |
+index 50013eb..4d94af6 100644 |
101 |
+--- a/cmake/modules/FindQGpgme.cmake |
102 |
++++ b/cmake/modules/FindQGpgme.cmake |
103 |
+@@ -12,13 +12,8 @@ find_package(Gpgme QUIET) |
104 |
+ |
105 |
+ if(GPGME_FOUND) |
106 |
+ |
107 |
+- if ( WIN32 ) |
108 |
+- find_library(_QGPGME_EXTRA_LIBRARY gpgme++ |
109 |
+- HINTS ${GPGME_LIBRARY_DIR}) |
110 |
+- else ( WIN32 ) |
111 |
+- find_library(_QGPGME_EXTRA_LIBRARY gpgme++-pthread |
112 |
+- HINTS ${GPGME_LIBRARY_DIR}) |
113 |
+- endif() |
114 |
++ find_library(_QGPGME_EXTRA_LIBRARY gpgme++ |
115 |
++ HINTS ${GPGME_LIBRARY_DIR}) |
116 |
+ |
117 |
+ find_library(QGPGME_LIBRARY qgpgme |
118 |
+ HINTS ${GPGME_LIBRARY_DIR}) |
119 |
+@@ -34,7 +29,7 @@ if(GPGME_FOUND) |
120 |
+ if ( WIN32 ) |
121 |
+ set(QGPGME_LIBRARIES ${QGPGME_LIBRARY} ${_QGPGME_EXTRA_LIBRARY} ${GPGME_VANILLA_LIBRARIES} ${GPGME_QT_LIBRARIES}) |
122 |
+ else ( WIN32 ) |
123 |
+- set(QGPGME_LIBRARIES ${QGPGME_LIBRARY} ${_QGPGME_EXTRA_LIBRARY} ${GPGME_PTHREAD_LIBRARIES}) |
124 |
++ set(QGPGME_LIBRARIES ${QGPGME_LIBRARY} ${_QGPGME_EXTRA_LIBRARY} ${GPGME_VANILLA_LIBRARIES}) |
125 |
+ endif() |
126 |
+ |
127 |
+ endif() |
128 |
|
129 |
diff --git a/kde-apps/kdepimlibs/kdepimlibs-4.14.10-r3.ebuild b/kde-apps/kdepimlibs/kdepimlibs-4.14.10-r3.ebuild |
130 |
new file mode 100644 |
131 |
index 00000000000..214ffd2b661 |
132 |
--- /dev/null |
133 |
+++ b/kde-apps/kdepimlibs/kdepimlibs-4.14.10-r3.ebuild |
134 |
@@ -0,0 +1,62 @@ |
135 |
+# Copyright 1999-2017 Gentoo Foundation |
136 |
+# Distributed under the terms of the GNU General Public License v2 |
137 |
+ |
138 |
+EAPI=6 |
139 |
+ |
140 |
+KDE_HANDBOOK="optional" |
141 |
+CPPUNIT_REQUIRED="optional" |
142 |
+EGIT_BRANCH="KDE/4.14" |
143 |
+inherit kde4-base |
144 |
+ |
145 |
+DESCRIPTION="Common library for KDE PIM apps" |
146 |
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
147 |
+LICENSE="LGPL-2.1" |
148 |
+IUSE="debug ldap prison" |
149 |
+ |
150 |
+# some akonadi tests timeout, that probaly needs more work as its ~700 tests |
151 |
+RESTRICT="test" |
152 |
+ |
153 |
+DEPEND=" |
154 |
+ >=app-crypt/gpgme-1.8.0 |
155 |
+ >=dev-libs/boost-1.35.0-r5:= |
156 |
+ dev-libs/libgpg-error |
157 |
+ >=dev-libs/libical-0.48-r2:= |
158 |
+ dev-libs/cyrus-sasl |
159 |
+ >=dev-libs/qjson-0.8.1 |
160 |
+ kde-apps/akonadi:4 |
161 |
+ media-libs/phonon[qt4] |
162 |
+ x11-misc/shared-mime-info |
163 |
+ prison? ( kde-frameworks/prison:4 ) |
164 |
+ ldap? ( net-nds/openldap ) |
165 |
+" |
166 |
+# boost is not linked to, but headers which include it are installed |
167 |
+# bug #418071 |
168 |
+RDEPEND="${DEPEND} |
169 |
+ !=kde-apps/kdepim-runtime-4.10* |
170 |
+ !=kde-apps/kdepim-runtime-4.11* |
171 |
+ !<kde-apps/kdepim-runtime-4.4.11.1-r2:4 |
172 |
+" |
173 |
+ |
174 |
+PATCHES=( |
175 |
+ "${FILESDIR}/${PN}-4.14.11-boostincludes.patch" |
176 |
+ "${FILESDIR}/${PN}-CVE-2016-7966-r1.patch" |
177 |
+ "${FILESDIR}/${PN}-4.14.11-gpgme-1.8.0.patch" |
178 |
+) |
179 |
+ |
180 |
+src_configure() { |
181 |
+ local mycmakeargs=( |
182 |
+ -DBUILD_doc=$(usex handbook) |
183 |
+ $(cmake-utils_use_find_package ldap Ldap) |
184 |
+ $(cmake-utils_use_find_package prison Prison) |
185 |
+ ) |
186 |
+ |
187 |
+ kde4-base_src_configure |
188 |
+} |
189 |
+ |
190 |
+src_install() { |
191 |
+ kde4-base_src_install |
192 |
+ rm "${ED}"/usr/share/apps/cmake/modules/FindQtOAuth.cmake #Collides with net-im/choqok |
193 |
+ |
194 |
+ # contains constants/defines only |
195 |
+ QA_DT_NEEDED="$(find "${ED}" -type f -name 'libakonadi-kabc.so.*' -printf '/%P\n')" |
196 |
+} |
197 |
|
198 |
diff --git a/kde-apps/kdepimlibs/kdepimlibs-4.14.11_pre20160211-r3.ebuild b/kde-apps/kdepimlibs/kdepimlibs-4.14.11_pre20160211-r3.ebuild |
199 |
new file mode 100644 |
200 |
index 00000000000..2a565133618 |
201 |
--- /dev/null |
202 |
+++ b/kde-apps/kdepimlibs/kdepimlibs-4.14.11_pre20160211-r3.ebuild |
203 |
@@ -0,0 +1,66 @@ |
204 |
+# Copyright 1999-2017 Gentoo Foundation |
205 |
+# Distributed under the terms of the GNU General Public License v2 |
206 |
+ |
207 |
+EAPI=6 |
208 |
+ |
209 |
+KDE_HANDBOOK="optional" |
210 |
+CPPUNIT_REQUIRED="optional" |
211 |
+EGIT_BRANCH="KDE/4.14" |
212 |
+inherit kde4-base |
213 |
+ |
214 |
+DESCRIPTION="Common library for KDE PIM apps" |
215 |
+COMMIT_ID="a791b69599c3571ff2f4b1cc9033d8fb30f1bc33" |
216 |
+SRC_URI="https://quickgit.kde.org/?p=kdepimlibs.git&a=snapshot&h=${COMMIT_ID}&fmt=tgz -> ${P}.tar.gz" |
217 |
+S=${WORKDIR}/${PN} |
218 |
+ |
219 |
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
220 |
+LICENSE="LGPL-2.1" |
221 |
+IUSE="debug ldap prison" |
222 |
+ |
223 |
+# some akonadi tests timeout, that probaly needs more work as its ~700 tests |
224 |
+RESTRICT="test" |
225 |
+ |
226 |
+DEPEND=" |
227 |
+ >=app-crypt/gpgme-1.8.0 |
228 |
+ >=dev-libs/boost-1.35.0-r5:= |
229 |
+ dev-libs/libgpg-error |
230 |
+ >=dev-libs/libical-0.48-r2:= |
231 |
+ dev-libs/cyrus-sasl |
232 |
+ >=dev-libs/qjson-0.8.1 |
233 |
+ kde-apps/akonadi:4 |
234 |
+ media-libs/phonon[qt4] |
235 |
+ x11-misc/shared-mime-info |
236 |
+ prison? ( kde-frameworks/prison:4 ) |
237 |
+ ldap? ( net-nds/openldap ) |
238 |
+" |
239 |
+# boost is not linked to, but headers which include it are installed |
240 |
+# bug #418071 |
241 |
+RDEPEND="${DEPEND} |
242 |
+ !<kde-apps/kdepim-runtime-4.4.11.1-r2:4 |
243 |
+" |
244 |
+ |
245 |
+PATCHES=( |
246 |
+ "${FILESDIR}/${PN}-4.14.11-boostincludes.patch" |
247 |
+ "${FILESDIR}/${PN}-CVE-2016-7966-r1.patch" |
248 |
+ "${FILESDIR}/${PN}-4.14.11-gpgme-1.8.0.patch" |
249 |
+) |
250 |
+ |
251 |
+src_configure() { |
252 |
+ local mycmakeargs=( |
253 |
+ -DBUILD_doc=$(usex handbook) |
254 |
+ $(cmake-utils_use_find_package ldap Ldap) |
255 |
+ $(cmake-utils_use_find_package prison Prison) |
256 |
+ ) |
257 |
+ |
258 |
+ kde4-base_src_configure |
259 |
+} |
260 |
+ |
261 |
+src_install() { |
262 |
+ kde4-base_src_install |
263 |
+ |
264 |
+ # Collides with net-im/choqok |
265 |
+ rm "${ED}"usr/share/apps/cmake/modules/FindQtOAuth.cmake || die |
266 |
+ |
267 |
+ # contains constants/defines only |
268 |
+ QA_DT_NEEDED="$(find "${ED}" -type f -name 'libakonadi-kabc.so.*' -printf '/%P\n')" |
269 |
+} |