1 |
commit: bc0e91a47f340a40d14c05e93b3a87de406dfa33 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 8 19:01:23 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 8 19:04:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc0e91a4 |
7 |
|
8 |
gnome-base/gnome-control-center: [QA] Move patches to distfiles |
9 |
|
10 |
Closes: https://bugs.gentoo.org/620576 |
11 |
|
12 |
gnome-base/gnome-control-center/Manifest | 8 +- |
13 |
.../files/3.22.2-fix-build-without-wayland.patch | 35 -- |
14 |
.../files/3.22.2-fix-dual-gpu-crash.patch | 32 -- |
15 |
.../files/3.24.2-fix-without-gdkwayland.patch | 47 -- |
16 |
.../files/3.24.2-gentoo-paths.patch | 107 ---- |
17 |
.../files/3.24.2-optional-cups.patch | 196 ------- |
18 |
.../files/3.24.2-optional-networkmanager.patch | 69 --- |
19 |
.../files/3.24.2-optional-wayland.patch | 46 -- |
20 |
.../files/3.24.2-optional.patch | 556 -------------------- |
21 |
.../gnome-control-center-3.22.0-gentoo-paths.patch | 120 ----- |
22 |
...ontrol-center-3.22.0-keep-panels-optional.patch | 40 -- |
23 |
...enter-3.22.0-make-networkmanager-optional.patch | 67 --- |
24 |
...ntrol-center-3.22.0-make-wayland-optional.patch | 45 -- |
25 |
.../gnome-control-center-3.22.0-optional.patch | 569 --------------------- |
26 |
.../gnome-control-center-3.22.2-r1.ebuild | 15 +- |
27 |
.../gnome-control-center-3.24.2.ebuild | 13 +- |
28 |
.../gnome-control-center-3.24.3.ebuild | 13 +- |
29 |
17 files changed, 27 insertions(+), 1951 deletions(-) |
30 |
|
31 |
diff --git a/gnome-base/gnome-control-center/Manifest b/gnome-base/gnome-control-center/Manifest |
32 |
index d59503cbc52..671fac40e8e 100644 |
33 |
--- a/gnome-base/gnome-control-center/Manifest |
34 |
+++ b/gnome-base/gnome-control-center/Manifest |
35 |
@@ -1,3 +1,5 @@ |
36 |
-DIST gnome-control-center-3.22.2.tar.xz 7277380 SHA256 7512ff3e256c1d43a746752e90a8079d0b064aae35283cfe863e19706ce22f92 SHA512 a9ed72c47703fcbbd0d6f3301be7d5b3a8eff2f0c400bde19e14c5d013404fc5907765fb20af40022f7700547d06c02203a919b4db4c191f64f3ac20cb12626a WHIRLPOOL 393fa9d1752330ebac81215f35df5da6ed4b457cbc5ce56a5497191584266161c4ab0105b16535ef245be62aec27c6556fca2416ce7b91651b266f224592b686 |
37 |
-DIST gnome-control-center-3.24.2.tar.xz 7269112 SHA256 382a4b1bf54754c1f5f83adb1faeca2e9de70df5d3d85ac6b0fb192801518f2b SHA512 5041d4907cba0ea188663ad574ddaac6c341ec22b69f7a3d6332b8ae0a572fe33eb19eed758f3d593fe6224d793f2ecc3677584ebf0971f3ae145363a1769cc0 WHIRLPOOL 6e42ec6ac877eb19cc64d5d52106662a872cd4cba25bf0fb2f0fa4a4c1d82fc4149a52f7922e1e1e6dd005133cf54d5e154f75807da58d510e7d09610b41cb7b |
38 |
-DIST gnome-control-center-3.24.3.tar.xz 7302120 SHA256 43a4d2a4c222ee4a53428a4a720f823e157e4d4c597ea1a84e438d242596cca2 SHA512 70b827f70fb95e8db0ee01e3ba80242dfdb0f90e31c391ca470c372cb6c8626f054e1e5b79e954935e9b567564129b80957091039e16e921e1c93b3d584c71cb WHIRLPOOL 3e5b9c47ef2ecf9fdba3037ace51eefab765e7dfa829586b90da267ccbd099658f48967600aaaa3259796e56805fe3c90fa55577787ca84bdd5e6cfb2729757b |
39 |
+DIST gnome-control-center-3.22.2-patchset.tar.xz 8204 BLAKE2B 5e0c32a2bc48d620def362967ec064772060f9a7d313998c2e970485ff99daf61841532335cb6fa987cf9319a5142b6731173fe400e5081df73ea505e4688dda SHA512 f20b4e53f82fcf31c635aa070e1af7f69a125eb4f67b1ac9e1e9f594da4649031d9e4cc6021a674abfee0046fe1af944f73ed68451db9fc7b168dcd6e765afe7 |
40 |
+DIST gnome-control-center-3.22.2.tar.xz 7277380 BLAKE2B 0966189d3f1e791e11920261bfc37c6ae77af0a4f312263b6623850becd3ba1ad22e886d6a96cc3cdfccc492dc998c6891d583ce8d55f9a4e08daa5de829f55e SHA512 a9ed72c47703fcbbd0d6f3301be7d5b3a8eff2f0c400bde19e14c5d013404fc5907765fb20af40022f7700547d06c02203a919b4db4c191f64f3ac20cb12626a |
41 |
+DIST gnome-control-center-3.24.2-patchset.tar.xz 8496 BLAKE2B 8bdbfcef3917ec12e82e7a5ea163f14954f9793b806c4a827620d1f693220527540f1b8a8ac0f121dae0bc8fc687f1974544b35cccd0b9e50474386c28d9ddbf SHA512 967258cf003c013881a2555be7624bad227d898cff72fe2899243692f7a06730e5dc79a849728cce6f9a7234a74b2b8433d1689c2846e8389eb9813fe5df1da1 |
42 |
+DIST gnome-control-center-3.24.2.tar.xz 7269112 BLAKE2B 41049a7176eb3de146d8ac8034cce9cdc7365eec11f6db9a1bd21964c5a30b73c22debcd48058ad72cf6ac24bf60e1956ec203502a3dadcceb83350461302387 SHA512 5041d4907cba0ea188663ad574ddaac6c341ec22b69f7a3d6332b8ae0a572fe33eb19eed758f3d593fe6224d793f2ecc3677584ebf0971f3ae145363a1769cc0 |
43 |
+DIST gnome-control-center-3.24.3.tar.xz 7302120 BLAKE2B 026ad3bb34c2bfc2f7a6d398a3c47bc3f620a3f947a0cb43336b437b4926e7a360e287d6020dc0e82eda43955cfb38ffcd7ed94593adac119d7413f63bc437c8 SHA512 70b827f70fb95e8db0ee01e3ba80242dfdb0f90e31c391ca470c372cb6c8626f054e1e5b79e954935e9b567564129b80957091039e16e921e1c93b3d584c71cb |
44 |
|
45 |
diff --git a/gnome-base/gnome-control-center/files/3.22.2-fix-build-without-wayland.patch b/gnome-base/gnome-control-center/files/3.22.2-fix-build-without-wayland.patch |
46 |
deleted file mode 100644 |
47 |
index 0895a743a71..00000000000 |
48 |
--- a/gnome-base/gnome-control-center/files/3.22.2-fix-build-without-wayland.patch |
49 |
+++ /dev/null |
50 |
@@ -1,35 +0,0 @@ |
51 |
-From 4825881b129bdde0eaa5419ece6198ebda420825 Mon Sep 17 00:00:00 2001 |
52 |
-From: Ting-Wei Lan <lantw@×××××××××.org> |
53 |
-Date: Thu, 10 Nov 2016 22:27:11 +0800 |
54 |
-Subject: [PATCH 1/2] info: Fix build when Wayland is disabled |
55 |
- |
56 |
-https://bugzilla.gnome.org/show_bug.cgi?id=774324 |
57 |
---- |
58 |
- panels/info/cc-info-panel.c | 11 +++++++++-- |
59 |
- 1 file changed, 9 insertions(+), 2 deletions(-) |
60 |
- |
61 |
-diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c |
62 |
-index 4584766..1d596a3 100644 |
63 |
---- a/panels/info/cc-info-panel.c |
64 |
-+++ b/panels/info/cc-info-panel.c |
65 |
-@@ -351,8 +351,15 @@ get_graphics_data (void) |
66 |
- display = gdk_display_get_default (); |
67 |
- |
68 |
- #if defined(GDK_WINDOWING_X11) || defined(GDK_WINDOWING_WAYLAND) |
69 |
-- if (GDK_IS_X11_DISPLAY (display) || |
70 |
-- GDK_IS_WAYLAND_DISPLAY (display)) |
71 |
-+ gboolean x11_or_wayland = FALSE; |
72 |
-+#ifdef GDK_WINDOWING_X11 |
73 |
-+ x11_or_wayland = GDK_IS_X11_DISPLAY (display); |
74 |
-+#endif |
75 |
-+#ifdef GDK_WINDOWING_WAYLAND |
76 |
-+ x11_or_wayland = x11_or_wayland || GDK_IS_WAYLAND_DISPLAY (display); |
77 |
-+#endif |
78 |
-+ |
79 |
-+ if (x11_or_wayland) |
80 |
- { |
81 |
- char *discrete_renderer = NULL; |
82 |
- char *renderer; |
83 |
--- |
84 |
-2.10.1 |
85 |
- |
86 |
|
87 |
diff --git a/gnome-base/gnome-control-center/files/3.22.2-fix-dual-gpu-crash.patch b/gnome-base/gnome-control-center/files/3.22.2-fix-dual-gpu-crash.patch |
88 |
deleted file mode 100644 |
89 |
index a390477a424..00000000000 |
90 |
--- a/gnome-base/gnome-control-center/files/3.22.2-fix-dual-gpu-crash.patch |
91 |
+++ /dev/null |
92 |
@@ -1,32 +0,0 @@ |
93 |
-From 97e4d87ae8a123d5b1711ddbaba6bc0d3a0a39a8 Mon Sep 17 00:00:00 2001 |
94 |
-From: Ondrej Holy <oholy@××××××.com> |
95 |
-Date: Mon, 5 Dec 2016 10:15:12 +0100 |
96 |
-Subject: [PATCH 2/2] info: Do not crash if Renderer is not set by |
97 |
- SessionManager |
98 |
- |
99 |
-This regression has been introduced by commit 52da4da. The |
100 |
-info panel crashes if prettify_info() returns NULL. This happens |
101 |
-if Renderer property from SessionManager is empty. |
102 |
- |
103 |
-https://bugzilla.gnome.org/show_bug.cgi?id=774240 |
104 |
---- |
105 |
- panels/info/info-cleanup.c | 3 +++ |
106 |
- 1 file changed, 3 insertions(+) |
107 |
- |
108 |
-diff --git a/panels/info/info-cleanup.c b/panels/info/info-cleanup.c |
109 |
-index 20243ec..bb47493 100644 |
110 |
---- a/panels/info/info-cleanup.c |
111 |
-+++ b/panels/info/info-cleanup.c |
112 |
-@@ -99,6 +99,9 @@ remove_duplicate_whitespace (const char *old) |
113 |
- GRegex *re; |
114 |
- GError *error; |
115 |
- |
116 |
-+ if (old == NULL) |
117 |
-+ return NULL; |
118 |
-+ |
119 |
- error = NULL; |
120 |
- re = g_regex_new ("[ \t\n\r]+", G_REGEX_MULTILINE, 0, &error); |
121 |
- if (re == NULL) |
122 |
--- |
123 |
-2.10.1 |
124 |
- |
125 |
|
126 |
diff --git a/gnome-base/gnome-control-center/files/3.24.2-fix-without-gdkwayland.patch b/gnome-base/gnome-control-center/files/3.24.2-fix-without-gdkwayland.patch |
127 |
deleted file mode 100644 |
128 |
index 0d41cca4704..00000000000 |
129 |
--- a/gnome-base/gnome-control-center/files/3.24.2-fix-without-gdkwayland.patch |
130 |
+++ /dev/null |
131 |
@@ -1,47 +0,0 @@ |
132 |
-From 13437b364fe56ffaaa421b8396ba761a2e0cc13d Mon Sep 17 00:00:00 2001 |
133 |
-From: Mart Raudsepp <leio@g.o> |
134 |
-Date: Sat, 15 Jul 2017 06:22:16 +0300 |
135 |
-Subject: [PATCH] common: Add missing GDK_WINDOWING_WAYLAND guards for |
136 |
- gsd_udev_device_manager_lookup_device |
137 |
- |
138 |
-commit 8f9259ac06db added a gdkwayland specific lookup_device implementation, guard it |
139 |
-with compile-time GDK_WINDOWING_WAYLAND as other places are. |
140 |
- |
141 |
-https://bugzilla.gnome.org/show_bug.cgi?id=780544 |
142 |
---- |
143 |
- panels/common/gsd-device-manager-udev.c | 4 ++++ |
144 |
- 1 file changed, 4 insertions(+) |
145 |
- |
146 |
-diff --git a/panels/common/gsd-device-manager-udev.c b/panels/common/gsd-device-manager-udev.c |
147 |
-index fdda02a..5dc4447 100644 |
148 |
---- a/panels/common/gsd-device-manager-udev.c |
149 |
-+++ b/panels/common/gsd-device-manager-udev.c |
150 |
-@@ -24,7 +24,9 @@ |
151 |
- #include <string.h> |
152 |
- #include <gudev/gudev.h> |
153 |
- |
154 |
-+#ifdef GDK_WINDOWING_WAYLAND |
155 |
- #include <gdk/gdkwayland.h> |
156 |
-+#endif |
157 |
- #include "gsd-device-manager-udev.h" |
158 |
- |
159 |
- struct _GsdUdevDeviceManager |
160 |
-@@ -227,6 +229,7 @@ static GsdDevice * |
161 |
- gsd_udev_device_manager_lookup_device (GsdDeviceManager *manager, |
162 |
- GdkDevice *gdk_device) |
163 |
- { |
164 |
-+#ifdef GDK_WINDOWING_WAYLAND |
165 |
- const gchar *node_path; |
166 |
- GHashTableIter iter; |
167 |
- GsdDevice *device; |
168 |
-@@ -243,6 +246,7 @@ gsd_udev_device_manager_lookup_device (GsdDeviceManager *manager, |
169 |
- return device; |
170 |
- } |
171 |
- } |
172 |
-+#endif |
173 |
- |
174 |
- return NULL; |
175 |
- } |
176 |
--- |
177 |
-2.10.2 |
178 |
- |
179 |
|
180 |
diff --git a/gnome-base/gnome-control-center/files/3.24.2-gentoo-paths.patch b/gnome-base/gnome-control-center/files/3.24.2-gentoo-paths.patch |
181 |
deleted file mode 100644 |
182 |
index 1c7f9278378..00000000000 |
183 |
--- a/gnome-base/gnome-control-center/files/3.24.2-gentoo-paths.patch |
184 |
+++ /dev/null |
185 |
@@ -1,107 +0,0 @@ |
186 |
-From 522dcaf9de0378394c4558961da99ddf0b8b87e7 Mon Sep 17 00:00:00 2001 |
187 |
-From: Timo Tambet <ttambet@×××××.com> |
188 |
-Date: Sun, 26 Feb 2017 01:04:05 +0200 |
189 |
-Subject: [PATCH 4/5] Fix some absolute paths to be appropriate for Gentoo |
190 |
- |
191 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
192 |
-Signed-off-by: Alexandre Rostovtsev <tetromino@g.o> |
193 |
-[Updated for 3.23.90; printer panel /usr/share path went away with print testpage button] |
194 |
-Signed-off-by: Timo Tambet <ttambet@×××××.com> |
195 |
---- |
196 |
- panels/datetime/Makefile.am | 1 + |
197 |
- panels/datetime/test-endianess.c | 4 ++-- |
198 |
- panels/datetime/test-timezone.c | 2 +- |
199 |
- panels/datetime/tz.h | 4 ++-- |
200 |
- panels/printers/Makefile.am | 3 +++ |
201 |
- panels/printers/pp-host.c | 2 +- |
202 |
- 6 files changed, 10 insertions(+), 6 deletions(-) |
203 |
- |
204 |
-diff --git a/panels/datetime/Makefile.am b/panels/datetime/Makefile.am |
205 |
-index a003f0b..c43062e 100644 |
206 |
---- a/panels/datetime/Makefile.am |
207 |
-+++ b/panels/datetime/Makefile.am |
208 |
-@@ -23,6 +23,7 @@ AM_CPPFLAGS = \ |
209 |
- $(DATETIME_PANEL_CFLAGS) \ |
210 |
- -DGNOMELOCALEDIR="\"$(datadir)/locale\"" \ |
211 |
- -DGNOMECC_DATA_DIR="\"$(pkgdatadir)\"" \ |
212 |
-+ -DREALDATADIR="\"$(datadir)\"" \ |
213 |
- $(NULL) |
214 |
- |
215 |
- # test-timezone is still too noisy |
216 |
-diff --git a/panels/datetime/test-endianess.c b/panels/datetime/test-endianess.c |
217 |
-index 06b2613..eb52bb6 100644 |
218 |
---- a/panels/datetime/test-endianess.c |
219 |
-+++ b/panels/datetime/test-endianess.c |
220 |
-@@ -26,11 +26,11 @@ test_endianess (void) |
221 |
- GDir *dir; |
222 |
- const char *name; |
223 |
- |
224 |
-- dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL); |
225 |
-+ dir = g_dir_open (REALDATADIR "/i18n/locales/", 0, NULL); |
226 |
- if (dir == NULL) { |
227 |
- /* Try with /usr/share/locale/ |
228 |
- * https://bugzilla.gnome.org/show_bug.cgi?id=646780 */ |
229 |
-- dir = g_dir_open ("/usr/share/locale/", 0, NULL); |
230 |
-+ dir = g_dir_open (REALDATADIR "/locale/", 0, NULL); |
231 |
- if (dir == NULL) { |
232 |
- g_assert_not_reached (); |
233 |
- } |
234 |
-diff --git a/panels/datetime/test-timezone.c b/panels/datetime/test-timezone.c |
235 |
-index db5c030..7ef5cef 100644 |
236 |
---- a/panels/datetime/test-timezone.c |
237 |
-+++ b/panels/datetime/test-timezone.c |
238 |
-@@ -2,7 +2,7 @@ |
239 |
- #include <gtk/gtk.h> |
240 |
- #include "cc-timezone-map.h" |
241 |
- |
242 |
--#define TZ_DIR "/usr/share/zoneinfo/" |
243 |
-+#define TZ_DIR REALDATADIR "/zoneinfo/" |
244 |
- |
245 |
- static GList * |
246 |
- get_timezone_list (GList *tzs, |
247 |
-diff --git a/panels/datetime/tz.h b/panels/datetime/tz.h |
248 |
-index 93905b3..1ba918c 100644 |
249 |
---- a/panels/datetime/tz.h |
250 |
-+++ b/panels/datetime/tz.h |
251 |
-@@ -28,9 +28,9 @@ |
252 |
- #include <glib.h> |
253 |
- |
254 |
- #ifndef __sun |
255 |
--# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab" |
256 |
-+# define TZ_DATA_FILE REALDATADIR "/zoneinfo/zone.tab" |
257 |
- #else |
258 |
--# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" |
259 |
-+# define TZ_DATA_FILE REALDATADIR "/lib/zoneinfo/tab/zone_sun.tab" |
260 |
- #endif |
261 |
- |
262 |
- typedef struct _TzDB TzDB; |
263 |
-diff --git a/panels/printers/Makefile.am b/panels/printers/Makefile.am |
264 |
-index 575cda3..d5da0bf 100644 |
265 |
---- a/panels/printers/Makefile.am |
266 |
-+++ b/panels/printers/Makefile.am |
267 |
-@@ -9,6 +9,9 @@ AM_CPPFLAGS = \ |
268 |
- -I$(top_srcdir)/shell/ \ |
269 |
- -DGNOMELOCALEDIR="\"$(datadir)/locale\"" \ |
270 |
- -DTEST_SRCDIR=\""$(srcdir)/"\" \ |
271 |
-+ -DREALDATADIR="\"$(datadir)\"" \ |
272 |
-+ -DPREFIX="\"$(prefix)\"" \ |
273 |
-+ -DLIBEXECDIR="\"$(libexecdir)\"" \ |
274 |
- $(NULL) |
275 |
- |
276 |
- noinst_LTLIBRARIES = libprinters.la |
277 |
-diff --git a/panels/printers/pp-host.c b/panels/printers/pp-host.c |
278 |
-index 8af77e9..bb6df78 100644 |
279 |
---- a/panels/printers/pp-host.c |
280 |
-+++ b/panels/printers/pp-host.c |
281 |
-@@ -267,7 +267,7 @@ _pp_host_get_snmp_devices_thread (GSimpleAsyncResult *res, |
282 |
- data->devices->devices = NULL; |
283 |
- |
284 |
- argv = g_new0 (gchar *, 3); |
285 |
-- argv[0] = g_strdup ("/usr/lib/cups/backend/snmp"); |
286 |
-+ argv[0] = g_strdup (LIBEXECDIR "/cups/backend/snmp"); |
287 |
- argv[1] = g_strdup (priv->hostname); |
288 |
- |
289 |
- /* Use SNMP to get printer's informations */ |
290 |
--- |
291 |
-2.10.2 |
292 |
- |
293 |
|
294 |
diff --git a/gnome-base/gnome-control-center/files/3.24.2-optional-cups.patch b/gnome-base/gnome-control-center/files/3.24.2-optional-cups.patch |
295 |
deleted file mode 100644 |
296 |
index c634d77a53c..00000000000 |
297 |
--- a/gnome-base/gnome-control-center/files/3.24.2-optional-cups.patch |
298 |
+++ /dev/null |
299 |
@@ -1,196 +0,0 @@ |
300 |
-From f76cc5a97dfa94b03abb878767c8dc15b4461685 Mon Sep 17 00:00:00 2001 |
301 |
-From: Mart Raudsepp <leio@g.o> |
302 |
-Date: Fri, 14 Jul 2017 05:07:42 +0300 |
303 |
-Subject: [PATCH 5/5] Make printers panel optional |
304 |
- |
305 |
---- |
306 |
- configure.ac | 96 ++++++++++++++++++++++++++++++------------------- |
307 |
- panels/Makefile.am | 7 ++-- |
308 |
- shell/Makefile.am | 7 ++-- |
309 |
- shell/cc-panel-loader.c | 4 +++ |
310 |
- 4 files changed, 73 insertions(+), 41 deletions(-) |
311 |
- |
312 |
-diff --git a/configure.ac b/configure.ac |
313 |
-index 4af24d0..7629621 100644 |
314 |
---- a/configure.ac |
315 |
-+++ b/configure.ac |
316 |
-@@ -189,9 +189,59 @@ AS_IF([test "$enable_color" != "no"], |
317 |
- ]) |
318 |
- AM_CONDITIONAL(BUILD_COLOR, test "$build_color" = "yes") |
319 |
- |
320 |
--PKG_CHECK_MODULES(PRINTERS_PANEL, $COMMON_MODULES |
321 |
-- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION |
322 |
-- smbclient) |
323 |
-+# Check for CUPS 1.4 or newer |
324 |
-+build_printers=no |
325 |
-+AC_PROG_SED |
326 |
-+ |
327 |
-+AC_ARG_ENABLE([cups], |
328 |
-+ AS_HELP_STRING([--disable-cups], [disable printer management panel]), |
329 |
-+ [], |
330 |
-+ enable_cups=yes |
331 |
-+) |
332 |
-+ |
333 |
-+AS_IF([test "x$enable_cups" != "xno"], |
334 |
-+ [ |
335 |
-+ PKG_CHECK_MODULES(PRINTERS_PANEL, $COMMON_MODULES |
336 |
-+ polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION |
337 |
-+ smbclient) |
338 |
-+ |
339 |
-+ AC_PATH_PROG(CUPS_CONFIG, cups-config) |
340 |
-+ |
341 |
-+ if test x$CUPS_CONFIG = x; then |
342 |
-+ AC_MSG_ERROR([cups-config not found]) |
343 |
-+ fi |
344 |
-+ |
345 |
-+ CUPS_API_VERSION=`$CUPS_CONFIG --api-version` |
346 |
-+ CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 1` |
347 |
-+ CUPS_API_MINOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 2` |
348 |
-+ |
349 |
-+ AC_CHECK_HEADERS([cups/cups.h cups/http.h cups/ipp.h cups/ppd.h],, |
350 |
-+ AC_MSG_ERROR([CUPS headers not found])) |
351 |
-+ |
352 |
-+ if ! test $CUPS_API_MAJOR -gt 1 -o \ |
353 |
-+ $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 4 ; then |
354 |
-+ AC_MSG_ERROR([CUPS 1.4 or newer not found]) |
355 |
-+ fi |
356 |
-+ |
357 |
-+ # https://bugzilla.gnome.org/show_bug.cgi?id=696766 |
358 |
-+ CUPS_CPPFLAGS="" |
359 |
-+ if test $CUPS_API_MAJOR -gt 1 -o \ |
360 |
-+ $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 6 ; then |
361 |
-+ CUPS_CPPFLAGS=-D_PPD_DEPRECATED="" |
362 |
-+ fi |
363 |
-+ |
364 |
-+ CUPS_CFLAGS=`$CUPS_CONFIG --cflags | $SED -e 's/-O\w*//g' -e 's/-m\w*//g'` |
365 |
-+ CUPS_LIBS=`$CUPS_CONFIG --libs` |
366 |
-+ |
367 |
-+ AC_SUBST(CUPS_CPPFLAGS) |
368 |
-+ AC_SUBST(CUPS_CFLAGS) |
369 |
-+ AC_SUBST(CUPS_LIBS) |
370 |
-+ build_printers=yes |
371 |
-+ AC_DEFINE(BUILD_PRINTERS, 1, [Define to 1 to build the Printers panel]) |
372 |
-+ ] |
373 |
-+) |
374 |
-+AM_CONDITIONAL(BUILD_PRINTERS, test "x$build_printers" = "xyes") |
375 |
-+ |
376 |
- PKG_CHECK_MODULES(PRIVACY_PANEL, $COMMON_MODULES) |
377 |
- PKG_CHECK_MODULES(REGION_PANEL, $COMMON_MODULES |
378 |
- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION |
379 |
-@@ -334,40 +384,6 @@ AS_IF([test "$enable_bluetooth" = "yes"], |
380 |
- ]) |
381 |
- AM_CONDITIONAL(BUILD_BLUETOOTH, [test "$have_bluetooth" = "yes"]) |
382 |
- |
383 |
--# Check for CUPS 1.4 or newer |
384 |
--AC_PROG_SED |
385 |
-- |
386 |
--AC_PATH_PROG(CUPS_CONFIG, cups-config) |
387 |
-- |
388 |
--if test x$CUPS_CONFIG = x; then |
389 |
-- AC_MSG_ERROR([cups-config not found]) |
390 |
--fi |
391 |
-- |
392 |
--CUPS_API_VERSION=`$CUPS_CONFIG --api-version` |
393 |
--CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 1` |
394 |
--CUPS_API_MINOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 2` |
395 |
-- |
396 |
--AC_CHECK_HEADERS([cups/cups.h cups/http.h cups/ipp.h cups/ppd.h],, |
397 |
-- AC_MSG_ERROR([CUPS headers not found])) |
398 |
-- |
399 |
--if ! test $CUPS_API_MAJOR -gt 1 -o \ |
400 |
-- $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 4 ; then |
401 |
-- AC_MSG_ERROR([CUPS 1.4 or newer not found]) |
402 |
--fi |
403 |
-- |
404 |
--# https://bugzilla.gnome.org/show_bug.cgi?id=696766 |
405 |
--CUPS_CPPFLAGS="" |
406 |
--if test $CUPS_API_MAJOR -gt 1 -o \ |
407 |
-- $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 6 ; then |
408 |
-- CUPS_CPPFLAGS=-D_PPD_DEPRECATED="" |
409 |
--fi |
410 |
-- |
411 |
--CUPS_CFLAGS=`$CUPS_CONFIG --cflags | $SED -e 's/-O\w*//g' -e 's/-m\w*//g'` |
412 |
--CUPS_LIBS=`$CUPS_CONFIG --libs` |
413 |
--AC_SUBST(CUPS_CPPFLAGS) |
414 |
--AC_SUBST(CUPS_CFLAGS) |
415 |
--AC_SUBST(CUPS_LIBS) |
416 |
-- |
417 |
- # Optional dependency for the user accounts panel |
418 |
- AC_ARG_WITH([cheese], |
419 |
- AS_HELP_STRING([--with-cheese], [enable cheese webcam support]),, |
420 |
-@@ -671,6 +687,12 @@ else |
421 |
- AC_MSG_NOTICE([ Color panel disabled]) |
422 |
- fi |
423 |
- |
424 |
-+if test "x$build_printers" = "xyes"; then |
425 |
-+ AC_MSG_NOTICE([** CUPS (Printers panel)]) |
426 |
-+else |
427 |
-+ AC_MSG_NOTICE([ Printers panel disabled]) |
428 |
-+fi |
429 |
-+ |
430 |
- |
431 |
- if test "x$have_cheese" = "xyes"; then |
432 |
- AC_MSG_NOTICE([** Cheese (Users panel webcam support)]) |
433 |
-diff --git a/panels/Makefile.am b/panels/Makefile.am |
434 |
-index 2806c45..b68561e 100644 |
435 |
---- a/panels/Makefile.am |
436 |
-+++ b/panels/Makefile.am |
437 |
-@@ -14,8 +14,11 @@ SUBDIRS= \ |
438 |
- datetime \ |
439 |
- search \ |
440 |
- privacy \ |
441 |
-- sharing \ |
442 |
-- printers |
443 |
-+ sharing |
444 |
-+ |
445 |
-+if BUILD_PRINTERS |
446 |
-+SUBDIRS += printers |
447 |
-+endif |
448 |
- |
449 |
- if BUILD_COLOR |
450 |
- SUBDIRS += color |
451 |
-diff --git a/shell/Makefile.am b/shell/Makefile.am |
452 |
-index f3e49c7..af782ea 100644 |
453 |
---- a/shell/Makefile.am |
454 |
-+++ b/shell/Makefile.am |
455 |
-@@ -91,8 +91,11 @@ gnome_control_center_LDADD = \ |
456 |
- $(top_builddir)/panels/sharing/libsharing.la \ |
457 |
- $(top_builddir)/panels/sound/libsound.la \ |
458 |
- $(top_builddir)/panels/universal-access/libuniversal-access.la \ |
459 |
-- $(top_builddir)/panels/user-accounts/libuser-accounts.la \ |
460 |
-- $(top_builddir)/panels/printers/libprinters.la |
461 |
-+ $(top_builddir)/panels/user-accounts/libuser-accounts.la |
462 |
-+ |
463 |
-+if BUILD_PRINTERS |
464 |
-+gnome_control_center_LDADD += $(top_builddir)/panels/printers/libprinters.la |
465 |
-+endif |
466 |
- |
467 |
- if BUILD_WACOM |
468 |
- gnome_control_center_LDADD += $(top_builddir)/panels/wacom/libwacom-properties.la |
469 |
-diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c |
470 |
-index 9104b45..a713079 100644 |
471 |
---- a/shell/cc-panel-loader.c |
472 |
-+++ b/shell/cc-panel-loader.c |
473 |
-@@ -49,7 +49,9 @@ extern GType cc_notifications_panel_get_type (void); |
474 |
- extern GType cc_goa_panel_get_type (void); |
475 |
- #endif /* BUILD_ONLINE_ACCOUNTS */ |
476 |
- extern GType cc_power_panel_get_type (void); |
477 |
-+#ifdef BUILD_PRINTERS |
478 |
- extern GType cc_printers_panel_get_type (void); |
479 |
-+#endif /* BUILD_PRINTERS */ |
480 |
- extern GType cc_privacy_panel_get_type (void); |
481 |
- extern GType cc_region_panel_get_type (void); |
482 |
- extern GType cc_search_panel_get_type (void); |
483 |
-@@ -95,7 +97,9 @@ static struct { |
484 |
- PANEL_TYPE("online-accounts", cc_goa_panel_get_type ), |
485 |
- #endif |
486 |
- PANEL_TYPE("power", cc_power_panel_get_type ), |
487 |
-+#ifdef BUILD_PRINTERS |
488 |
- PANEL_TYPE("printers", cc_printers_panel_get_type ), |
489 |
-+#endif |
490 |
- PANEL_TYPE("privacy", cc_privacy_panel_get_type ), |
491 |
- PANEL_TYPE("region", cc_region_panel_get_type ), |
492 |
- PANEL_TYPE("search", cc_search_panel_get_type ), |
493 |
--- |
494 |
-2.10.2 |
495 |
- |
496 |
|
497 |
diff --git a/gnome-base/gnome-control-center/files/3.24.2-optional-networkmanager.patch b/gnome-base/gnome-control-center/files/3.24.2-optional-networkmanager.patch |
498 |
deleted file mode 100644 |
499 |
index e4efa1c7c1c..00000000000 |
500 |
--- a/gnome-base/gnome-control-center/files/3.24.2-optional-networkmanager.patch |
501 |
+++ /dev/null |
502 |
@@ -1,69 +0,0 @@ |
503 |
-From c19cbe68d5a4a1363b320debfc6b3e93dbb7e8ac Mon Sep 17 00:00:00 2001 |
504 |
-From: Timo Tambet <ttambet@×××××.com> |
505 |
-Date: Sun, 26 Feb 2017 00:37:06 +0200 |
506 |
-Subject: [PATCH 3/5] Make network panel optional |
507 |
- |
508 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
509 |
-[Updated for 3.23.90] |
510 |
-Signed-off-by: Timo Tambet <ttambet@×××××.com> |
511 |
---- |
512 |
- configure.ac | 43 +++++++++++++++++++++++++------------------ |
513 |
- 1 file changed, 25 insertions(+), 18 deletions(-) |
514 |
- |
515 |
-diff --git a/configure.ac b/configure.ac |
516 |
-index b47dbc8..4af24d0 100644 |
517 |
---- a/configure.ac |
518 |
-+++ b/configure.ac |
519 |
-@@ -275,24 +275,31 @@ linux_usb_error_or_warn() |
520 |
- esac |
521 |
- } |
522 |
- |
523 |
--PKG_CHECK_MODULES(NETWORK_MANAGER, |
524 |
-- libnm >= $NETWORK_MANAGER_REQUIRED_VERSION |
525 |
-- libnma >= $NETWORK_MANAGER_APPLET_REQUIRED_VERSION |
526 |
-- mm-glib >= $MODEM_MANAGER_REQUIRED_VERSION, |
527 |
-- [have_networkmanager=yes], have_networkmanager=no) |
528 |
--if test "x$have_networkmanager" = xno ; then |
529 |
-- linux_error_or_warn "*** Network panel will not be built (NetworkManager or ModemManager not found) ***" |
530 |
--else |
531 |
-- AC_DEFINE(BUILD_NETWORK, 1, [Define to 1 to build the Network panel]) |
532 |
--fi |
533 |
--AM_CONDITIONAL(BUILD_NETWORK, [test x$have_networkmanager = xyes]) |
534 |
--if test x${have_networkmanager} = xyes; then |
535 |
-- AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Define to 1 if NetworkManager is available]) |
536 |
-- NM_VPN_CONFIG_DIR=`$PKG_CONFIG --variable configdir NetworkManager`/VPN |
537 |
-- NM_VPN_MODULE_DIR=`$PKG_CONFIG --variable plugindir NetworkManager` |
538 |
-- AC_SUBST(NM_VPN_CONFIG_DIR) |
539 |
-- AC_SUBST(NM_VPN_MODULE_DIR) |
540 |
--fi |
541 |
-+AC_ARG_ENABLE([networkmanager], |
542 |
-+ AS_HELP_STRING([--disable-networkmanager], [Disable network panel]), |
543 |
-+ [], |
544 |
-+ [enable_networkmanager=auto]) |
545 |
-+AS_IF([test "$enable_networkmanager" != "no"], |
546 |
-+ [ |
547 |
-+ PKG_CHECK_MODULES(NETWORK_MANAGER, |
548 |
-+ libnm >= $NETWORK_MANAGER_REQUIRED_VERSION |
549 |
-+ libnma >= $NETWORK_MANAGER_APPLET_REQUIRED_VERSION |
550 |
-+ mm-glib >= $MODEM_MANAGER_REQUIRED_VERSION, |
551 |
-+ [have_networkmanager=yes], [have_networkmanager=no]) |
552 |
-+ |
553 |
-+ AS_IF([test "$have_networkmanager" = "no"], |
554 |
-+ [ |
555 |
-+ AC_MSG_WARN([*** Network panel will not be built (NetworkManager or ModemManager not found) ***]) |
556 |
-+ ], [ |
557 |
-+ AC_DEFINE(BUILD_NETWORK, 1, [Define to 1 to build the Network panel]) |
558 |
-+ AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Define to 1 if NetworkManager is available]) |
559 |
-+ NM_VPN_CONFIG_DIR=`$PKG_CONFIG --variable configdir NetworkManager`/VPN |
560 |
-+ NM_VPN_MODULE_DIR=`$PKG_CONFIG --variable plugindir NetworkManager` |
561 |
-+ AC_SUBST([NM_VPN_CONFIG_DIR]) |
562 |
-+ AC_SUBST([NM_VPN_MODULE_DIR]) |
563 |
-+ ]) |
564 |
-+ ]) |
565 |
-+AM_CONDITIONAL(BUILD_NETWORK, [test "$have_networkmanager" = "yes"]) |
566 |
- |
567 |
- # Check for power panel |
568 |
- if test x${have_networkmanager} = xyes; then |
569 |
--- |
570 |
-2.10.2 |
571 |
- |
572 |
|
573 |
diff --git a/gnome-base/gnome-control-center/files/3.24.2-optional-wayland.patch b/gnome-base/gnome-control-center/files/3.24.2-optional-wayland.patch |
574 |
deleted file mode 100644 |
575 |
index 21d4a45b8f1..00000000000 |
576 |
--- a/gnome-base/gnome-control-center/files/3.24.2-optional-wayland.patch |
577 |
+++ /dev/null |
578 |
@@ -1,46 +0,0 @@ |
579 |
-From e18ff93353a432867e373e549206928d3ced04cc Mon Sep 17 00:00:00 2001 |
580 |
-From: Ole Reifschneider <tranquility@g.o> |
581 |
-Date: Sat, 25 Apr 2015 22:22:09 +0200 |
582 |
-Subject: [PATCH 2/5] Make wayland support optional |
583 |
- |
584 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
585 |
-Signed-off-by: Mart Raudsepp <leio@g.o> |
586 |
---- |
587 |
- configure.ac | 21 +++++++++++++++------ |
588 |
- 1 file changed, 15 insertions(+), 6 deletions(-) |
589 |
- |
590 |
-diff --git a/configure.ac b/configure.ac |
591 |
-index 9566fb7..b47dbc8 100644 |
592 |
---- a/configure.ac |
593 |
-+++ b/configure.ac |
594 |
-@@ -227,12 +227,21 @@ if test "x$have_udev" = xyes ; then |
595 |
- fi |
596 |
- AM_CONDITIONAL(HAVE_UDEV, [test "x$have_udev" = "xyes"]) |
597 |
- |
598 |
--PKG_CHECK_MODULES(WAYLAND, gdk-wayland-3.0, have_wayland=yes, have_wayland=no) |
599 |
--if test "x$have_wayland" = xyes ; then |
600 |
-- if test "x$have_udev" != xyes ; then |
601 |
-- AC_MSG_ERROR([udev is required for Wayland support]) |
602 |
-- fi |
603 |
--fi |
604 |
-+AC_ARG_ENABLE( |
605 |
-+ [wayland], |
606 |
-+ AS_HELP_STRING([--disable-wayland], [disable wayland support]), |
607 |
-+ [], |
608 |
-+ enable_wayland=auto |
609 |
-+) |
610 |
-+ |
611 |
-+AS_IF([test "$enable_wayland" != "no"], |
612 |
-+ [ |
613 |
-+ AS_IF([test "x$have_udev" = xno], |
614 |
-+ [AC_MSG_ERROR([udev is required for Wayland support])], |
615 |
-+ [AC_DEFINE(HAVE_UDEV, 1, [System has udev])]) |
616 |
-+ |
617 |
-+ PKG_CHECK_MODULES(WAYLAND, gdk-wayland-3.0) |
618 |
-+]) |
619 |
- |
620 |
- # Panels that must be built on Linux systems |
621 |
- linux_error_or_warn() |
622 |
--- |
623 |
-2.10.2 |
624 |
- |
625 |
|
626 |
diff --git a/gnome-base/gnome-control-center/files/3.24.2-optional.patch b/gnome-base/gnome-control-center/files/3.24.2-optional.patch |
627 |
deleted file mode 100644 |
628 |
index 54e3f65f568..00000000000 |
629 |
--- a/gnome-base/gnome-control-center/files/3.24.2-optional.patch |
630 |
+++ /dev/null |
631 |
@@ -1,556 +0,0 @@ |
632 |
-From c3b0d1123cae5a895452d2a8d75e663e76cbf5bd Mon Sep 17 00:00:00 2001 |
633 |
-From: Timo Tambet <ttambet@×××××.com> |
634 |
-Date: Sat, 25 Feb 2017 23:29:10 +0200 |
635 |
-Subject: [PATCH 1/5] Make bluetooth/colord/goa/kerberos/wacom optional |
636 |
- |
637 |
-Upstream is not interested in any part of this patch: |
638 |
- |
639 |
-https://bugzilla.gnome.org/686840 |
640 |
-https://bugzilla.gnome.org/697478 |
641 |
-https://bugzilla.gnome.org/700145 |
642 |
- |
643 |
-Signed-off-by: Ole Reifschneider <tranquility@g.o> |
644 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
645 |
-Signed-off-by: Alexandre Rostovtsev <tetromino@g.o> |
646 |
---- |
647 |
- configure.ac | 171 ++++++++++++++++++++++++-------- |
648 |
- panels/Makefile.am | 10 +- |
649 |
- panels/background/Makefile.am | 8 +- |
650 |
- panels/background/bg-pictures-source.c | 20 ++++ |
651 |
- panels/power/cc-power-panel.c | 2 +- |
652 |
- panels/user-accounts/um-realm-manager.c | 9 ++ |
653 |
- shell/Makefile.am | 10 +- |
654 |
- shell/cc-panel-loader.c | 8 ++ |
655 |
- 8 files changed, 188 insertions(+), 50 deletions(-) |
656 |
- |
657 |
-diff --git a/configure.ac b/configure.ac |
658 |
-index 11fc9fc..9566fb7 100644 |
659 |
---- a/configure.ac |
660 |
-+++ b/configure.ac |
661 |
-@@ -120,10 +120,6 @@ LIBGD_INIT([_view-common static]) |
662 |
- PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES gnome-desktop-3.0 fontconfig) |
663 |
- PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11) |
664 |
- PKG_CHECK_MODULES(SHELL, $COMMON_MODULES x11 polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION) |
665 |
--PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES cairo-gobject libxml-2.0 gnome-desktop-3.0 |
666 |
-- gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION |
667 |
-- goa-1.0 >= $GOA_REQUIRED_VERSION |
668 |
-- grilo-0.3 >= $GRILO_REQUIRED_VERSION) |
669 |
- PKG_CHECK_MODULES(DATETIME_PANEL, $COMMON_MODULES |
670 |
- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
671 |
- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION |
672 |
-@@ -141,12 +137,58 @@ PKG_CHECK_MODULES(MOUSE_PANEL, $COMMON_MODULES xi >= 1.2 |
673 |
- PKG_CHECK_MODULES(NETWORK_PANEL, $COMMON_MODULES gmodule-2.0 |
674 |
- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION) |
675 |
- PKG_CHECK_MODULES(NOTIFICATIONS_PANEL, $COMMON_MODULES) |
676 |
--PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION) |
677 |
--PKG_CHECK_MODULES(COLOR_PANEL, $COMMON_MODULES |
678 |
-- colord >= $COLORD_REQUIRED_VERSION |
679 |
-- colord-gtk >= $COLORD_GTK_REQUIRED_VERSION |
680 |
-- libsoup-2.4 |
681 |
-- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION) |
682 |
-+ |
683 |
-+build_online_accounts=no |
684 |
-+background_online_accounts= |
685 |
-+AC_ARG_ENABLE([goa], |
686 |
-+ AS_HELP_STRING([--disable-goa], |
687 |
-+ [disable online accounts management panel]), |
688 |
-+ [], |
689 |
-+ [enable_goa=auto]) |
690 |
-+ |
691 |
-+AS_IF([test "$enable_goa" != "no"], |
692 |
-+ [PKG_CHECK_MODULES([ONLINE_ACCOUNTS_PANEL], |
693 |
-+ [$COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION], |
694 |
-+ [ |
695 |
-+ AC_DEFINE(BUILD_ONLINE_ACCOUNTS, 1, [Define to 1 to build the Online Accounts panel]) |
696 |
-+ build_online_accounts=yes |
697 |
-+ background_goa_dependencies="goa-1.0 >= $GOA_REQUIRED_VERSION grilo-0.3 >= $GRILO_REQUIRED_VERSION" |
698 |
-+ ], [ |
699 |
-+ AS_IF([test "$enable_goa" = "yes"], |
700 |
-+ [AC_MSG_ERROR([gnome-online-accounts support requested but not found])]) |
701 |
-+ ]) |
702 |
-+ ]) |
703 |
-+AM_CONDITIONAL(BUILD_ONLINE_ACCOUNTS, test "$build_online_accounts" = "yes") |
704 |
-+ |
705 |
-+PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES cairo-gobject libxml-2.0 gnome-desktop-3.0 |
706 |
-+ gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION |
707 |
-+ $background_goa_dependencies) |
708 |
-+ |
709 |
-+build_color=no |
710 |
-+AC_ARG_ENABLE([color], |
711 |
-+ AS_HELP_STRING([--disable-color], |
712 |
-+ [disable color management panel]), |
713 |
-+ [], |
714 |
-+ [enable_color=auto]) |
715 |
-+ |
716 |
-+AS_IF([test "$enable_color" != "no"], |
717 |
-+ [PKG_CHECK_MODULES([COLOR_PANEL], |
718 |
-+ [ |
719 |
-+ $COMMON_MODULES |
720 |
-+ colord >= $COLORD_REQUIRED_VERSION |
721 |
-+ colord-gtk >= $COLORD_GTK_REQUIRED_VERSION |
722 |
-+ libsoup-2.4 |
723 |
-+ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
724 |
-+ ], [ |
725 |
-+ AC_DEFINE(BUILD_COLOR, 1, [Define to 1 to build the Color panel]) |
726 |
-+ build_color=yes |
727 |
-+ ], [ |
728 |
-+ AS_IF([test "$enable_color" = "yes"], |
729 |
-+ [AC_MSG_ERROR([colord support requested but not found])]) |
730 |
-+ ]) |
731 |
-+ ]) |
732 |
-+AM_CONDITIONAL(BUILD_COLOR, test "$build_color" = "yes") |
733 |
-+ |
734 |
- PKG_CHECK_MODULES(PRINTERS_PANEL, $COMMON_MODULES |
735 |
- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION |
736 |
- smbclient) |
737 |
-@@ -254,17 +296,27 @@ else |
738 |
- fi |
739 |
- |
740 |
- # Check for gnome-bluetooth |
741 |
--PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.18.2, |
742 |
-- [have_bluetooth=yes], have_bluetooth=no) |
743 |
--if test "x$have_bluetooth" = xyes ; then |
744 |
-- AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel]) |
745 |
--else |
746 |
-- linux_usb_error_or_warn "*** Bluetooth panel will not be built" |
747 |
--fi |
748 |
--AM_CONDITIONAL(BUILD_BLUETOOTH, [test x$have_bluetooth = xyes]) |
749 |
--if test x${have_bluetooth} = xyes; then |
750 |
-- AC_DEFINE(HAVE_BLUETOOTH, 1, [Define to 1 if bluetooth support is available]) |
751 |
--fi |
752 |
-+have_bluetooth=no |
753 |
-+AC_ARG_ENABLE([bluetooth], |
754 |
-+ AS_HELP_STRING([--disable-bluetooth], |
755 |
-+ [disable bluetooth management panel]), |
756 |
-+ [], |
757 |
-+ [enable_bluetooth=auto]) |
758 |
-+ |
759 |
-+AS_IF([test "$enable_bluetooth" = "yes"], |
760 |
-+ [PKG_CHECK_MODULES([BLUETOOTH], |
761 |
-+ [$COMMON_MODULES gnome-bluetooth-1.0 >= 3.18.2], |
762 |
-+ [ |
763 |
-+ AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel]) |
764 |
-+ have_bluetooth=yes |
765 |
-+ ], |
766 |
-+ [ |
767 |
-+ have_bluetooth=no |
768 |
-+ AS_IF([test "$enable_bluetooth" = "yes"], |
769 |
-+ [AC_MSG_ERROR([bluetooth support requested but not found])]) |
770 |
-+ ]) |
771 |
-+ ]) |
772 |
-+AM_CONDITIONAL(BUILD_BLUETOOTH, [test "$have_bluetooth" = "yes"]) |
773 |
- |
774 |
- # Check for CUPS 1.4 or newer |
775 |
- AC_PROG_SED |
776 |
-@@ -319,32 +371,52 @@ fi |
777 |
- AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes) |
778 |
- |
779 |
- # Wacom |
780 |
--PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES |
781 |
-- gnome-settings-daemon >= $GSD_REQUIRED_VERSION |
782 |
-- xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION |
783 |
-- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
784 |
-- clutter-gtk-1.0 |
785 |
-- clutter-1.0 >= $CLUTTER_REQUIRED_VERSION, |
786 |
-- [have_wacom=yes], [have_wacom=no]) |
787 |
-+AC_ARG_ENABLE([wacom], |
788 |
-+ AS_HELP_STRING([--disable-wacom], |
789 |
-+ [disable wacom management panel]), |
790 |
-+ [], |
791 |
-+ [enable_wacom=yes]) |
792 |
-+AS_IF([test "x$enable_wacom" = "xyes"], |
793 |
-+ [PKG_CHECK_MODULES([WACOM_PANEL], |
794 |
-+ [ |
795 |
-+ $COMMON_MODULES |
796 |
-+ gnome-settings-daemon >= $GSD_REQUIRED_VERSION |
797 |
-+ xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION |
798 |
-+ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
799 |
-+ clutter-gtk-1.0 |
800 |
-+ clutter-1.0 >= $CLUTTER_REQUIRED_VERSION |
801 |
-+ ], [ |
802 |
-+ have_wacom=yes |
803 |
-+ AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel]) |
804 |
-+ AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted]) |
805 |
-+ ], [ |
806 |
-+ have_wacom=no |
807 |
-+ AC_MSG_ERROR([wacom support requested but not found]) |
808 |
-+ ]) |
809 |
-+ ]) |
810 |
- |
811 |
--if test "x$have_wacom" = xyes ; then |
812 |
-- AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel]) |
813 |
-- AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted]) |
814 |
--else |
815 |
-- linux_usb_error_or_warn "*** Wacom panel will not be built" |
816 |
--fi |
817 |
- AM_CONDITIONAL(BUILD_WACOM, [test x${have_wacom} = xyes]) |
818 |
- |
819 |
- # Kerberos kerberos support |
820 |
--AC_PATH_PROG(KRB5_CONFIG, krb5-config, no) |
821 |
--if test "$KRB5_CONFIG" = "no"; then |
822 |
-- AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries]) |
823 |
--fi |
824 |
-- |
825 |
--AC_MSG_CHECKING(for krb5 libraries and flags) |
826 |
--KRB5_CFLAGS="`$KRB5_CONFIG --cflags`" |
827 |
--KRB5_LIBS="`$KRB5_CONFIG --libs`" |
828 |
--AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS) |
829 |
-+AC_ARG_ENABLE([kerberos], |
830 |
-+ AS_HELP_STRING([--disable-kerberos], |
831 |
-+ [disable kerberos support (default: enabled)]), |
832 |
-+ [], |
833 |
-+ [enable_kerberos=yes]) |
834 |
-+ |
835 |
-+AS_IF([test "$enable_kerberos" != "no"], |
836 |
-+ [ |
837 |
-+ AC_PATH_PROG(KRB5_CONFIG, krb5-config, no) |
838 |
-+ |
839 |
-+ AS_IF([test "$KRB5_CONFIG" = "no"], |
840 |
-+ AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries])) |
841 |
-+ |
842 |
-+ AC_MSG_CHECKING([for krb5 libraries and flags]) |
843 |
-+ KRB5_CFLAGS="`$KRB5_CONFIG --cflags`" |
844 |
-+ KRB5_LIBS="`$KRB5_CONFIG --libs`" |
845 |
-+ AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS) |
846 |
-+ AC_DEFINE(HAVE_KERBEROS, 1, [defined if krb5 is available]) |
847 |
-+ ]) |
848 |
- |
849 |
- AC_SUBST(KRB5_CFLAGS) |
850 |
- AC_SUBST(KRB5_LIBS) |
851 |
-@@ -576,11 +648,24 @@ if test "x$have_bluetooth" = "xyes"; then |
852 |
- else |
853 |
- AC_MSG_NOTICE([ Bluetooth panel disabled]) |
854 |
- fi |
855 |
-+ |
856 |
-+if test "x$build_color" = "xyes"; then |
857 |
-+ AC_MSG_NOTICE([** colord (Color panel)]) |
858 |
-+else |
859 |
-+ AC_MSG_NOTICE([ Color panel disabled]) |
860 |
-+fi |
861 |
-+ |
862 |
-+ |
863 |
- if test "x$have_cheese" = "xyes"; then |
864 |
- AC_MSG_NOTICE([** Cheese (Users panel webcam support)]) |
865 |
- else |
866 |
- AC_MSG_NOTICE([ Users panel webcam support disabled]) |
867 |
- fi |
868 |
-+if test "x$build_online_accounts" = "xyes"; then |
869 |
-+ AC_MSG_NOTICE([** gnome-online-accounts (Online Accounts panel)]) |
870 |
-+else |
871 |
-+ AC_MSG_NOTICE([ Online Accounts panel disabled]) |
872 |
-+fi |
873 |
- if test "x$have_wacom" = "xyes"; then |
874 |
- AC_MSG_NOTICE([** wacom (Wacom tablet panel)]) |
875 |
- else |
876 |
-diff --git a/panels/Makefile.am b/panels/Makefile.am |
877 |
-index 507cd2f..2806c45 100644 |
878 |
---- a/panels/Makefile.am |
879 |
-+++ b/panels/Makefile.am |
880 |
-@@ -2,11 +2,9 @@ SUBDIRS= \ |
881 |
- common \ |
882 |
- background \ |
883 |
- power \ |
884 |
-- color \ |
885 |
- display \ |
886 |
- mouse \ |
887 |
- notifications \ |
888 |
-- online-accounts \ |
889 |
- region \ |
890 |
- info \ |
891 |
- sound \ |
892 |
-@@ -19,6 +17,10 @@ SUBDIRS= \ |
893 |
- sharing \ |
894 |
- printers |
895 |
- |
896 |
-+if BUILD_COLOR |
897 |
-+SUBDIRS += color |
898 |
-+endif |
899 |
-+ |
900 |
- if BUILD_WACOM |
901 |
- SUBDIRS += wacom |
902 |
- endif |
903 |
-@@ -31,4 +33,8 @@ if BUILD_BLUETOOTH |
904 |
- SUBDIRS += bluetooth |
905 |
- endif |
906 |
- |
907 |
-+if BUILD_ONLINE_ACCOUNTS |
908 |
-+SUBDIRS += online-accounts |
909 |
-+endif |
910 |
-+ |
911 |
- -include $(top_srcdir)/git.mk |
912 |
-diff --git a/panels/background/Makefile.am b/panels/background/Makefile.am |
913 |
-index ccb8017..bde4cdf 100644 |
914 |
---- a/panels/background/Makefile.am |
915 |
-+++ b/panels/background/Makefile.am |
916 |
-@@ -27,8 +27,6 @@ libbackground_chooser_la_SOURCES = \ |
917 |
- $(BUILT_SOURCES) \ |
918 |
- cc-background-chooser-dialog.c \ |
919 |
- cc-background-chooser-dialog.h \ |
920 |
-- cc-background-grilo-miner.c \ |
921 |
-- cc-background-grilo-miner.h \ |
922 |
- cc-background-item.c \ |
923 |
- cc-background-item.h \ |
924 |
- cc-background-xml.c \ |
925 |
-@@ -42,6 +40,12 @@ libbackground_chooser_la_SOURCES = \ |
926 |
- bg-colors-source.c \ |
927 |
- bg-colors-source.h |
928 |
- |
929 |
-+if BUILD_ONLINE_ACCOUNTS |
930 |
-+libbackground_chooser_la_SOURCES += \ |
931 |
-+ cc-background-grilo-miner.c \ |
932 |
-+ cc-background-grilo-miner.h |
933 |
-+endif |
934 |
-+ |
935 |
- libbackground_chooser_la_LIBADD = $(PANEL_LIBS) $(BACKGROUND_PANEL_LIBS) |
936 |
- |
937 |
- libbackground_la_SOURCES = \ |
938 |
-diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c |
939 |
-index a33cee7..408359c 100644 |
940 |
---- a/panels/background/bg-pictures-source.c |
941 |
-+++ b/panels/background/bg-pictures-source.c |
942 |
-@@ -23,13 +23,17 @@ |
943 |
- |
944 |
- #include "bg-pictures-source.h" |
945 |
- |
946 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
947 |
- #include "cc-background-grilo-miner.h" |
948 |
-+#endif |
949 |
- #include "cc-background-item.h" |
950 |
- |
951 |
- #include <string.h> |
952 |
- #include <cairo-gobject.h> |
953 |
- #include <gio/gio.h> |
954 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
955 |
- #include <grilo.h> |
956 |
-+#endif |
957 |
- #include <libgnome-desktop/gnome-desktop-thumbnail.h> |
958 |
- #include <gdesktop-enums.h> |
959 |
- |
960 |
-@@ -46,7 +50,9 @@ struct _BgPicturesSourcePrivate |
961 |
- { |
962 |
- GCancellable *cancellable; |
963 |
- |
964 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
965 |
- CcBackgroundGriloMiner *grl_miner; |
966 |
-+#endif |
967 |
- |
968 |
- GnomeDesktopThumbnailFactory *thumb_factory; |
969 |
- |
970 |
-@@ -84,7 +90,9 @@ bg_pictures_source_dispose (GObject *object) |
971 |
- g_clear_object (&priv->cancellable); |
972 |
- } |
973 |
- |
974 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
975 |
- g_clear_object (&priv->grl_miner); |
976 |
-+#endif |
977 |
- g_clear_object (&priv->thumb_factory); |
978 |
- |
979 |
- G_OBJECT_CLASS (bg_pictures_source_parent_class)->dispose (object); |
980 |
-@@ -414,7 +422,11 @@ add_single_file (BgPicturesSource *bg_source, |
981 |
- gboolean needs_download; |
982 |
- gboolean retval = FALSE; |
983 |
- GFile *pictures_dir, *cache_dir; |
984 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
985 |
- GrlMedia *media; |
986 |
-+#else |
987 |
-+ gpointer media = NULL; |
988 |
-+#endif |
989 |
- |
990 |
- /* find png and jpeg files */ |
991 |
- if (!content_type) |
992 |
-@@ -473,7 +485,9 @@ add_single_file (BgPicturesSource *bg_source, |
993 |
- |
994 |
- read_file: |
995 |
- |
996 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
997 |
- media = g_object_get_data (G_OBJECT (file), "grl-media"); |
998 |
-+#endif |
999 |
- if (media == NULL) |
1000 |
- { |
1001 |
- g_object_set_data_full (G_OBJECT (file), "item", g_object_ref (item), g_object_unref); |
1002 |
-@@ -556,6 +570,7 @@ add_single_file_from_info (BgPicturesSource *bg_source, |
1003 |
- return add_single_file (bg_source, file, content_type, mtime, ret_row_ref); |
1004 |
- } |
1005 |
- |
1006 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1007 |
- static gboolean |
1008 |
- add_single_file_from_media (BgPicturesSource *bg_source, |
1009 |
- GFile *file, |
1010 |
-@@ -580,6 +595,7 @@ add_single_file_from_media (BgPicturesSource *bg_source, |
1011 |
- |
1012 |
- return add_single_file (bg_source, file, content_type, (guint64) mtime_unix, NULL); |
1013 |
- } |
1014 |
-+#endif /* BUILD_ONLINE_ACCOUNTS */ |
1015 |
- |
1016 |
- gboolean |
1017 |
- bg_pictures_source_add (BgPicturesSource *bg_source, |
1018 |
-@@ -923,6 +939,7 @@ monitor_path (BgPicturesSource *self, |
1019 |
- return monitor; |
1020 |
- } |
1021 |
- |
1022 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1023 |
- static void |
1024 |
- media_found_cb (BgPicturesSource *self, GrlMedia *media) |
1025 |
- { |
1026 |
-@@ -934,6 +951,7 @@ media_found_cb (BgPicturesSource *self, GrlMedia *media) |
1027 |
- g_object_set_data_full (G_OBJECT (file), "grl-media", g_object_ref (media), g_object_unref); |
1028 |
- add_single_file_from_media (self, file, media); |
1029 |
- } |
1030 |
-+#endif /* BUILD_ONLINE_ACCOUNTS */ |
1031 |
- |
1032 |
- static void |
1033 |
- bg_pictures_source_init (BgPicturesSource *self) |
1034 |
-@@ -961,9 +979,11 @@ bg_pictures_source_init (BgPicturesSource *self) |
1035 |
- priv->cache_dir_monitor = monitor_path (self, cache_path); |
1036 |
- g_free (cache_path); |
1037 |
- |
1038 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1039 |
- priv->grl_miner = cc_background_grilo_miner_new (); |
1040 |
- g_signal_connect_swapped (priv->grl_miner, "media-found", G_CALLBACK (media_found_cb), self); |
1041 |
- cc_background_grilo_miner_start (priv->grl_miner); |
1042 |
-+#endif /* BUILD_ONLINE_ACCOUNTS */ |
1043 |
- |
1044 |
- priv->thumb_factory = |
1045 |
- gnome_desktop_thumbnail_factory_new (GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE); |
1046 |
-diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c |
1047 |
-index db4e69a..7677b58 100644 |
1048 |
---- a/panels/power/cc-power-panel.c |
1049 |
-+++ b/panels/power/cc-power-panel.c |
1050 |
-@@ -1882,7 +1882,7 @@ add_power_saving_section (CcPowerPanel *self) |
1051 |
- G_CALLBACK (wifi_switch_changed), self); |
1052 |
- #endif |
1053 |
- |
1054 |
--#ifdef HAVE_BLUETOOTH |
1055 |
-+#ifdef BUILD_BLUETOOTH |
1056 |
- priv->bt_rfkill = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, |
1057 |
- G_DBUS_PROXY_FLAGS_NONE, |
1058 |
- NULL, |
1059 |
-diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c |
1060 |
-index 2639148..977dab1 100644 |
1061 |
---- a/panels/user-accounts/um-realm-manager.c |
1062 |
-+++ b/panels/user-accounts/um-realm-manager.c |
1063 |
-@@ -22,7 +22,9 @@ |
1064 |
- |
1065 |
- #include "um-realm-manager.h" |
1066 |
- |
1067 |
-+#ifdef HAVE_KERBEROS |
1068 |
- #include <krb5/krb5.h> |
1069 |
-+#endif |
1070 |
- |
1071 |
- #include <glib.h> |
1072 |
- #include <glib/gi18n.h> |
1073 |
-@@ -698,6 +700,7 @@ login_closure_free (gpointer data) |
1074 |
- g_slice_free (LoginClosure, login); |
1075 |
- } |
1076 |
- |
1077 |
-+#ifdef HAVE_KERBEROS |
1078 |
- static krb5_error_code |
1079 |
- login_perform_kinit (krb5_context k5, |
1080 |
- const gchar *realm, |
1081 |
-@@ -761,12 +764,14 @@ login_perform_kinit (krb5_context k5, |
1082 |
- |
1083 |
- return code; |
1084 |
- } |
1085 |
-+#endif /* HAVE_KERBEROS */ |
1086 |
- |
1087 |
- static void |
1088 |
- kinit_thread_func (GSimpleAsyncResult *async, |
1089 |
- GObject *object, |
1090 |
- GCancellable *cancellable) |
1091 |
- { |
1092 |
-+#ifdef HAVE_KERBEROS |
1093 |
- LoginClosure *login = g_simple_async_result_get_op_res_gpointer (async); |
1094 |
- krb5_context k5 = NULL; |
1095 |
- krb5_error_code code; |
1096 |
-@@ -844,6 +849,10 @@ kinit_thread_func (GSimpleAsyncResult *async, |
1097 |
- |
1098 |
- if (k5) |
1099 |
- krb5_free_context (k5); |
1100 |
-+#else /* HAVE_KERBEROS */ |
1101 |
-+ g_simple_async_result_set_error (async, UM_REALM_ERROR, UM_REALM_ERROR_GENERIC, |
1102 |
-+ _("gnome-control-center was built without kerberos support")); |
1103 |
-+#endif |
1104 |
- } |
1105 |
- |
1106 |
- void |
1107 |
-diff --git a/shell/Makefile.am b/shell/Makefile.am |
1108 |
-index 6af3199..f3e49c7 100644 |
1109 |
---- a/shell/Makefile.am |
1110 |
-+++ b/shell/Makefile.am |
1111 |
-@@ -78,14 +78,12 @@ gnome_control_center_LDADD = \ |
1112 |
- $(top_builddir)/panels/common/liblanguage.la \ |
1113 |
- $(top_builddir)/panels/common/libdevice.la \ |
1114 |
- $(top_builddir)/panels/background/libbackground.la \ |
1115 |
-- $(top_builddir)/panels/color/libcolor.la \ |
1116 |
- $(top_builddir)/panels/datetime/libdate_time.la \ |
1117 |
- $(top_builddir)/panels/display/libdisplay.la \ |
1118 |
- $(top_builddir)/panels/info/libinfo.la \ |
1119 |
- $(top_builddir)/panels/keyboard/libkeyboard.la \ |
1120 |
- $(top_builddir)/panels/mouse/libmouse-properties.la \ |
1121 |
- $(top_builddir)/panels/notifications/libnotifications.la \ |
1122 |
-- $(top_builddir)/panels/online-accounts/libonline-accounts.la \ |
1123 |
- $(top_builddir)/panels/power/libpower.la \ |
1124 |
- $(top_builddir)/panels/privacy/libprivacy.la \ |
1125 |
- $(top_builddir)/panels/region/libregion.la \ |
1126 |
-@@ -108,6 +106,14 @@ if BUILD_BLUETOOTH |
1127 |
- gnome_control_center_LDADD += $(top_builddir)/panels/bluetooth/libbluetooth.la |
1128 |
- endif |
1129 |
- |
1130 |
-+if BUILD_COLOR |
1131 |
-+gnome_control_center_LDADD += $(top_builddir)/panels/color/libcolor.la |
1132 |
-+endif |
1133 |
-+ |
1134 |
-+if BUILD_ONLINE_ACCOUNTS |
1135 |
-+gnome_control_center_LDADD += $(top_builddir)/panels/online-accounts/libonline-accounts.la |
1136 |
-+endif |
1137 |
-+ |
1138 |
- gnome_control_center_alt_LDADD = \ |
1139 |
- $(gnome_control_center_LDADD) \ |
1140 |
- alt/libshell_alt.la |
1141 |
-diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c |
1142 |
-index 20ebb85..9104b45 100644 |
1143 |
---- a/shell/cc-panel-loader.c |
1144 |
-+++ b/shell/cc-panel-loader.c |
1145 |
-@@ -33,7 +33,9 @@ extern GType cc_background_panel_get_type (void); |
1146 |
- #ifdef BUILD_BLUETOOTH |
1147 |
- extern GType cc_bluetooth_panel_get_type (void); |
1148 |
- #endif /* BUILD_BLUETOOTH */ |
1149 |
-+#ifdef BUILD_COLOR |
1150 |
- extern GType cc_color_panel_get_type (void); |
1151 |
-+#endif /* BUILD_COLOR */ |
1152 |
- extern GType cc_date_time_panel_get_type (void); |
1153 |
- extern GType cc_display_panel_get_type (void); |
1154 |
- extern GType cc_info_panel_get_type (void); |
1155 |
-@@ -43,7 +45,9 @@ extern GType cc_mouse_panel_get_type (void); |
1156 |
- extern GType cc_network_panel_get_type (void); |
1157 |
- #endif /* BUILD_NETWORK */ |
1158 |
- extern GType cc_notifications_panel_get_type (void); |
1159 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1160 |
- extern GType cc_goa_panel_get_type (void); |
1161 |
-+#endif /* BUILD_ONLINE_ACCOUNTS */ |
1162 |
- extern GType cc_power_panel_get_type (void); |
1163 |
- extern GType cc_printers_panel_get_type (void); |
1164 |
- extern GType cc_privacy_panel_get_type (void); |
1165 |
-@@ -75,7 +79,9 @@ static struct { |
1166 |
- #ifdef BUILD_BLUETOOTH |
1167 |
- PANEL_TYPE("bluetooth", cc_bluetooth_panel_get_type ), |
1168 |
- #endif |
1169 |
-+#ifdef BUILD_COLOR |
1170 |
- PANEL_TYPE("color", cc_color_panel_get_type ), |
1171 |
-+#endif |
1172 |
- PANEL_TYPE("datetime", cc_date_time_panel_get_type ), |
1173 |
- PANEL_TYPE("display", cc_display_panel_get_type ), |
1174 |
- PANEL_TYPE("info", cc_info_panel_get_type ), |
1175 |
-@@ -85,7 +91,9 @@ static struct { |
1176 |
- PANEL_TYPE("network", cc_network_panel_get_type ), |
1177 |
- #endif |
1178 |
- PANEL_TYPE("notifications", cc_notifications_panel_get_type), |
1179 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1180 |
- PANEL_TYPE("online-accounts", cc_goa_panel_get_type ), |
1181 |
-+#endif |
1182 |
- PANEL_TYPE("power", cc_power_panel_get_type ), |
1183 |
- PANEL_TYPE("printers", cc_printers_panel_get_type ), |
1184 |
- PANEL_TYPE("privacy", cc_privacy_panel_get_type ), |
1185 |
--- |
1186 |
-2.10.2 |
1187 |
- |
1188 |
|
1189 |
diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-gentoo-paths.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-gentoo-paths.patch |
1190 |
deleted file mode 100644 |
1191 |
index 5d5af0d9717..00000000000 |
1192 |
--- a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-gentoo-paths.patch |
1193 |
+++ /dev/null |
1194 |
@@ -1,120 +0,0 @@ |
1195 |
-From c093ce404bf9868980fe7b83d6aa2ab3ec7831e2 Mon Sep 17 00:00:00 2001 |
1196 |
-From: Alexandre Rostovtsev <tetromino@g.o> |
1197 |
-Date: Sun, 8 Dec 2013 23:44:56 +0100 |
1198 |
-Subject: [PATCH 5/5] Fix some absolute paths to be appropriate for Gentoo |
1199 |
- |
1200 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
1201 |
---- |
1202 |
- panels/datetime/Makefile.am | 1 + |
1203 |
- panels/datetime/test-endianess.c | 4 ++-- |
1204 |
- panels/datetime/test-timezone.c | 2 +- |
1205 |
- panels/datetime/tz.h | 4 ++-- |
1206 |
- panels/printers/Makefile.am | 3 +++ |
1207 |
- panels/printers/cc-printers-panel.c | 4 ++-- |
1208 |
- panels/printers/pp-host.c | 2 +- |
1209 |
- 7 files changed, 12 insertions(+), 8 deletions(-) |
1210 |
- |
1211 |
-diff --git a/panels/datetime/Makefile.am b/panels/datetime/Makefile.am |
1212 |
-index 43523a6..d8d677d 100644 |
1213 |
---- a/panels/datetime/Makefile.am |
1214 |
-+++ b/panels/datetime/Makefile.am |
1215 |
-@@ -23,6 +23,7 @@ AM_CPPFLAGS = \ |
1216 |
- $(DATETIME_PANEL_CFLAGS) \ |
1217 |
- -DGNOMELOCALEDIR="\"$(datadir)/locale\"" \ |
1218 |
- -DGNOMECC_DATA_DIR="\"$(pkgdatadir)\"" \ |
1219 |
-+ -DREALDATADIR="\"$(datadir)\"" \ |
1220 |
- $(NULL) |
1221 |
- |
1222 |
- # test-timezone is still too noisy |
1223 |
-diff --git a/panels/datetime/test-endianess.c b/panels/datetime/test-endianess.c |
1224 |
-index 06b2613..eb52bb6 100644 |
1225 |
---- a/panels/datetime/test-endianess.c |
1226 |
-+++ b/panels/datetime/test-endianess.c |
1227 |
-@@ -26,11 +26,11 @@ test_endianess (void) |
1228 |
- GDir *dir; |
1229 |
- const char *name; |
1230 |
- |
1231 |
-- dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL); |
1232 |
-+ dir = g_dir_open (REALDATADIR "/i18n/locales/", 0, NULL); |
1233 |
- if (dir == NULL) { |
1234 |
- /* Try with /usr/share/locale/ |
1235 |
- * https://bugzilla.gnome.org/show_bug.cgi?id=646780 */ |
1236 |
-- dir = g_dir_open ("/usr/share/locale/", 0, NULL); |
1237 |
-+ dir = g_dir_open (REALDATADIR "/locale/", 0, NULL); |
1238 |
- if (dir == NULL) { |
1239 |
- g_assert_not_reached (); |
1240 |
- } |
1241 |
-diff --git a/panels/datetime/test-timezone.c b/panels/datetime/test-timezone.c |
1242 |
-index db5c030..7ef5cef 100644 |
1243 |
---- a/panels/datetime/test-timezone.c |
1244 |
-+++ b/panels/datetime/test-timezone.c |
1245 |
-@@ -2,7 +2,7 @@ |
1246 |
- #include <gtk/gtk.h> |
1247 |
- #include "cc-timezone-map.h" |
1248 |
- |
1249 |
--#define TZ_DIR "/usr/share/zoneinfo/" |
1250 |
-+#define TZ_DIR REALDATADIR "/zoneinfo/" |
1251 |
- |
1252 |
- static GList * |
1253 |
- get_timezone_list (GList *tzs, |
1254 |
-diff --git a/panels/datetime/tz.h b/panels/datetime/tz.h |
1255 |
-index 93905b3..1ba918c 100644 |
1256 |
---- a/panels/datetime/tz.h |
1257 |
-+++ b/panels/datetime/tz.h |
1258 |
-@@ -28,9 +28,9 @@ |
1259 |
- #include <glib.h> |
1260 |
- |
1261 |
- #ifndef __sun |
1262 |
--# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab" |
1263 |
-+# define TZ_DATA_FILE REALDATADIR "/zoneinfo/zone.tab" |
1264 |
- #else |
1265 |
--# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" |
1266 |
-+# define TZ_DATA_FILE REALDATADIR "/lib/zoneinfo/tab/zone_sun.tab" |
1267 |
- #endif |
1268 |
- |
1269 |
- typedef struct _TzDB TzDB; |
1270 |
-diff --git a/panels/printers/Makefile.am b/panels/printers/Makefile.am |
1271 |
-index 512cda5..87726dd 100644 |
1272 |
---- a/panels/printers/Makefile.am |
1273 |
-+++ b/panels/printers/Makefile.am |
1274 |
-@@ -10,6 +10,9 @@ AM_CPPFLAGS = \ |
1275 |
- -I$(top_srcdir)/shell/ \ |
1276 |
- -DGNOMELOCALEDIR="\"$(datadir)/locale\"" \ |
1277 |
- -DTEST_SRCDIR=\""$(srcdir)/"\" \ |
1278 |
-+ -DREALDATADIR="\"$(datadir)\"" \ |
1279 |
-+ -DPREFIX="\"$(prefix)\"" \ |
1280 |
-+ -DLIBEXECDIR="\"$(libexecdir)\"" \ |
1281 |
- $(NULL) |
1282 |
- |
1283 |
- noinst_LTLIBRARIES = libprinters.la |
1284 |
-diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c |
1285 |
-index fb55608..a6dfb90 100644 |
1286 |
---- a/panels/printers/cc-printers-panel.c |
1287 |
-+++ b/panels/printers/cc-printers-panel.c |
1288 |
-@@ -2590,8 +2590,8 @@ test_page_cb (GtkButton *button, |
1289 |
- |
1290 |
- if (printer_name) |
1291 |
- { |
1292 |
-- const gchar *const dirs[] = { "/usr/share/cups", |
1293 |
-- "/usr/local/share/cups", |
1294 |
-+ const gchar *const dirs[] = { REALDATADIR "/cups", |
1295 |
-+ PREFIX "/local/share/cups", |
1296 |
- NULL }; |
1297 |
- const gchar *datadir = NULL; |
1298 |
- http_t *http = NULL; |
1299 |
-diff --git a/panels/printers/pp-host.c b/panels/printers/pp-host.c |
1300 |
-index fbfb434..bd00518 100644 |
1301 |
---- a/panels/printers/pp-host.c |
1302 |
-+++ b/panels/printers/pp-host.c |
1303 |
-@@ -254,7 +254,7 @@ _pp_host_get_snmp_devices_thread (GSimpleAsyncResult *res, |
1304 |
- data->devices->devices = NULL; |
1305 |
- |
1306 |
- argv = g_new0 (gchar *, 3); |
1307 |
-- argv[0] = g_strdup ("/usr/lib/cups/backend/snmp"); |
1308 |
-+ argv[0] = g_strdup (LIBEXECDIR "/cups/backend/snmp"); |
1309 |
- argv[1] = g_strdup (priv->hostname); |
1310 |
- |
1311 |
- /* Use SNMP to get printer's informations */ |
1312 |
--- |
1313 |
-2.10.1 |
1314 |
- |
1315 |
|
1316 |
diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-keep-panels-optional.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-keep-panels-optional.patch |
1317 |
deleted file mode 100644 |
1318 |
index 2bd4e0e0abe..00000000000 |
1319 |
--- a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-keep-panels-optional.patch |
1320 |
+++ /dev/null |
1321 |
@@ -1,40 +0,0 @@ |
1322 |
-From 0ee5e7191e62e6df9067fa5b0886d09952d4e315 Mon Sep 17 00:00:00 2001 |
1323 |
-From: Gilles Dartiguelongue <eva@g.o> |
1324 |
-Date: Mon, 11 May 2015 23:59:03 +0200 |
1325 |
-Subject: [PATCH 3/5] Optional gotta be optional |
1326 |
- |
1327 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
1328 |
---- |
1329 |
- configure.ac | 16 ---------------- |
1330 |
- 1 file changed, 16 deletions(-) |
1331 |
- |
1332 |
-diff --git a/configure.ac b/configure.ac |
1333 |
-index 140459c..fe947d7 100644 |
1334 |
---- a/configure.ac |
1335 |
-+++ b/configure.ac |
1336 |
-@@ -512,22 +512,6 @@ else |
1337 |
- AC_MSG_RESULT(no) |
1338 |
- fi |
1339 |
- |
1340 |
--case $host_os in |
1341 |
-- linux*) |
1342 |
-- if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then |
1343 |
-- # Nothing |
1344 |
-- echo "USB-related panels disabled on S390" |
1345 |
-- else |
1346 |
-- if test "x$have_networkmanager" != "xyes" -o \ |
1347 |
-- "x$have_bluetooth" != "xyes" -o \ |
1348 |
-- "x$enable_cups" != "xyes" -o \ |
1349 |
-- "x$have_wacom" != "xyes"; then |
1350 |
-- AC_MSG_ERROR([The Network, Bluetooth, Printers and Wacom panels are not optional on Linux systems]) |
1351 |
-- fi |
1352 |
-- fi |
1353 |
-- ;; |
1354 |
--esac |
1355 |
-- |
1356 |
- AC_CONFIG_FILES([ |
1357 |
- Makefile |
1358 |
- panels/Makefile |
1359 |
--- |
1360 |
-2.10.1 |
1361 |
- |
1362 |
|
1363 |
diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-make-networkmanager-optional.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-make-networkmanager-optional.patch |
1364 |
deleted file mode 100644 |
1365 |
index f4a7d3b8ea7..00000000000 |
1366 |
--- a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-make-networkmanager-optional.patch |
1367 |
+++ /dev/null |
1368 |
@@ -1,67 +0,0 @@ |
1369 |
-From 1ad9510963dc634cb1805ca9e4726004130fc7e3 Mon Sep 17 00:00:00 2001 |
1370 |
-From: Gilles Dartiguelongue <eva@g.o> |
1371 |
-Date: Tue, 12 May 2015 00:32:11 +0200 |
1372 |
-Subject: [PATCH 4/5] Make network panel optional |
1373 |
- |
1374 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
1375 |
---- |
1376 |
- configure.ac | 43 +++++++++++++++++++++++++------------------ |
1377 |
- 1 file changed, 25 insertions(+), 18 deletions(-) |
1378 |
- |
1379 |
-diff --git a/configure.ac b/configure.ac |
1380 |
-index fe947d7..6ecda91 100644 |
1381 |
---- a/configure.ac |
1382 |
-+++ b/configure.ac |
1383 |
-@@ -241,24 +241,31 @@ AS_IF([test "$enable_wayland" != "no"], |
1384 |
- PKG_CHECK_MODULES(WAYLAND, gdk-wayland-3.0) |
1385 |
- ]) |
1386 |
- |
1387 |
--PKG_CHECK_MODULES(NETWORK_MANAGER, |
1388 |
-- libnm >= $NETWORK_MANAGER_REQUIRED_VERSION |
1389 |
-- libnma >= $NETWORK_MANAGER_APPLET_REQUIRED_VERSION |
1390 |
-- mm-glib >= $MODEM_MANAGER_REQUIRED_VERSION, |
1391 |
-- [have_networkmanager=yes], have_networkmanager=no) |
1392 |
--if test "x$have_networkmanager" = xno ; then |
1393 |
-- AC_MSG_WARN(*** Network panel will not be built (NetworkManager or ModemManager not found) ***) |
1394 |
--else |
1395 |
-- AC_DEFINE(BUILD_NETWORK, 1, [Define to 1 to build the Network panel]) |
1396 |
--fi |
1397 |
--AM_CONDITIONAL(BUILD_NETWORK, [test x$have_networkmanager = xyes]) |
1398 |
--if test x${have_networkmanager} = xyes; then |
1399 |
-- AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Define to 1 if NetworkManager is available]) |
1400 |
-- NM_VPN_CONFIG_DIR=`$PKG_CONFIG --variable configdir NetworkManager`/VPN |
1401 |
-- NM_VPN_MODULE_DIR=`$PKG_CONFIG --variable plugindir NetworkManager` |
1402 |
-- AC_SUBST(NM_VPN_CONFIG_DIR) |
1403 |
-- AC_SUBST(NM_VPN_MODULE_DIR) |
1404 |
--fi |
1405 |
-+AC_ARG_ENABLE([networkmanager], |
1406 |
-+ AS_HELP_STRING([--disable-networkmanager], [Disable network panel]), |
1407 |
-+ [], |
1408 |
-+ [enable_networkmanager=auto]) |
1409 |
-+AS_IF([test "$enable_networkmanager" != "no"], |
1410 |
-+ [ |
1411 |
-+ PKG_CHECK_MODULES(NETWORK_MANAGER, |
1412 |
-+ libnm >= $NETWORK_MANAGER_REQUIRED_VERSION |
1413 |
-+ libnma >= $NETWORK_MANAGER_APPLET_REQUIRED_VERSION |
1414 |
-+ mm-glib >= $MODEM_MANAGER_REQUIRED_VERSION, |
1415 |
-+ [have_networkmanager=yes], [have_networkmanager=no]) |
1416 |
-+ |
1417 |
-+ AS_IF([test "$have_networkmanager" = "no"], |
1418 |
-+ [ |
1419 |
-+ AC_MSG_WARN([*** Network panel will not be built (NetworkManager or ModemManager not found) ***]) |
1420 |
-+ ], [ |
1421 |
-+ AC_DEFINE(BUILD_NETWORK, 1, [Define to 1 to build the Network panel]) |
1422 |
-+ AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Define to 1 if NetworkManager is available]) |
1423 |
-+ NM_VPN_CONFIG_DIR=`$PKG_CONFIG --variable configdir NetworkManager`/VPN |
1424 |
-+ NM_VPN_MODULE_DIR=`$PKG_CONFIG --variable plugindir NetworkManager` |
1425 |
-+ AC_SUBST([NM_VPN_CONFIG_DIR]) |
1426 |
-+ AC_SUBST([NM_VPN_MODULE_DIR]) |
1427 |
-+ ]) |
1428 |
-+ ]) |
1429 |
-+AM_CONDITIONAL(BUILD_NETWORK, [test "$have_networkmanager" = "yes"]) |
1430 |
- |
1431 |
- # Check for power panel |
1432 |
- if test x${have_networkmanager} = xyes; then |
1433 |
--- |
1434 |
-2.10.1 |
1435 |
- |
1436 |
|
1437 |
diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-make-wayland-optional.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-make-wayland-optional.patch |
1438 |
deleted file mode 100644 |
1439 |
index 2c06408d1a3..00000000000 |
1440 |
--- a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-make-wayland-optional.patch |
1441 |
+++ /dev/null |
1442 |
@@ -1,45 +0,0 @@ |
1443 |
-From 09d1f1a057268a6acdfb42e7dcb2843c0066f542 Mon Sep 17 00:00:00 2001 |
1444 |
-From: Ole Reifschneider <tranquility@g.o> |
1445 |
-Date: Sat, 25 Apr 2015 22:22:09 +0200 |
1446 |
-Subject: [PATCH 2/5] Make wayland support optional |
1447 |
- |
1448 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
1449 |
---- |
1450 |
- configure.ac | 21 +++++++++++++++------ |
1451 |
- 1 file changed, 15 insertions(+), 6 deletions(-) |
1452 |
- |
1453 |
-diff --git a/configure.ac b/configure.ac |
1454 |
-index 19096f5..140459c 100644 |
1455 |
---- a/configure.ac |
1456 |
-+++ b/configure.ac |
1457 |
-@@ -225,12 +225,21 @@ if test "x$have_udev" = xyes ; then |
1458 |
- fi |
1459 |
- AM_CONDITIONAL(HAVE_UDEV, [test "x$have_udev" = "xyes"]) |
1460 |
- |
1461 |
--PKG_CHECK_MODULES(WAYLAND, gdk-wayland-3.0, have_wayland=yes, have_wayland=no) |
1462 |
--if test "x$have_wayland" = xyes ; then |
1463 |
-- if test "x$have_udev" != xyes ; then |
1464 |
-- AC_MSG_ERROR([udev is required for Wayland support]) |
1465 |
-- fi |
1466 |
--fi |
1467 |
-+AC_ARG_ENABLE( |
1468 |
-+ [wayland], |
1469 |
-+ AS_HELP_STRING([--disable-wayland], [disable wayland support]), |
1470 |
-+ [], |
1471 |
-+ enable_wayland=auto |
1472 |
-+) |
1473 |
-+ |
1474 |
-+AS_IF([test "$enable_wayland" != "no"], |
1475 |
-+ [ |
1476 |
-+ AS_IF([test "x$have_udev" = xno], |
1477 |
-+ [AC_MSG_ERROR([udev is required for Wayland support])], |
1478 |
-+ [AC_DEFINE(HAVE_UDEV, 1, [System has udev])]) |
1479 |
-+ |
1480 |
-+ PKG_CHECK_MODULES(WAYLAND, gdk-wayland-3.0) |
1481 |
-+]) |
1482 |
- |
1483 |
- PKG_CHECK_MODULES(NETWORK_MANAGER, |
1484 |
- libnm >= $NETWORK_MANAGER_REQUIRED_VERSION |
1485 |
--- |
1486 |
-2.10.1 |
1487 |
- |
1488 |
|
1489 |
diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-optional.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-optional.patch |
1490 |
deleted file mode 100644 |
1491 |
index 02516ced7c9..00000000000 |
1492 |
--- a/gnome-base/gnome-control-center/files/gnome-control-center-3.22.0-optional.patch |
1493 |
+++ /dev/null |
1494 |
@@ -1,569 +0,0 @@ |
1495 |
-From 108d79460d42d5e8167ad52747628f9dfd21058d Mon Sep 17 00:00:00 2001 |
1496 |
-From: Alexandre Rostovtsev <tetromino@g.o> |
1497 |
-Date: Wed, 2 Nov 2016 23:40:52 +0100 |
1498 |
-Subject: [PATCH 1/5] Make bluetooth/colord/goa/kerberos/wacom optional |
1499 |
- |
1500 |
-Upstream is not interested in any part of this patch: |
1501 |
- |
1502 |
-https://bugzilla.gnome.org/show_bug.cgi?id=686840 |
1503 |
-https://bugzilla.gnome.org/show_bug.cgi?id=697478 |
1504 |
-https://bugzilla.gnome.org/show_bug.cgi?id=700145 |
1505 |
- |
1506 |
-Signed-off-by: Ole Reifschneider <tranquility@g.o> |
1507 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
1508 |
---- |
1509 |
- configure.ac | 185 +++++++++++++++++++++++--------- |
1510 |
- panels/Makefile.am | 10 +- |
1511 |
- panels/background/Makefile.am | 8 +- |
1512 |
- panels/background/bg-pictures-source.c | 20 ++++ |
1513 |
- panels/power/cc-power-panel.c | 2 +- |
1514 |
- panels/user-accounts/um-realm-manager.c | 9 ++ |
1515 |
- shell/Makefile.am | 10 +- |
1516 |
- shell/cc-panel-loader.c | 8 ++ |
1517 |
- 8 files changed, 196 insertions(+), 56 deletions(-) |
1518 |
- |
1519 |
-diff --git a/configure.ac b/configure.ac |
1520 |
-index 1e07acd..19096f5 100644 |
1521 |
---- a/configure.ac |
1522 |
-+++ b/configure.ac |
1523 |
-@@ -119,10 +119,6 @@ LIBGD_INIT([_view-common notification static]) |
1524 |
- PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES gnome-desktop-3.0 fontconfig) |
1525 |
- PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11) |
1526 |
- PKG_CHECK_MODULES(SHELL, $COMMON_MODULES x11 polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION) |
1527 |
--PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES cairo-gobject libxml-2.0 gnome-desktop-3.0 |
1528 |
-- gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION |
1529 |
-- goa-1.0 >= $GOA_REQUIRED_VERSION |
1530 |
-- grilo-0.3 >= $GRILO_REQUIRED_VERSION) |
1531 |
- PKG_CHECK_MODULES(DATETIME_PANEL, $COMMON_MODULES |
1532 |
- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
1533 |
- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION |
1534 |
-@@ -140,12 +136,58 @@ PKG_CHECK_MODULES(MOUSE_PANEL, $COMMON_MODULES xi >= 1.2 |
1535 |
- PKG_CHECK_MODULES(NETWORK_PANEL, $COMMON_MODULES gmodule-2.0 |
1536 |
- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION) |
1537 |
- PKG_CHECK_MODULES(NOTIFICATIONS_PANEL, $COMMON_MODULES) |
1538 |
--PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION) |
1539 |
--PKG_CHECK_MODULES(COLOR_PANEL, $COMMON_MODULES |
1540 |
-- colord >= $COLORD_REQUIRED_VERSION |
1541 |
-- colord-gtk >= $COLORD_GTK_REQUIRED_VERSION |
1542 |
-- libsoup-2.4 |
1543 |
-- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION) |
1544 |
-+ |
1545 |
-+build_online_accounts=no |
1546 |
-+background_online_accounts= |
1547 |
-+AC_ARG_ENABLE([goa], |
1548 |
-+ AS_HELP_STRING([--disable-goa], |
1549 |
-+ [disable online accounts management panel]), |
1550 |
-+ [], |
1551 |
-+ [enable_goa=auto]) |
1552 |
-+ |
1553 |
-+AS_IF([test "$enable_goa" != "no"], |
1554 |
-+ [PKG_CHECK_MODULES([ONLINE_ACCOUNTS_PANEL], |
1555 |
-+ [$COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION], |
1556 |
-+ [ |
1557 |
-+ AC_DEFINE(BUILD_ONLINE_ACCOUNTS, 1, [Define to 1 to build the Online Accounts panel]) |
1558 |
-+ build_online_accounts=yes |
1559 |
-+ background_goa_dependencies="goa-1.0 >= $GOA_REQUIRED_VERSION grilo-0.3 >= $GRILO_REQUIRED_VERSION" |
1560 |
-+ ], [ |
1561 |
-+ AS_IF([test "$enable_goa" = "yes"], |
1562 |
-+ [AC_MSG_ERROR([gnome-online-accounts support requested but not found])]) |
1563 |
-+ ]) |
1564 |
-+ ]) |
1565 |
-+AM_CONDITIONAL(BUILD_ONLINE_ACCOUNTS, test "$build_online_accounts" = "yes") |
1566 |
-+ |
1567 |
-+PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES cairo-gobject libxml-2.0 gnome-desktop-3.0 |
1568 |
-+ gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION |
1569 |
-+ $background_goa_dependencies) |
1570 |
-+ |
1571 |
-+build_color=no |
1572 |
-+AC_ARG_ENABLE([color], |
1573 |
-+ AS_HELP_STRING([--disable-color], |
1574 |
-+ [disable color management panel]), |
1575 |
-+ [], |
1576 |
-+ [enable_color=auto]) |
1577 |
-+ |
1578 |
-+AS_IF([test "$enable_color" != "no"], |
1579 |
-+ [PKG_CHECK_MODULES([COLOR_PANEL], |
1580 |
-+ [ |
1581 |
-+ $COMMON_MODULES |
1582 |
-+ colord >= $COLORD_REQUIRED_VERSION |
1583 |
-+ colord-gtk >= $COLORD_GTK_REQUIRED_VERSION |
1584 |
-+ libsoup-2.4 |
1585 |
-+ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
1586 |
-+ ], [ |
1587 |
-+ AC_DEFINE(BUILD_COLOR, 1, [Define to 1 to build the Color panel]) |
1588 |
-+ build_color=yes |
1589 |
-+ ], [ |
1590 |
-+ AS_IF([test "$enable_color" = "yes"], |
1591 |
-+ [AC_MSG_ERROR([colord support requested but not found])]) |
1592 |
-+ ]) |
1593 |
-+ ]) |
1594 |
-+AM_CONDITIONAL(BUILD_COLOR, test "$build_color" = "yes") |
1595 |
-+ |
1596 |
- PKG_CHECK_MODULES(PRINTERS_PANEL, $COMMON_MODULES |
1597 |
- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION) |
1598 |
- PKG_CHECK_MODULES(PRIVACY_PANEL, $COMMON_MODULES) |
1599 |
-@@ -220,15 +262,27 @@ else |
1600 |
- fi |
1601 |
- |
1602 |
- # Check for gnome-bluetooth |
1603 |
--PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.18.2, |
1604 |
-- [have_bluetooth=yes], have_bluetooth=no) |
1605 |
--if test "x$have_bluetooth" = xyes ; then |
1606 |
-- AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel]) |
1607 |
--fi |
1608 |
--AM_CONDITIONAL(BUILD_BLUETOOTH, [test x$have_bluetooth = xyes]) |
1609 |
--if test x${have_bluetooth} = xyes; then |
1610 |
-- AC_DEFINE(HAVE_BLUETOOTH, 1, [Define to 1 if bluetooth support is available]) |
1611 |
--fi |
1612 |
-+have_bluetooth=no |
1613 |
-+AC_ARG_ENABLE([bluetooth], |
1614 |
-+ AS_HELP_STRING([--disable-bluetooth], |
1615 |
-+ [disable bluetooth management panel]), |
1616 |
-+ [], |
1617 |
-+ [enable_bluetooth=auto]) |
1618 |
-+ |
1619 |
-+AS_IF([test "$enable_bluetooth" = "yes"], |
1620 |
-+ [PKG_CHECK_MODULES([BLUETOOTH], |
1621 |
-+ [$COMMON_MODULES gnome-bluetooth-1.0 >= 3.18.2], |
1622 |
-+ [ |
1623 |
-+ AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel]) |
1624 |
-+ have_bluetooth=yes |
1625 |
-+ ], |
1626 |
-+ [ |
1627 |
-+ have_bluetooth=no |
1628 |
-+ AS_IF([test "$enable_bluetooth" = "yes"], |
1629 |
-+ [AC_MSG_ERROR([bluetooth support requested but not found])]) |
1630 |
-+ ]) |
1631 |
-+ ]) |
1632 |
-+AM_CONDITIONAL(BUILD_BLUETOOTH, [test "$have_bluetooth" = "yes"]) |
1633 |
- |
1634 |
- # Check for smbclient |
1635 |
- PKG_CHECK_MODULES(SMBCLIENT, smbclient, [have_smbclient=yes], [have_smbclient=no]) |
1636 |
-@@ -301,38 +355,61 @@ fi |
1637 |
- AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes) |
1638 |
- |
1639 |
- # wacom is disabled for s390/s390x and non Linux platforms (needs udev) |
1640 |
--case $host_os in |
1641 |
-- linux*) |
1642 |
-- if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then |
1643 |
-- have_wacom=no |
1644 |
-- else |
1645 |
-- PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES |
1646 |
-- gnome-settings-daemon >= $GSD_REQUIRED_VERSION |
1647 |
-- xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION |
1648 |
-- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
1649 |
-- clutter-gtk-1.0 |
1650 |
-- clutter-1.0 >= $CLUTTER_REQUIRED_VERSION) |
1651 |
-- have_wacom=yes |
1652 |
-- AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel]) |
1653 |
-- AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted]) |
1654 |
-- fi |
1655 |
-- ;; |
1656 |
-- *) |
1657 |
-- have_wacom=no |
1658 |
-- ;; |
1659 |
--esac |
1660 |
--AM_CONDITIONAL(BUILD_WACOM, [test x${have_wacom} = xyes]) |
1661 |
-+have_wacom=no |
1662 |
-+AS_CASE([$host_os], |
1663 |
-+ [linux*], |
1664 |
-+ [AS_IF([test "$host_cpu" = "s390" -o "$host_cpu" = "s390x"], |
1665 |
-+ [have_wacom=no], |
1666 |
-+ [ |
1667 |
-+ AC_ARG_ENABLE([wacom], |
1668 |
-+ AS_HELP_STRING([--disable-wacom], |
1669 |
-+ [disable wacom management panel]), |
1670 |
-+ [], |
1671 |
-+ [enable_wacom=yes]) |
1672 |
-+ AS_IF([test "$enable_wacom" = "yes"], |
1673 |
-+ [PKG_CHECK_MODULES([WACOM_PANEL], |
1674 |
-+ [ |
1675 |
-+ $COMMON_MODULES |
1676 |
-+ gnome-settings-daemon >= $GSD_REQUIRED_VERSION |
1677 |
-+ xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION |
1678 |
-+ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
1679 |
-+ clutter-gtk-1.0 |
1680 |
-+ clutter-1.0 >= $CLUTTER_REQUIRED_VERSION |
1681 |
-+ ], [ |
1682 |
-+ have_wacom=yes |
1683 |
-+ AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel]) |
1684 |
-+ AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted]) |
1685 |
-+ ], [ |
1686 |
-+ have_wacom=no |
1687 |
-+ AS_IF([test "$enable_wacom" = "yes"], |
1688 |
-+ [AC_MSG_ERROR([wacom support requested but not found])]) |
1689 |
-+ ]) |
1690 |
-+ ]) |
1691 |
-+ ]) |
1692 |
-+ ], |
1693 |
-+ [have_wacom=no]) |
1694 |
-+AM_CONDITIONAL(BUILD_WACOM, [test "$have_wacom" = "yes"]) |
1695 |
- |
1696 |
- # Kerberos kerberos support |
1697 |
--AC_PATH_PROG(KRB5_CONFIG, krb5-config, no) |
1698 |
--if test "$KRB5_CONFIG" = "no"; then |
1699 |
-- AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries]) |
1700 |
--fi |
1701 |
-- |
1702 |
--AC_MSG_CHECKING(for krb5 libraries and flags) |
1703 |
--KRB5_CFLAGS="`$KRB5_CONFIG --cflags`" |
1704 |
--KRB5_LIBS="`$KRB5_CONFIG --libs`" |
1705 |
--AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS) |
1706 |
-+AC_ARG_ENABLE([kerberos], |
1707 |
-+ AS_HELP_STRING([--disable-kerberos], |
1708 |
-+ [disable kerberos support (default: enabled)]), |
1709 |
-+ [], |
1710 |
-+ [enable_kerberos=yes]) |
1711 |
-+ |
1712 |
-+AS_IF([test "$enable_kerberos" != "no"], |
1713 |
-+ [ |
1714 |
-+ AC_PATH_PROG(KRB5_CONFIG, krb5-config, no) |
1715 |
-+ |
1716 |
-+ AS_IF([test "$KRB5_CONFIG" = "no"], |
1717 |
-+ AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries])) |
1718 |
-+ |
1719 |
-+ AC_MSG_CHECKING([for krb5 libraries and flags]) |
1720 |
-+ KRB5_CFLAGS="`$KRB5_CONFIG --cflags`" |
1721 |
-+ KRB5_LIBS="`$KRB5_CONFIG --libs`" |
1722 |
-+ AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS) |
1723 |
-+ AC_DEFINE(HAVE_KERBEROS, 1, [defined if krb5 is available]) |
1724 |
-+ ]) |
1725 |
- |
1726 |
- AC_SUBST(KRB5_CFLAGS) |
1727 |
- AC_SUBST(KRB5_LIBS) |
1728 |
-@@ -569,6 +646,11 @@ if test "x$have_bluetooth" = "xyes"; then |
1729 |
- else |
1730 |
- AC_MSG_NOTICE([ Bluetooth panel disabled]) |
1731 |
- fi |
1732 |
-+if test "x$build_color" = "xyes"; then |
1733 |
-+ AC_MSG_NOTICE([** colord (Color panel)]) |
1734 |
-+else |
1735 |
-+ AC_MSG_NOTICE([ Color panel disabled]) |
1736 |
-+fi |
1737 |
- if test "x$enable_cups" = "xyes"; then |
1738 |
- AC_MSG_NOTICE([** CUPS (Printers panel)]) |
1739 |
- else |
1740 |
-@@ -579,6 +661,11 @@ if test "x$have_cheese" = "xyes"; then |
1741 |
- else |
1742 |
- AC_MSG_NOTICE([ Users panel webcam support disabled]) |
1743 |
- fi |
1744 |
-+if test "x$build_online_accounts" = "xyes"; then |
1745 |
-+ AC_MSG_NOTICE([** gnome-online-accounts (Online Accounts panel)]) |
1746 |
-+else |
1747 |
-+ AC_MSG_NOTICE([ Online Accounts panel disabled]) |
1748 |
-+fi |
1749 |
- if test "x$have_wacom" = "xyes"; then |
1750 |
- AC_MSG_NOTICE([** wacom (Wacom tablet panel)]) |
1751 |
- else |
1752 |
-diff --git a/panels/Makefile.am b/panels/Makefile.am |
1753 |
-index 9961c25..0c54622 100644 |
1754 |
---- a/panels/Makefile.am |
1755 |
-+++ b/panels/Makefile.am |
1756 |
-@@ -2,11 +2,9 @@ SUBDIRS= \ |
1757 |
- common \ |
1758 |
- background \ |
1759 |
- power \ |
1760 |
-- color \ |
1761 |
- display \ |
1762 |
- mouse \ |
1763 |
- notifications \ |
1764 |
-- online-accounts \ |
1765 |
- region \ |
1766 |
- info \ |
1767 |
- sound \ |
1768 |
-@@ -18,6 +16,10 @@ SUBDIRS= \ |
1769 |
- privacy \ |
1770 |
- sharing |
1771 |
- |
1772 |
-+if BUILD_COLOR |
1773 |
-+SUBDIRS += color |
1774 |
-+endif |
1775 |
-+ |
1776 |
- if BUILD_WACOM |
1777 |
- SUBDIRS += wacom |
1778 |
- endif |
1779 |
-@@ -34,4 +36,8 @@ if BUILD_BLUETOOTH |
1780 |
- SUBDIRS += bluetooth |
1781 |
- endif |
1782 |
- |
1783 |
-+if BUILD_ONLINE_ACCOUNTS |
1784 |
-+SUBDIRS += online-accounts |
1785 |
-+endif |
1786 |
-+ |
1787 |
- -include $(top_srcdir)/git.mk |
1788 |
-diff --git a/panels/background/Makefile.am b/panels/background/Makefile.am |
1789 |
-index ccb8017..bde4cdf 100644 |
1790 |
---- a/panels/background/Makefile.am |
1791 |
-+++ b/panels/background/Makefile.am |
1792 |
-@@ -27,8 +27,6 @@ libbackground_chooser_la_SOURCES = \ |
1793 |
- $(BUILT_SOURCES) \ |
1794 |
- cc-background-chooser-dialog.c \ |
1795 |
- cc-background-chooser-dialog.h \ |
1796 |
-- cc-background-grilo-miner.c \ |
1797 |
-- cc-background-grilo-miner.h \ |
1798 |
- cc-background-item.c \ |
1799 |
- cc-background-item.h \ |
1800 |
- cc-background-xml.c \ |
1801 |
-@@ -42,6 +40,12 @@ libbackground_chooser_la_SOURCES = \ |
1802 |
- bg-colors-source.c \ |
1803 |
- bg-colors-source.h |
1804 |
- |
1805 |
-+if BUILD_ONLINE_ACCOUNTS |
1806 |
-+libbackground_chooser_la_SOURCES += \ |
1807 |
-+ cc-background-grilo-miner.c \ |
1808 |
-+ cc-background-grilo-miner.h |
1809 |
-+endif |
1810 |
-+ |
1811 |
- libbackground_chooser_la_LIBADD = $(PANEL_LIBS) $(BACKGROUND_PANEL_LIBS) |
1812 |
- |
1813 |
- libbackground_la_SOURCES = \ |
1814 |
-diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c |
1815 |
-index a33cee7..408359c 100644 |
1816 |
---- a/panels/background/bg-pictures-source.c |
1817 |
-+++ b/panels/background/bg-pictures-source.c |
1818 |
-@@ -23,13 +23,17 @@ |
1819 |
- |
1820 |
- #include "bg-pictures-source.h" |
1821 |
- |
1822 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1823 |
- #include "cc-background-grilo-miner.h" |
1824 |
-+#endif |
1825 |
- #include "cc-background-item.h" |
1826 |
- |
1827 |
- #include <string.h> |
1828 |
- #include <cairo-gobject.h> |
1829 |
- #include <gio/gio.h> |
1830 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1831 |
- #include <grilo.h> |
1832 |
-+#endif |
1833 |
- #include <libgnome-desktop/gnome-desktop-thumbnail.h> |
1834 |
- #include <gdesktop-enums.h> |
1835 |
- |
1836 |
-@@ -46,7 +50,9 @@ struct _BgPicturesSourcePrivate |
1837 |
- { |
1838 |
- GCancellable *cancellable; |
1839 |
- |
1840 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1841 |
- CcBackgroundGriloMiner *grl_miner; |
1842 |
-+#endif |
1843 |
- |
1844 |
- GnomeDesktopThumbnailFactory *thumb_factory; |
1845 |
- |
1846 |
-@@ -84,7 +90,9 @@ bg_pictures_source_dispose (GObject *object) |
1847 |
- g_clear_object (&priv->cancellable); |
1848 |
- } |
1849 |
- |
1850 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1851 |
- g_clear_object (&priv->grl_miner); |
1852 |
-+#endif |
1853 |
- g_clear_object (&priv->thumb_factory); |
1854 |
- |
1855 |
- G_OBJECT_CLASS (bg_pictures_source_parent_class)->dispose (object); |
1856 |
-@@ -414,7 +422,11 @@ add_single_file (BgPicturesSource *bg_source, |
1857 |
- gboolean needs_download; |
1858 |
- gboolean retval = FALSE; |
1859 |
- GFile *pictures_dir, *cache_dir; |
1860 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1861 |
- GrlMedia *media; |
1862 |
-+#else |
1863 |
-+ gpointer media = NULL; |
1864 |
-+#endif |
1865 |
- |
1866 |
- /* find png and jpeg files */ |
1867 |
- if (!content_type) |
1868 |
-@@ -473,7 +485,9 @@ add_single_file (BgPicturesSource *bg_source, |
1869 |
- |
1870 |
- read_file: |
1871 |
- |
1872 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1873 |
- media = g_object_get_data (G_OBJECT (file), "grl-media"); |
1874 |
-+#endif |
1875 |
- if (media == NULL) |
1876 |
- { |
1877 |
- g_object_set_data_full (G_OBJECT (file), "item", g_object_ref (item), g_object_unref); |
1878 |
-@@ -556,6 +570,7 @@ add_single_file_from_info (BgPicturesSource *bg_source, |
1879 |
- return add_single_file (bg_source, file, content_type, mtime, ret_row_ref); |
1880 |
- } |
1881 |
- |
1882 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1883 |
- static gboolean |
1884 |
- add_single_file_from_media (BgPicturesSource *bg_source, |
1885 |
- GFile *file, |
1886 |
-@@ -580,6 +595,7 @@ add_single_file_from_media (BgPicturesSource *bg_source, |
1887 |
- |
1888 |
- return add_single_file (bg_source, file, content_type, (guint64) mtime_unix, NULL); |
1889 |
- } |
1890 |
-+#endif /* BUILD_ONLINE_ACCOUNTS */ |
1891 |
- |
1892 |
- gboolean |
1893 |
- bg_pictures_source_add (BgPicturesSource *bg_source, |
1894 |
-@@ -923,6 +939,7 @@ monitor_path (BgPicturesSource *self, |
1895 |
- return monitor; |
1896 |
- } |
1897 |
- |
1898 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1899 |
- static void |
1900 |
- media_found_cb (BgPicturesSource *self, GrlMedia *media) |
1901 |
- { |
1902 |
-@@ -934,6 +951,7 @@ media_found_cb (BgPicturesSource *self, GrlMedia *media) |
1903 |
- g_object_set_data_full (G_OBJECT (file), "grl-media", g_object_ref (media), g_object_unref); |
1904 |
- add_single_file_from_media (self, file, media); |
1905 |
- } |
1906 |
-+#endif /* BUILD_ONLINE_ACCOUNTS */ |
1907 |
- |
1908 |
- static void |
1909 |
- bg_pictures_source_init (BgPicturesSource *self) |
1910 |
-@@ -961,9 +979,11 @@ bg_pictures_source_init (BgPicturesSource *self) |
1911 |
- priv->cache_dir_monitor = monitor_path (self, cache_path); |
1912 |
- g_free (cache_path); |
1913 |
- |
1914 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
1915 |
- priv->grl_miner = cc_background_grilo_miner_new (); |
1916 |
- g_signal_connect_swapped (priv->grl_miner, "media-found", G_CALLBACK (media_found_cb), self); |
1917 |
- cc_background_grilo_miner_start (priv->grl_miner); |
1918 |
-+#endif /* BUILD_ONLINE_ACCOUNTS */ |
1919 |
- |
1920 |
- priv->thumb_factory = |
1921 |
- gnome_desktop_thumbnail_factory_new (GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE); |
1922 |
-diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c |
1923 |
-index db4e69a..7677b58 100644 |
1924 |
---- a/panels/power/cc-power-panel.c |
1925 |
-+++ b/panels/power/cc-power-panel.c |
1926 |
-@@ -1882,7 +1882,7 @@ add_power_saving_section (CcPowerPanel *self) |
1927 |
- G_CALLBACK (wifi_switch_changed), self); |
1928 |
- #endif |
1929 |
- |
1930 |
--#ifdef HAVE_BLUETOOTH |
1931 |
-+#ifdef BUILD_BLUETOOTH |
1932 |
- priv->bt_rfkill = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, |
1933 |
- G_DBUS_PROXY_FLAGS_NONE, |
1934 |
- NULL, |
1935 |
-diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c |
1936 |
-index 8a0a0e6..22c6b94 100644 |
1937 |
---- a/panels/user-accounts/um-realm-manager.c |
1938 |
-+++ b/panels/user-accounts/um-realm-manager.c |
1939 |
-@@ -22,7 +22,9 @@ |
1940 |
- |
1941 |
- #include "um-realm-manager.h" |
1942 |
- |
1943 |
-+#ifdef HAVE_KERBEROS |
1944 |
- #include <krb5/krb5.h> |
1945 |
-+#endif |
1946 |
- |
1947 |
- #include <glib.h> |
1948 |
- #include <glib/gi18n.h> |
1949 |
-@@ -698,6 +700,7 @@ login_closure_free (gpointer data) |
1950 |
- g_slice_free (LoginClosure, login); |
1951 |
- } |
1952 |
- |
1953 |
-+#ifdef HAVE_KERBEROS |
1954 |
- static krb5_error_code |
1955 |
- login_perform_kinit (krb5_context k5, |
1956 |
- const gchar *realm, |
1957 |
-@@ -761,12 +764,14 @@ login_perform_kinit (krb5_context k5, |
1958 |
- |
1959 |
- return code; |
1960 |
- } |
1961 |
-+#endif /* HAVE_KERBEROS */ |
1962 |
- |
1963 |
- static void |
1964 |
- kinit_thread_func (GSimpleAsyncResult *async, |
1965 |
- GObject *object, |
1966 |
- GCancellable *cancellable) |
1967 |
- { |
1968 |
-+#ifdef HAVE_KERBEROS |
1969 |
- LoginClosure *login = g_simple_async_result_get_op_res_gpointer (async); |
1970 |
- krb5_context k5 = NULL; |
1971 |
- krb5_error_code code; |
1972 |
-@@ -844,6 +849,10 @@ kinit_thread_func (GSimpleAsyncResult *async, |
1973 |
- |
1974 |
- if (k5) |
1975 |
- krb5_free_context (k5); |
1976 |
-+#else /* HAVE_KERBEROS */ |
1977 |
-+ g_simple_async_result_set_error (async, UM_REALM_ERROR, UM_REALM_ERROR_GENERIC, |
1978 |
-+ _("gnome-control-center was built without kerberos support")); |
1979 |
-+#endif |
1980 |
- } |
1981 |
- |
1982 |
- void |
1983 |
-diff --git a/shell/Makefile.am b/shell/Makefile.am |
1984 |
-index 45f6363..b76f343 100644 |
1985 |
---- a/shell/Makefile.am |
1986 |
-+++ b/shell/Makefile.am |
1987 |
-@@ -78,14 +78,12 @@ gnome_control_center_LDADD = \ |
1988 |
- $(top_builddir)/panels/common/liblanguage.la \ |
1989 |
- $(top_builddir)/panels/common/libdevice.la \ |
1990 |
- $(top_builddir)/panels/background/libbackground.la \ |
1991 |
-- $(top_builddir)/panels/color/libcolor.la \ |
1992 |
- $(top_builddir)/panels/datetime/libdate_time.la \ |
1993 |
- $(top_builddir)/panels/display/libdisplay.la \ |
1994 |
- $(top_builddir)/panels/info/libinfo.la \ |
1995 |
- $(top_builddir)/panels/keyboard/libkeyboard.la \ |
1996 |
- $(top_builddir)/panels/mouse/libmouse-properties.la \ |
1997 |
- $(top_builddir)/panels/notifications/libnotifications.la \ |
1998 |
-- $(top_builddir)/panels/online-accounts/libonline-accounts.la \ |
1999 |
- $(top_builddir)/panels/power/libpower.la \ |
2000 |
- $(top_builddir)/panels/privacy/libprivacy.la \ |
2001 |
- $(top_builddir)/panels/region/libregion.la \ |
2002 |
-@@ -111,6 +109,14 @@ if BUILD_BLUETOOTH |
2003 |
- gnome_control_center_LDADD += $(top_builddir)/panels/bluetooth/libbluetooth.la |
2004 |
- endif |
2005 |
- |
2006 |
-+if BUILD_COLOR |
2007 |
-+gnome_control_center_LDADD += $(top_builddir)/panels/color/libcolor.la |
2008 |
-+endif |
2009 |
-+ |
2010 |
-+if BUILD_ONLINE_ACCOUNTS |
2011 |
-+gnome_control_center_LDADD += $(top_builddir)/panels/online-accounts/libonline-accounts.la |
2012 |
-+endif |
2013 |
-+ |
2014 |
- gnome_control_center_alt_LDADD = \ |
2015 |
- $(gnome_control_center_LDADD) \ |
2016 |
- alt/libshell_alt.la |
2017 |
-diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c |
2018 |
-index 03dbfb1..a713079 100644 |
2019 |
---- a/shell/cc-panel-loader.c |
2020 |
-+++ b/shell/cc-panel-loader.c |
2021 |
-@@ -33,7 +33,9 @@ extern GType cc_background_panel_get_type (void); |
2022 |
- #ifdef BUILD_BLUETOOTH |
2023 |
- extern GType cc_bluetooth_panel_get_type (void); |
2024 |
- #endif /* BUILD_BLUETOOTH */ |
2025 |
-+#ifdef BUILD_COLOR |
2026 |
- extern GType cc_color_panel_get_type (void); |
2027 |
-+#endif /* BUILD_COLOR */ |
2028 |
- extern GType cc_date_time_panel_get_type (void); |
2029 |
- extern GType cc_display_panel_get_type (void); |
2030 |
- extern GType cc_info_panel_get_type (void); |
2031 |
-@@ -43,7 +45,9 @@ extern GType cc_mouse_panel_get_type (void); |
2032 |
- extern GType cc_network_panel_get_type (void); |
2033 |
- #endif /* BUILD_NETWORK */ |
2034 |
- extern GType cc_notifications_panel_get_type (void); |
2035 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
2036 |
- extern GType cc_goa_panel_get_type (void); |
2037 |
-+#endif /* BUILD_ONLINE_ACCOUNTS */ |
2038 |
- extern GType cc_power_panel_get_type (void); |
2039 |
- #ifdef BUILD_PRINTERS |
2040 |
- extern GType cc_printers_panel_get_type (void); |
2041 |
-@@ -77,7 +81,9 @@ static struct { |
2042 |
- #ifdef BUILD_BLUETOOTH |
2043 |
- PANEL_TYPE("bluetooth", cc_bluetooth_panel_get_type ), |
2044 |
- #endif |
2045 |
-+#ifdef BUILD_COLOR |
2046 |
- PANEL_TYPE("color", cc_color_panel_get_type ), |
2047 |
-+#endif |
2048 |
- PANEL_TYPE("datetime", cc_date_time_panel_get_type ), |
2049 |
- PANEL_TYPE("display", cc_display_panel_get_type ), |
2050 |
- PANEL_TYPE("info", cc_info_panel_get_type ), |
2051 |
-@@ -87,7 +93,9 @@ static struct { |
2052 |
- PANEL_TYPE("network", cc_network_panel_get_type ), |
2053 |
- #endif |
2054 |
- PANEL_TYPE("notifications", cc_notifications_panel_get_type), |
2055 |
-+#ifdef BUILD_ONLINE_ACCOUNTS |
2056 |
- PANEL_TYPE("online-accounts", cc_goa_panel_get_type ), |
2057 |
-+#endif |
2058 |
- PANEL_TYPE("power", cc_power_panel_get_type ), |
2059 |
- #ifdef BUILD_PRINTERS |
2060 |
- PANEL_TYPE("printers", cc_printers_panel_get_type ), |
2061 |
--- |
2062 |
-2.10.1 |
2063 |
- |
2064 |
|
2065 |
diff --git a/gnome-base/gnome-control-center/gnome-control-center-3.22.2-r1.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.22.2-r1.ebuild |
2066 |
index c9c82aa7b53..0ac1e28bd66 100644 |
2067 |
--- a/gnome-base/gnome-control-center/gnome-control-center-3.22.2-r1.ebuild |
2068 |
+++ b/gnome-base/gnome-control-center/gnome-control-center-3.22.2-r1.ebuild |
2069 |
@@ -9,6 +9,7 @@ inherit bash-completion-r1 gnome2 |
2070 |
|
2071 |
DESCRIPTION="GNOME's main interface to configure various aspects of the desktop" |
2072 |
HOMEPAGE="https://git.gnome.org/browse/gnome-control-center/" |
2073 |
+SRC_URI+=" https://dev.gentoo.org/~mgorny/dist/${P}-patchset.tar.xz" |
2074 |
|
2075 |
LICENSE="GPL-2+" |
2076 |
SLOT="2" |
2077 |
@@ -128,16 +129,16 @@ DEPEND="${COMMON_DEPEND} |
2078 |
|
2079 |
PATCHES=( |
2080 |
# From gnome-3-22 branch |
2081 |
- "${FILESDIR}"/${PV}-fix-build-without-wayland.patch # bug 613192 |
2082 |
- "${FILESDIR}"/${PV}-fix-dual-gpu-crash.patch |
2083 |
+ "${WORKDIR}"/${P}-patchset/${PV}-fix-build-without-wayland.patch # bug 613192 |
2084 |
+ "${WORKDIR}"/${P}-patchset/${PV}-fix-dual-gpu-crash.patch |
2085 |
# Make some panels and dependencies optional; requires eautoreconf |
2086 |
# https://bugzilla.gnome.org/686840, 697478, 700145 |
2087 |
- "${FILESDIR}"/${PN}-3.22.0-optional.patch |
2088 |
- "${FILESDIR}"/${PN}-3.22.0-make-wayland-optional.patch |
2089 |
- "${FILESDIR}"/${PN}-3.22.0-keep-panels-optional.patch |
2090 |
- "${FILESDIR}"/${PN}-3.22.0-make-networkmanager-optional.patch |
2091 |
+ "${WORKDIR}"/${P}-patchset/${PN}-3.22.0-optional.patch |
2092 |
+ "${WORKDIR}"/${P}-patchset/${PN}-3.22.0-make-wayland-optional.patch |
2093 |
+ "${WORKDIR}"/${P}-patchset/${PN}-3.22.0-keep-panels-optional.patch |
2094 |
+ "${WORKDIR}"/${P}-patchset/${PN}-3.22.0-make-networkmanager-optional.patch |
2095 |
# Fix some absolute paths to be appropriate for Gentoo |
2096 |
- "${FILESDIR}"/${PN}-3.22.0-gentoo-paths.patch |
2097 |
+ "${WORKDIR}"/${P}-patchset/${PN}-3.22.0-gentoo-paths.patch |
2098 |
) |
2099 |
|
2100 |
src_configure() { |
2101 |
|
2102 |
diff --git a/gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild |
2103 |
index e802f6f162f..55324932108 100644 |
2104 |
--- a/gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild |
2105 |
+++ b/gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild |
2106 |
@@ -9,6 +9,7 @@ inherit bash-completion-r1 gnome2 |
2107 |
|
2108 |
DESCRIPTION="GNOME's main interface to configure various aspects of the desktop" |
2109 |
HOMEPAGE="https://git.gnome.org/browse/gnome-control-center/" |
2110 |
+SRC_URI+=" https://dev.gentoo.org/~mgorny/dist/${P}-patchset.tar.xz" |
2111 |
|
2112 |
LICENSE="GPL-2+" |
2113 |
SLOT="2" |
2114 |
@@ -132,14 +133,14 @@ DEPEND="${COMMON_DEPEND} |
2115 |
PATCHES=( |
2116 |
# Make some panels and dependencies optional; requires eautoreconf |
2117 |
# https://bugzilla.gnome.org/686840, 697478, 700145 |
2118 |
- "${FILESDIR}"/${PV}-optional.patch |
2119 |
- "${FILESDIR}"/${PV}-optional-wayland.patch |
2120 |
- "${FILESDIR}"/${PV}-optional-networkmanager.patch |
2121 |
- "${FILESDIR}"/${PV}-optional-cups.patch |
2122 |
+ "${WORKDIR}"/${P}-patchset/${PV}-optional.patch |
2123 |
+ "${WORKDIR}"/${P}-patchset/${PV}-optional-wayland.patch |
2124 |
+ "${WORKDIR}"/${P}-patchset/${PV}-optional-networkmanager.patch |
2125 |
+ "${WORKDIR}"/${P}-patchset/${PV}-optional-cups.patch |
2126 |
# Fix some absolute paths to be appropriate for Gentoo |
2127 |
- "${FILESDIR}"/${PV}-gentoo-paths.patch |
2128 |
+ "${WORKDIR}"/${P}-patchset/${PV}-gentoo-paths.patch |
2129 |
# https://bugzilla.gnome.org/show_bug.cgi?id=780544 |
2130 |
- "${FILESDIR}"/${PV}-fix-without-gdkwayland.patch |
2131 |
+ "${WORKDIR}"/${P}-patchset/${PV}-fix-without-gdkwayland.patch |
2132 |
) |
2133 |
|
2134 |
src_configure() { |
2135 |
|
2136 |
diff --git a/gnome-base/gnome-control-center/gnome-control-center-3.24.3.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.24.3.ebuild |
2137 |
index 4935e46c886..b7fe8aa31c0 100644 |
2138 |
--- a/gnome-base/gnome-control-center/gnome-control-center-3.24.3.ebuild |
2139 |
+++ b/gnome-base/gnome-control-center/gnome-control-center-3.24.3.ebuild |
2140 |
@@ -9,6 +9,7 @@ inherit bash-completion-r1 gnome2 |
2141 |
|
2142 |
DESCRIPTION="GNOME's main interface to configure various aspects of the desktop" |
2143 |
HOMEPAGE="https://git.gnome.org/browse/gnome-control-center/" |
2144 |
+SRC_URI+=" https://dev.gentoo.org/~mgorny/dist/${PN}-3.24.2-patchset.tar.xz" |
2145 |
|
2146 |
LICENSE="GPL-2+" |
2147 |
SLOT="2" |
2148 |
@@ -132,14 +133,14 @@ DEPEND="${COMMON_DEPEND} |
2149 |
PATCHES=( |
2150 |
# Make some panels and dependencies optional; requires eautoreconf |
2151 |
# https://bugzilla.gnome.org/686840, 697478, 700145 |
2152 |
- "${FILESDIR}"/3.24.2-optional.patch |
2153 |
- "${FILESDIR}"/3.24.2-optional-wayland.patch |
2154 |
- "${FILESDIR}"/3.24.2-optional-networkmanager.patch |
2155 |
- "${FILESDIR}"/3.24.2-optional-cups.patch |
2156 |
+ "${WORKDIR}"/${PN}-3.24.2-patchset/3.24.2-optional.patch |
2157 |
+ "${WORKDIR}"/${PN}-3.24.2-patchset/3.24.2-optional-wayland.patch |
2158 |
+ "${WORKDIR}"/${PN}-3.24.2-patchset/3.24.2-optional-networkmanager.patch |
2159 |
+ "${WORKDIR}"/${PN}-3.24.2-patchset/3.24.2-optional-cups.patch |
2160 |
# Fix some absolute paths to be appropriate for Gentoo |
2161 |
- "${FILESDIR}"/3.24.2-gentoo-paths.patch |
2162 |
+ "${WORKDIR}"/${PN}-3.24.2-patchset/3.24.2-gentoo-paths.patch |
2163 |
# https://bugzilla.gnome.org/show_bug.cgi?id=780544 |
2164 |
- "${FILESDIR}"/3.24.2-fix-without-gdkwayland.patch |
2165 |
+ "${WORKDIR}"/${PN}-3.24.2-patchset/3.24.2-fix-without-gdkwayland.patch |
2166 |
) |
2167 |
|
2168 |
src_configure() { |