1 |
commit: 7444080669ca1c90ca2ac120eee8735906caed0b |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Wed Apr 14 17:00:08 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 14 22:28:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74440806 |
7 |
|
8 |
app-crypt/gcr: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/20378 |
11 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
12 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
13 |
|
14 |
.../files/3.36.0-avoid-gnupg-circular-dep.patch | 52 ------------- |
15 |
app-crypt/gcr/files/3.36.0-fix-gck-slot-test.patch | 37 --------- |
16 |
app-crypt/gcr/files/3.36.0-meson-enum-race.patch | 31 -------- |
17 |
.../3.36.0-meson-fix-gtk-doc-without-ui.patch | 24 ------ |
18 |
app-crypt/gcr/files/3.36.0-meson-vapi-deps.patch | 48 ------------ |
19 |
app-crypt/gcr/files/3.36.0-optional-vapi.patch | 88 ---------------------- |
20 |
6 files changed, 280 deletions(-) |
21 |
|
22 |
diff --git a/app-crypt/gcr/files/3.36.0-avoid-gnupg-circular-dep.patch b/app-crypt/gcr/files/3.36.0-avoid-gnupg-circular-dep.patch |
23 |
deleted file mode 100644 |
24 |
index 313b65628e4..00000000000 |
25 |
--- a/app-crypt/gcr/files/3.36.0-avoid-gnupg-circular-dep.patch |
26 |
+++ /dev/null |
27 |
@@ -1,52 +0,0 @@ |
28 |
-From d3fd10fa3d3fe3e2e60a9ca5cfb401faa5e9c5bd Mon Sep 17 00:00:00 2001 |
29 |
-From: Rasmus Thomsen <oss@×××××××.dev> |
30 |
-Date: Wed, 11 Mar 2020 11:49:08 +0100 |
31 |
-Subject: [PATCH 4/6] meson: allow building without gpg(2) installed |
32 |
- |
33 |
-This avoids circular dependencies, such as gcr -> gpg2 -> pinentry -> gcr |
34 |
---- |
35 |
- meson.build | 7 +++++-- |
36 |
- meson_options.txt | 5 +++++ |
37 |
- 2 files changed, 10 insertions(+), 2 deletions(-) |
38 |
- |
39 |
-diff --git a/meson.build b/meson.build |
40 |
-index f19af0f..57b625b 100644 |
41 |
---- a/meson.build |
42 |
-+++ b/meson.build |
43 |
-@@ -41,7 +41,10 @@ gobject_dep = dependency('gobject-2.0', version: '>=' + min_glib_version) |
44 |
- gio_dep = dependency('gio-2.0', version: '>=' + min_glib_version) |
45 |
- gio_unix_dep = dependency('gio-unix-2.0',version: '>=' + min_glib_version) |
46 |
- glib_deps = [ glib_dep, gmodule_dep, gthread_dep, gobject_dep, gio_dep, gio_unix_dep, ] |
47 |
--gpg_bin = find_program('gpg2', 'gpg') |
48 |
-+gpg_path = get_option('gpg_path') |
49 |
-+if gpg_path == '' |
50 |
-+ gpg_path = find_program('gpg2', 'gpg').path() |
51 |
-+endif |
52 |
- libgcrypt_dep = dependency('libgcrypt', version: '>= 1') |
53 |
- p11kit_dep = dependency('p11-kit-1', version: '>= 0.19.0') |
54 |
- p11_system_config_modules = p11kit_dep.get_pkgconfig_variable('p11_system_config_modules') |
55 |
-@@ -65,7 +68,7 @@ conf.set('HAVE_GETTEXT', true) |
56 |
- conf.set('HAVE_LOCALE_H', cc.has_header('locale.h')) |
57 |
- conf.set('HAVE_TIMEGM', cc.has_function('timegm')) |
58 |
- conf.set('HAVE_MLOCK', cc.has_function('mlock')) |
59 |
--conf.set_quoted('GPG_EXECUTABLE', gpg_bin.path()) |
60 |
-+conf.set_quoted('GPG_EXECUTABLE', gpg_path) |
61 |
- conf.set_quoted('LIBGCRYPT_VERSION', libgcrypt_dep.version()) |
62 |
- config_file = configure_file( |
63 |
- output: 'config.h', |
64 |
-diff --git a/meson_options.txt b/meson_options.txt |
65 |
-index bbdc8e3..ae0f524 100644 |
66 |
---- a/meson_options.txt |
67 |
-+++ b/meson_options.txt |
68 |
-@@ -13,3 +13,8 @@ option('gtk_doc', |
69 |
- value: true, |
70 |
- description: 'Build the reference documentation (requires gtk-doc)', |
71 |
- ) |
72 |
-+option('gpg_path', |
73 |
-+ type: 'string', |
74 |
-+ value: '', |
75 |
-+ description: 'Path to gpg, autodetected if not set', |
76 |
-+) |
77 |
--- |
78 |
-2.20.1 |
79 |
- |
80 |
|
81 |
diff --git a/app-crypt/gcr/files/3.36.0-fix-gck-slot-test.patch b/app-crypt/gcr/files/3.36.0-fix-gck-slot-test.patch |
82 |
deleted file mode 100644 |
83 |
index 44a7919ea8d..00000000000 |
84 |
--- a/app-crypt/gcr/files/3.36.0-fix-gck-slot-test.patch |
85 |
+++ /dev/null |
86 |
@@ -1,37 +0,0 @@ |
87 |
-From 4835310d233899f8b541e1c75c79f5c3a9ebf928 Mon Sep 17 00:00:00 2001 |
88 |
-From: Simon McVittie <smcv@××××××.org> |
89 |
-Date: Sun, 15 Mar 2020 13:00:08 +0000 |
90 |
-Subject: [PATCH 1/6] gck-slot: Initialize struct tm to all-zeroes |
91 |
- |
92 |
-If the format string for strptime() doesn't include a time zone, |
93 |
-then the tm_isdst member will be left uninitialized (see NOTES in |
94 |
-Linux strptime(3)). This means we will be off by an hour from the |
95 |
-intended time if whatever arbitrary junk is on the stack happens to |
96 |
-include a positive value for tm.tm_isdst. |
97 |
- |
98 |
-Resolves: https://gitlab.gnome.org/GNOME/gcr/issues/42 |
99 |
-Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953981 |
100 |
-Signed-off-by: Simon McVittie <smcv@××××××.org> |
101 |
-(cherry picked from commit b1c8213b64fdfcad8c4ae0ff33a31105c0a0a312) |
102 |
---- |
103 |
- gck/gck-slot.c | 4 +++- |
104 |
- 1 file changed, 3 insertions(+), 1 deletion(-) |
105 |
- |
106 |
-diff --git a/gck/gck-slot.c b/gck/gck-slot.c |
107 |
-index f3b2f97..f00857f 100644 |
108 |
---- a/gck/gck-slot.c |
109 |
-+++ b/gck/gck-slot.c |
110 |
-@@ -607,7 +607,9 @@ _gck_token_info_from_pkcs11 (CK_TOKEN_INFO_PTR info) |
111 |
- { |
112 |
- GckTokenInfo *token_info; |
113 |
- gchar *string; |
114 |
-- struct tm tm; |
115 |
-+ /* Must be zero-filled, because strptime will leave tm_isdst |
116 |
-+ * unchanged */ |
117 |
-+ struct tm tm = { 0 }; |
118 |
- |
119 |
- token_info = g_new0 (GckTokenInfo, 1); |
120 |
- token_info->label = gck_string_from_chars (info->label, sizeof (info->label)); |
121 |
--- |
122 |
-2.20.1 |
123 |
- |
124 |
|
125 |
diff --git a/app-crypt/gcr/files/3.36.0-meson-enum-race.patch b/app-crypt/gcr/files/3.36.0-meson-enum-race.patch |
126 |
deleted file mode 100644 |
127 |
index ef9d7a1bc3a..00000000000 |
128 |
--- a/app-crypt/gcr/files/3.36.0-meson-enum-race.patch |
129 |
+++ /dev/null |
130 |
@@ -1,31 +0,0 @@ |
131 |
-From b04d117d5f8275a4c605743825faf2d5a28ae028 Mon Sep 17 00:00:00 2001 |
132 |
-From: Niels De Graef <nielsdegraef@×××××.com> |
133 |
-Date: Fri, 19 Jun 2020 22:37:31 +0200 |
134 |
-Subject: [PATCH 3/6] meson: Make sure gcr-oids.h is built |
135 |
- |
136 |
-Fixes https://gitlab.gnome.org/GNOME/gcr/-/issues/48 |
137 |
- |
138 |
-(cherry picked from commit 9fca6ae0aa7355c27d0922c561b9fbe18dde5b3d) |
139 |
---- |
140 |
- gcr/meson.build | 5 ++++- |
141 |
- 1 file changed, 4 insertions(+), 1 deletion(-) |
142 |
- |
143 |
-diff --git a/gcr/meson.build b/gcr/meson.build |
144 |
-index 199452f..06c3a63 100644 |
145 |
---- a/gcr/meson.build |
146 |
-+++ b/gcr/meson.build |
147 |
-@@ -178,7 +178,10 @@ endif |
148 |
- gcr_base_dep = declare_dependency( |
149 |
- link_with: gcr_base_lib, |
150 |
- include_directories: include_directories('..'), |
151 |
-- sources: gcr_enums_gen[1], # Make sure gcr-enum-types-base.h can be included |
152 |
-+ sources: [ |
153 |
-+ gcr_enums_gen[1], |
154 |
-+ gcr_oids[1], |
155 |
-+ ], |
156 |
- ) |
157 |
- |
158 |
- if get_option('introspection') |
159 |
--- |
160 |
-2.20.1 |
161 |
- |
162 |
|
163 |
diff --git a/app-crypt/gcr/files/3.36.0-meson-fix-gtk-doc-without-ui.patch b/app-crypt/gcr/files/3.36.0-meson-fix-gtk-doc-without-ui.patch |
164 |
deleted file mode 100644 |
165 |
index 72950d381ea..00000000000 |
166 |
--- a/app-crypt/gcr/files/3.36.0-meson-fix-gtk-doc-without-ui.patch |
167 |
+++ /dev/null |
168 |
@@ -1,24 +0,0 @@ |
169 |
-From 9343a5b0afb8265e02798c48ab52758d6cdfddf9 Mon Sep 17 00:00:00 2001 |
170 |
-From: Mart Raudsepp <leio@g.o> |
171 |
-Date: Tue, 18 Aug 2020 09:53:38 +0300 |
172 |
-Subject: [PATCH 6/6] build: Don't build gcr gtk-doc without ui enabled |
173 |
- |
174 |
-gcr gtk-doc includes both gcr and gcr ui documentation, so we can't build |
175 |
-it without ui enabled |
176 |
---- |
177 |
- docs/meson.build | 4 +++- |
178 |
- 1 file changed, 3 insertions(+), 1 deletion(-) |
179 |
- |
180 |
-diff --git a/docs/meson.build b/docs/meson.build |
181 |
-index f353516..8984ef2 100644 |
182 |
---- a/docs/meson.build |
183 |
-+++ b/docs/meson.build |
184 |
-@@ -1,2 +1,4 @@ |
185 |
- subdir('reference/gck') |
186 |
--subdir('reference/gcr') |
187 |
-+if get_option('gtk') |
188 |
-+ subdir('reference/gcr') |
189 |
-+endif |
190 |
--- |
191 |
-2.20.1 |
192 |
- |
193 |
|
194 |
diff --git a/app-crypt/gcr/files/3.36.0-meson-vapi-deps.patch b/app-crypt/gcr/files/3.36.0-meson-vapi-deps.patch |
195 |
deleted file mode 100644 |
196 |
index 60d1058ee65..00000000000 |
197 |
--- a/app-crypt/gcr/files/3.36.0-meson-vapi-deps.patch |
198 |
+++ /dev/null |
199 |
@@ -1,48 +0,0 @@ |
200 |
-From fc2bc7e230b745dbbd4f4b2cd82e1e5e0c7bf109 Mon Sep 17 00:00:00 2001 |
201 |
-From: Alexander Kanavin <alex.kanavin@×××××.com> |
202 |
-Date: Mon, 11 May 2020 22:19:16 +0000 |
203 |
-Subject: [PATCH 2/6] meson.build: correctly set internal vapi dependencies |
204 |
- |
205 |
-If they are set as strings, meson will supply the right |
206 |
-arguments to vapigen, but will not set the ninja dependencies |
207 |
-to ensure they get built first, and so races will occur: |
208 |
-https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/1881/steps/8/logs/step1b |
209 |
- |
210 |
-Signed-off-by: Alexander Kanavin <alex.kanavin@×××××.com> |
211 |
-(cherry picked from commit 91712a2e131692fa727a0da2868bc23e8df1bf17) |
212 |
---- |
213 |
- gcr/meson.build | 2 +- |
214 |
- ui/meson.build | 4 ++-- |
215 |
- 2 files changed, 3 insertions(+), 3 deletions(-) |
216 |
- |
217 |
-diff --git a/gcr/meson.build b/gcr/meson.build |
218 |
-index 254a933..199452f 100644 |
219 |
---- a/gcr/meson.build |
220 |
-+++ b/gcr/meson.build |
221 |
-@@ -203,7 +203,7 @@ if get_option('introspection') |
222 |
- |
223 |
- gcr_vapi = gnome.generate_vapi('gcr-@0@'.format(gcr_major_version), |
224 |
- sources: gcr_gir[0], |
225 |
-- packages: [ 'glib-2.0', 'gio-2.0', 'gck-@0@'.format(gck_major_version) ], |
226 |
-+ packages: [ 'glib-2.0', 'gio-2.0', gck_vapi ], |
227 |
- metadata_dirs: meson.current_source_dir(), |
228 |
- vapi_dirs: [ |
229 |
- build_root / 'gck', |
230 |
-diff --git a/ui/meson.build b/ui/meson.build |
231 |
-index 5ca3753..477412d 100644 |
232 |
---- a/ui/meson.build |
233 |
-+++ b/ui/meson.build |
234 |
-@@ -174,8 +174,8 @@ if get_option('introspection') |
235 |
- packages: [ |
236 |
- 'glib-2.0', |
237 |
- 'gio-2.0', |
238 |
-- 'gck-@0@'.format(gck_major_version), |
239 |
-- 'gcr-@0@'.format(gcr_major_version), |
240 |
-+ gck_vapi, |
241 |
-+ gcr_vapi, |
242 |
- 'gtk+-3.0' |
243 |
- ], |
244 |
- metadata_dirs: meson.current_source_dir(), |
245 |
--- |
246 |
-2.20.1 |
247 |
- |
248 |
|
249 |
diff --git a/app-crypt/gcr/files/3.36.0-optional-vapi.patch b/app-crypt/gcr/files/3.36.0-optional-vapi.patch |
250 |
deleted file mode 100644 |
251 |
index 50969fdae40..00000000000 |
252 |
--- a/app-crypt/gcr/files/3.36.0-optional-vapi.patch |
253 |
+++ /dev/null |
254 |
@@ -1,88 +0,0 @@ |
255 |
-From 525f5c7dbfdff6c1b24510a22eeffa804836e1bf Mon Sep 17 00:00:00 2001 |
256 |
-From: Mart Raudsepp <leio@g.o> |
257 |
-Date: Tue, 18 Aug 2020 09:36:19 +0300 |
258 |
-Subject: [PATCH 5/6] build: Make vapi optional |
259 |
- |
260 |
---- |
261 |
- gck/meson.build | 2 ++ |
262 |
- gcr/meson.build | 2 ++ |
263 |
- meson_options.txt | 5 +++++ |
264 |
- ui/meson.build | 2 ++ |
265 |
- 4 files changed, 11 insertions(+) |
266 |
- |
267 |
-diff --git a/gck/meson.build b/gck/meson.build |
268 |
-index 756b486..a15f4ed 100644 |
269 |
---- a/gck/meson.build |
270 |
-+++ b/gck/meson.build |
271 |
-@@ -142,6 +142,7 @@ if get_option('introspection') |
272 |
- install: true, |
273 |
- ) |
274 |
- |
275 |
-+if get_option('vapi') |
276 |
- gck_vapi = gnome.generate_vapi('gck-@0@'.format(gck_major_version), |
277 |
- sources: gck_gir[0], |
278 |
- metadata_dirs: meson.current_source_dir(), |
279 |
-@@ -153,6 +154,7 @@ if get_option('introspection') |
280 |
- install_dir: get_option('datadir') / 'vala' / 'vapi', |
281 |
- ) |
282 |
- endif |
283 |
-+endif |
284 |
- |
285 |
- # pkg-config file |
286 |
- pkgconfig.generate(gck_lib, |
287 |
-diff --git a/gcr/meson.build b/gcr/meson.build |
288 |
-index 06c3a63..cc642cf 100644 |
289 |
---- a/gcr/meson.build |
290 |
-+++ b/gcr/meson.build |
291 |
-@@ -204,6 +204,7 @@ if get_option('introspection') |
292 |
- install: true, |
293 |
- ) |
294 |
- |
295 |
-+if get_option('vapi') |
296 |
- gcr_vapi = gnome.generate_vapi('gcr-@0@'.format(gcr_major_version), |
297 |
- sources: gcr_gir[0], |
298 |
- packages: [ 'glib-2.0', 'gio-2.0', gck_vapi ], |
299 |
-@@ -217,6 +218,7 @@ if get_option('introspection') |
300 |
- install: true, |
301 |
- ) |
302 |
- endif |
303 |
-+endif |
304 |
- |
305 |
- # pkg-config file |
306 |
- pkgconfig.generate(gcr_base_lib, |
307 |
-diff --git a/meson_options.txt b/meson_options.txt |
308 |
-index ae0f524..f68cb95 100644 |
309 |
---- a/meson_options.txt |
310 |
-+++ b/meson_options.txt |
311 |
-@@ -18,3 +18,8 @@ option('gpg_path', |
312 |
- value: '', |
313 |
- description: 'Path to gpg, autodetected if not set', |
314 |
- ) |
315 |
-+option('vapi', |
316 |
-+ type: 'boolean', |
317 |
-+ value: true, |
318 |
-+ description: 'Generate vapi data (requires vapigen and introspection option)', |
319 |
-+) |
320 |
-diff --git a/ui/meson.build b/ui/meson.build |
321 |
-index 477412d..0b89b24 100644 |
322 |
---- a/ui/meson.build |
323 |
-+++ b/ui/meson.build |
324 |
-@@ -169,6 +169,7 @@ if get_option('introspection') |
325 |
- install: true, |
326 |
- ) |
327 |
- |
328 |
-+if get_option('vapi') |
329 |
- gcr_ui_vapi = gnome.generate_vapi('gcr-ui-@0@'.format(gcr_major_version), |
330 |
- sources: gcr_ui_gir[0], |
331 |
- packages: [ |
332 |
-@@ -190,6 +191,7 @@ if get_option('introspection') |
333 |
- install: true, |
334 |
- ) |
335 |
- endif |
336 |
-+endif |
337 |
- |
338 |
- # gcr-viewer |
339 |
- gcr_viewer = executable('gcr-viewer', |
340 |
--- |
341 |
-2.20.1 |
342 |
- |