Gentoo Archives: gentoo-commits

From: Ole Reifschneider <tranquility@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-base/gnome-control-center/, gnome-base/gnome-control-center/files/
Date: Fri, 02 Oct 2015 12:50:55
Message-Id: 1443779634.e67a7340ca1321024b041bc09c5e0f62398fdf5e.tranquility@gentoo
1 commit: e67a7340ca1321024b041bc09c5e0f62398fdf5e
2 Author: Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 2 09:53:54 2015 +0000
4 Commit: Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 2 09:53:54 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=e67a7340
7
8 gnome-base/gnome-control-center: Bump version to 3.18.0
9
10 Package-Manager: portage-2.2.22
11 Manifest-Sign-Key: 7E8B4D42
12
13 ...ontrol-center-3.18.0-keep-panels-optional.patch | 39 ++
14 .../gnome-control-center-3.18.0-optional.patch | 537 +++++++++++++++++++++
15 ...9.ebuild => gnome-control-center-3.18.0.ebuild} | 23 +-
16 .../gnome-control-center-9999.ebuild | 12 +-
17 4 files changed, 590 insertions(+), 21 deletions(-)
18
19 diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.18.0-keep-panels-optional.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.18.0-keep-panels-optional.patch
20 new file mode 100644
21 index 0000000..23141e4
22 --- /dev/null
23 +++ b/gnome-base/gnome-control-center/files/gnome-control-center-3.18.0-keep-panels-optional.patch
24 @@ -0,0 +1,39 @@
25 +From 3b51af7de7bfe7b69bbb1a96dbbc184311281704 Mon Sep 17 00:00:00 2001
26 +From: Gilles Dartiguelongue <eva@g.o>
27 +Date: Mon, 11 May 2015 23:59:03 +0200
28 +Subject: [PATCH 1/3] Optional gotta be optional
29 +
30 +---
31 + configure.ac | 16 ----------------
32 + 1 file changed, 16 deletions(-)
33 +
34 +diff --git a/configure.ac b/configure.ac
35 +index 9713256..bc239de 100644
36 +--- a/configure.ac
37 ++++ b/configure.ac
38 +@@ -508,22 +508,6 @@ else
39 + AC_MSG_RESULT(no)
40 + fi
41 +
42 +-case $host_os in
43 +- linux*)
44 +- if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then
45 +- # Nothing
46 +- echo "USB-related panels disabled on S390"
47 +- else
48 +- if test "x$have_networkmanager" != "xyes" -o \
49 +- "x$have_bluetooth" != "xyes" -o \
50 +- "x$enable_cups" != "xyes" -o \
51 +- "x$have_wacom" != "xyes"; then
52 +- AC_MSG_ERROR([The Network, Bluetooth, Printers and Wacom panels are not optional on Linux systems])
53 +- fi
54 +- fi
55 +- ;;
56 +-esac
57 +-
58 + AC_CONFIG_FILES([
59 + Makefile
60 + panels/Makefile
61 +--
62 +2.3.6
63 +
64
65 diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.18.0-optional.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.18.0-optional.patch
66 new file mode 100644
67 index 0000000..96b58f6
68 --- /dev/null
69 +++ b/gnome-base/gnome-control-center/files/gnome-control-center-3.18.0-optional.patch
70 @@ -0,0 +1,537 @@
71 +From af4a143d8e0ee51b1a81807d82598101663b1034 Mon Sep 17 00:00:00 2001
72 +From: Alexandre Rostovtsev <tetromino@g.o>
73 +Date: Fri, 25 Apr 2014 22:17:24 +0200
74 +Subject: [PATCH 1/2] Make bluetooth/colord/goa/kerberos/wacom optional
75 +
76 +Upstream is not interested in any part of this patch:
77 +
78 +https://bugzilla.gnome.org/show_bug.cgi?id=686840
79 +https://bugzilla.gnome.org/show_bug.cgi?id=697478
80 +https://bugzilla.gnome.org/show_bug.cgi?id=700145
81 +
82 +Dropped mm from this revision of the patch since it appears more
83 +complicated than ever to split it from the network panel.
84 +
85 +Signed-Off: Gilles Dartiguelongue <eva@g.o>
86 +---
87 + configure.ac | 157 ++++++++++++++++++++++++++------
88 + panels/Makefile.am | 10 +-
89 + panels/background/Makefile.am | 8 +-
90 + panels/background/bg-pictures-source.c | 20 ++++
91 + panels/user-accounts/um-realm-manager.c | 9 ++
92 + shell/Makefile.am | 10 +-
93 + shell/cc-panel-loader.c | 8 ++
94 + 7 files changed, 186 insertions(+), 36 deletions(-)
95 +
96 +diff --git a/configure.ac b/configure.ac
97 +index fe723d5..f882e23 100644
98 +--- a/configure.ac
99 ++++ b/configure.ac
100 +@@ -119,10 +119,6 @@ LIBGD_INIT([_view-common notification static])
101 + PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES gnome-desktop-3.0 fontconfig)
102 + PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11)
103 + PKG_CHECK_MODULES(SHELL, $COMMON_MODULES x11 polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION)
104 +-PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES cairo-gobject libxml-2.0 gnome-desktop-3.0
105 +- gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION
106 +- goa-1.0 >= $GOA_REQUIRED_VERSION
107 +- grilo-0.2 >= $GRILO_REQUIRED_VERSION)
108 + PKG_CHECK_MODULES(DATETIME_PANEL, $COMMON_MODULES
109 + gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
110 + polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION
111 +@@ -139,14 +135,65 @@ PKG_CHECK_MODULES(MOUSE_PANEL, $COMMON_MODULES xi >= 1.2
112 + gnome-settings-daemon >= $GSD_REQUIRED_VERSION x11)
113 + PKG_CHECK_MODULES(NETWORK_PANEL, $COMMON_MODULES gmodule-2.0)
114 + PKG_CHECK_MODULES(NOTIFICATIONS_PANEL, $COMMON_MODULES)
115 +-PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION)
116 ++
117 ++build_online_accounts=false
118 ++background_online_accounts=
119 ++AC_ARG_ENABLE(goa,
120 ++ AC_HELP_STRING([--disable-goa],
121 ++ [disable online accounts management panel]),
122 ++ [case "${enableval}" in
123 ++ yes) WANT_ONLINE_ACCOUNTS=yes ;;
124 ++ no) WANT_ONLINE_ACCOUNTS=no ;;
125 ++ *) AC_MSG_ERROR(bad value ${enableval} for --disable-goa) ;;
126 ++ esac],
127 ++ [WANT_ONLINE_ACCOUNTS=yes]) dnl Default value
128 ++
129 ++if test x$WANT_ONLINE_ACCOUNTS = xyes; then
130 ++ PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION)
131 ++ build_online_accounts=true
132 ++ background_online_accounts="goa-1.0 >= $GOA_REQUIRED_VERSION grilo-0.2 >= $GRILO_REQUIRED_VERSION"
133 ++fi
134 ++if test "x$build_online_accounts" = xtrue ; then
135 ++ AC_DEFINE(BUILD_ONLINE_ACCOUNTS, 1, [Define to 1 to build the Online Accounts panel])
136 ++fi
137 ++AM_CONDITIONAL(BUILD_ONLINE_ACCOUNTS, test "x$build_online_accounts" = "xtrue")
138 ++AC_SUBST(ONLINE_ACCOUNTS_PANEL_CFLAGS)
139 ++AC_SUBST(ONLINE_ACCOUNTS_PANEL_LIBS)
140 ++
141 ++PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES libxml-2.0 gnome-desktop-3.0
142 ++ gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION
143 ++ $background_online_accounts)
144 ++
145 + PKG_CHECK_MODULES(POWER_PANEL, $COMMON_MODULES upower-glib >= 0.99.0
146 + gnome-settings-daemon >= $GSD_REQUIRED_VERSION)
147 +-PKG_CHECK_MODULES(COLOR_PANEL, $COMMON_MODULES
148 +- colord >= $COLORD_REQUIRED_VERSION
149 +- colord-gtk >= $COLORD_GTK_REQUIRED_VERSION
150 +- libsoup-2.4
151 +- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
152 ++
153 ++build_color=false
154 ++AC_ARG_ENABLE(color,
155 ++ AC_HELP_STRING([--disable-color],
156 ++ [disable color management panel]),
157 ++ [case "${enableval}" in
158 ++ yes) WANT_COLOR=yes ;;
159 ++ no) WANT_COLOR=no ;;
160 ++ *) AC_MSG_ERROR(bad value ${enableval} for --disable-color) ;;
161 ++ esac],
162 ++ [WANT_COLOR=yes]) dnl Default value
163 ++
164 ++if test x$WANT_COLOR = xyes; then
165 ++
166 ++ PKG_CHECK_MODULES(COLOR_PANEL, $COMMON_MODULES
167 ++ colord >= $COLORD_REQUIRED_VERSION
168 ++ colord-gtk >= $COLORD_GTK_REQUIRED_VERSION
169 ++ libsoup-2.4
170 ++ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
171 ++ build_color=true
172 ++fi
173 ++if test "x$build_color" = xtrue ; then
174 ++ AC_DEFINE(BUILD_COLOR, 1, [Define to 1 to build the Color panel])
175 ++fi
176 ++AM_CONDITIONAL(BUILD_COLOR, test "x$build_color" = "xtrue")
177 ++AC_SUBST(COLOR_PANEL_CFLAGS)
178 ++AC_SUBST(COLOR_PANEL_LIBS)
179 ++
180 + PKG_CHECK_MODULES(PRINTERS_PANEL, $COMMON_MODULES
181 + polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION)
182 + PKG_CHECK_MODULES(PRIVACY_PANEL, $COMMON_MODULES)
183 +@@ -206,8 +253,25 @@ fi
184 + AM_CONDITIONAL(HAVE_NM_UNSTABLE, [test x$nm_unstable = xyes])
185 +
186 + # Check for gnome-bluetooth
187 +-PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.18.0,
188 +- [have_bluetooth=yes], have_bluetooth=no)
189 ++have_bluetooth=no
190 ++AC_ARG_ENABLE(bluetooth,
191 ++ AC_HELP_STRING([--disable-bluetooth],
192 ++ [disable bluetooth management panel]),
193 ++ [case "${enableval}" in
194 ++ yes) WANT_BLUETOOTH=yes ;;
195 ++ no) WANT_BLUETOOTH=no ;;
196 ++ *) AC_MSG_ERROR(bad value ${enableval} for --disable-bluetooth) ;;
197 ++ esac],
198 ++ [WANT_BLUETOOTH=yes]) dnl Default value
199 ++
200 ++if test x$WANT_BLUETOOTH = xyes; then
201 ++ # Check for gnome-bluetooth
202 ++ PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.18.0,
203 ++ [have_bluetooth=yes], have_bluetooth=no)
204 ++ have_bluetooth=yes
205 ++fi
206 ++
207 ++
208 + if test "x$have_bluetooth" = xyes ; then
209 + AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel])
210 + fi
211 +@@ -292,15 +356,27 @@ case $host_os in
212 + if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then
213 + have_wacom=no
214 + else
215 +- PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES
216 +- gnome-settings-daemon >= $GSD_REQUIRED_VERSION
217 +- xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION
218 +- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
219 +- clutter-gtk-1.0
220 +- clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
221 +- have_wacom=yes
222 +- AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel])
223 +- AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted])
224 ++ AC_ARG_ENABLE(wacom,
225 ++ AC_HELP_STRING([--disable-wacom],
226 ++ [disable wacom management panel]),
227 ++ [case "${enableval}" in
228 ++ yes) WANT_WACOM=yes ;;
229 ++ no) WANT_WACOM=no ;;
230 ++ *) AC_MSG_ERROR(bad value ${enableval} for --disable-wacom) ;;
231 ++ esac],
232 ++ [WANT_WACOM=yes]) dnl Default value
233 ++
234 ++ if test x$WANT_WACOM = xyes; then
235 ++ PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES
236 ++ gnome-settings-daemon >= $GSD_REQUIRED_VERSION
237 ++ xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION
238 ++ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
239 ++ clutter-gtk-1.0
240 ++ clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
241 ++ have_wacom=yes
242 ++ AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel])
243 ++ AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted])
244 ++ fi
245 + fi
246 + ;;
247 + *)
248 +@@ -310,16 +386,22 @@ esac
249 + AM_CONDITIONAL(BUILD_WACOM, [test x${have_wacom} = xyes])
250 +
251 + # Kerberos kerberos support
252 +-AC_PATH_PROG(KRB5_CONFIG, krb5-config, no)
253 +-if test "$KRB5_CONFIG" = "no"; then
254 +- AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries])
255 +-fi
256 +-
257 +-AC_MSG_CHECKING(for krb5 libraries and flags)
258 +-KRB5_CFLAGS="`$KRB5_CONFIG --cflags`"
259 +-KRB5_LIBS="`$KRB5_CONFIG --libs`"
260 +-AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS)
261 ++AC_ARG_ENABLE([kerberos],
262 ++ AS_HELP_STRING([--disable-kerberos], [disable kerberos support (default: enabled)]),,
263 ++ [enable_kerberos=yes])
264 ++
265 ++if test x"$enable_kerberos" != x"no" ; then
266 ++ AC_PATH_PROG(KRB5_CONFIG, krb5-config, no)
267 ++ if test "$KRB5_CONFIG" = "no"; then
268 ++ AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries])
269 ++ fi
270 +
271 ++ AC_MSG_CHECKING(for krb5 libraries and flags)
272 ++ KRB5_CFLAGS="`$KRB5_CONFIG --cflags`"
273 ++ KRB5_LIBS="`$KRB5_CONFIG --libs`"
274 ++ AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS)
275 ++ AC_DEFINE(HAVE_KERBEROS, 1, [defined if krb5 is available])
276 ++fi
277 + AC_SUBST(KRB5_CFLAGS)
278 + AC_SUBST(KRB5_LIBS)
279 +
280 +@@ -538,6 +620,11 @@ if test "x$have_bluetooth" = "xyes"; then
281 + else
282 + AC_MSG_NOTICE([ Bluetooth panel disabled])
283 + fi
284 ++if test "x$build_color" = "xtrue"; then
285 ++ AC_MSG_NOTICE([** colord (Color panel)])
286 ++else
287 ++ AC_MSG_NOTICE([ Color panel disabled])
288 ++fi
289 + if test "x$enable_cups" = "xyes"; then
290 + AC_MSG_NOTICE([** CUPS (Printers panel)])
291 + else
292 +@@ -548,6 +635,16 @@ if test "x$have_cheese" = "xyes"; then
293 + else
294 + AC_MSG_NOTICE([ Users panel webcam support disabled])
295 + fi
296 ++if test "x$build_online_accounts" = "xtrue"; then
297 ++ AC_MSG_NOTICE([** gnome-online-accounts (Online Accounts panel)])
298 ++else
299 ++ AC_MSG_NOTICE([ Online Accounts panel disabled])
300 ++fi
301 ++if test "x$build_wacom" = "xtrue"; then
302 ++ AC_MSG_NOTICE([** libwacom (Wacom Graphics Tablet panel)])
303 ++else
304 ++ AC_MSG_NOTICE([ Wacom Graphics Tablet panel disabled])
305 ++fi
306 + if test "x$have_wacom" = "xyes"; then
307 + AC_MSG_NOTICE([** wacom (Wacom tablet panel)])
308 + else
309 +diff --git a/panels/Makefile.am b/panels/Makefile.am
310 +index 9961c25..0c54622 100644
311 +--- a/panels/Makefile.am
312 ++++ b/panels/Makefile.am
313 +@@ -2,11 +2,9 @@ SUBDIRS= \
314 + common \
315 + background \
316 + power \
317 +- color \
318 + display \
319 + mouse \
320 + notifications \
321 +- online-accounts \
322 + region \
323 + info \
324 + sound \
325 +@@ -18,6 +16,10 @@ SUBDIRS= \
326 + privacy \
327 + sharing
328 +
329 ++if BUILD_COLOR
330 ++SUBDIRS += color
331 ++endif
332 ++
333 + if BUILD_WACOM
334 + SUBDIRS += wacom
335 + endif
336 +@@ -34,4 +36,8 @@ if BUILD_BLUETOOTH
337 + SUBDIRS += bluetooth
338 + endif
339 +
340 ++if BUILD_ONLINE_ACCOUNTS
341 ++SUBDIRS += online-accounts
342 ++endif
343 ++
344 + -include $(top_srcdir)/git.mk
345 +diff --git a/panels/background/Makefile.am b/panels/background/Makefile.am
346 +index ccb8017..bde4cdf 100644
347 +--- a/panels/background/Makefile.am
348 ++++ b/panels/background/Makefile.am
349 +@@ -27,8 +27,6 @@ libbackground_chooser_la_SOURCES = \
350 + $(BUILT_SOURCES) \
351 + cc-background-chooser-dialog.c \
352 + cc-background-chooser-dialog.h \
353 +- cc-background-grilo-miner.c \
354 +- cc-background-grilo-miner.h \
355 + cc-background-item.c \
356 + cc-background-item.h \
357 + cc-background-xml.c \
358 +@@ -42,6 +40,12 @@ libbackground_chooser_la_SOURCES = \
359 + bg-colors-source.c \
360 + bg-colors-source.h
361 +
362 ++if BUILD_ONLINE_ACCOUNTS
363 ++libbackground_chooser_la_SOURCES += \
364 ++ cc-background-grilo-miner.c \
365 ++ cc-background-grilo-miner.h
366 ++endif
367 ++
368 + libbackground_chooser_la_LIBADD = $(PANEL_LIBS) $(BACKGROUND_PANEL_LIBS)
369 +
370 + libbackground_la_SOURCES = \
371 +diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
372 +index c165fa3..78ef4a5 100644
373 +--- a/panels/background/bg-pictures-source.c
374 ++++ b/panels/background/bg-pictures-source.c
375 +@@ -23,13 +23,17 @@
376 +
377 + #include "bg-pictures-source.h"
378 +
379 ++#ifdef BUILD_ONLINE_ACCOUNTS
380 + #include "cc-background-grilo-miner.h"
381 ++#endif
382 + #include "cc-background-item.h"
383 +
384 + #include <string.h>
385 + #include <cairo-gobject.h>
386 + #include <gio/gio.h>
387 ++#ifdef BUILD_ONLINE_ACCOUNTS
388 + #include <grilo.h>
389 ++#endif
390 + #include <libgnome-desktop/gnome-desktop-thumbnail.h>
391 + #include <gdesktop-enums.h>
392 +
393 +@@ -46,7 +50,9 @@ struct _BgPicturesSourcePrivate
394 + {
395 + GCancellable *cancellable;
396 +
397 ++#ifdef BUILD_ONLINE_ACCOUNTS
398 + CcBackgroundGriloMiner *grl_miner;
399 ++#endif
400 +
401 + GnomeDesktopThumbnailFactory *thumb_factory;
402 +
403 +@@ -84,7 +90,9 @@ bg_pictures_source_dispose (GObject *object)
404 + g_clear_object (&priv->cancellable);
405 + }
406 +
407 ++#ifdef BUILD_ONLINE_ACCOUNTS
408 + g_clear_object (&priv->grl_miner);
409 ++#endif
410 + g_clear_object (&priv->thumb_factory);
411 +
412 + G_OBJECT_CLASS (bg_pictures_source_parent_class)->dispose (object);
413 +@@ -414,7 +422,11 @@ add_single_file (BgPicturesSource *bg_source,
414 + gboolean needs_download;
415 + gboolean retval = FALSE;
416 + GFile *pictures_dir, *cache_dir;
417 ++#ifdef BUILD_ONLINE_ACCOUNTS
418 + GrlMedia *media;
419 ++#else
420 ++ gpointer media = NULL;
421 ++#endif
422 +
423 + /* find png and jpeg files */
424 + if (!content_type)
425 +@@ -473,7 +485,9 @@ add_single_file (BgPicturesSource *bg_source,
426 +
427 + read_file:
428 +
429 ++#ifdef BUILD_ONLINE_ACCOUNTS
430 + media = g_object_get_data (G_OBJECT (file), "grl-media");
431 ++#endif
432 + if (media == NULL)
433 + {
434 + g_object_set_data_full (G_OBJECT (file), "item", g_object_ref (item), g_object_unref);
435 +@@ -556,6 +570,7 @@ add_single_file_from_info (BgPicturesSource *bg_source,
436 + return add_single_file (bg_source, file, content_type, mtime, ret_row_ref);
437 + }
438 +
439 ++#ifdef BUILD_ONLINE_ACCOUNTS
440 + static gboolean
441 + add_single_file_from_media (BgPicturesSource *bg_source,
442 + GFile *file,
443 +@@ -575,6 +590,7 @@ add_single_file_from_media (BgPicturesSource *bg_source,
444 +
445 + return add_single_file (bg_source, file, content_type, (guint64) mtime_unix, NULL);
446 + }
447 ++#endif /* BUILD_ONLINE_ACCOUNTS */
448 +
449 + gboolean
450 + bg_pictures_source_add (BgPicturesSource *bg_source,
451 +@@ -885,6 +901,7 @@ files_changed_cb (GFileMonitor *monitor,
452 + }
453 + }
454 +
455 ++#ifdef BUILD_ONLINE_ACCOUNTS
456 + static void
457 + media_found_cb (BgPicturesSource *self, GrlMedia *media)
458 + {
459 +@@ -896,6 +913,7 @@ media_found_cb (BgPicturesSource *self, GrlMedia *media)
460 + g_object_set_data_full (G_OBJECT (file), "grl-media", g_object_ref (media), g_object_unref);
461 + add_single_file_from_media (self, file, media);
462 + }
463 ++#endif /* BUILD_ONLINE_ACCOUNTS */
464 +
465 + static void
466 + bg_pictures_source_init (BgPicturesSource *self)
467 +@@ -962,9 +980,11 @@ bg_pictures_source_init (BgPicturesSource *self)
468 +
469 + g_object_unref (dir);
470 +
471 ++#ifdef BUILD_ONLINE_ACCOUNTS
472 + priv->grl_miner = cc_background_grilo_miner_new ();
473 + g_signal_connect_swapped (priv->grl_miner, "media-found", G_CALLBACK (media_found_cb), self);
474 + cc_background_grilo_miner_start (priv->grl_miner);
475 ++#endif /* BUILD_ONLINE_ACCOUNTS */
476 +
477 + priv->thumb_factory =
478 + gnome_desktop_thumbnail_factory_new (GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE);
479 +diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c
480 +index 0849160..58d50a6 100644
481 +--- a/panels/user-accounts/um-realm-manager.c
482 ++++ b/panels/user-accounts/um-realm-manager.c
483 +@@ -22,7 +22,9 @@
484 +
485 + #include "um-realm-manager.h"
486 +
487 ++#ifdef HAVE_KERBEROS
488 + #include <krb5/krb5.h>
489 ++#endif
490 +
491 + #include <glib.h>
492 + #include <glib/gi18n.h>
493 +@@ -696,6 +698,7 @@ login_closure_free (gpointer data)
494 + g_slice_free (LoginClosure, login);
495 + }
496 +
497 ++#ifdef HAVE_KERBEROS
498 + static krb5_error_code
499 + login_perform_kinit (krb5_context k5,
500 + const gchar *realm,
501 +@@ -759,12 +762,14 @@ login_perform_kinit (krb5_context k5,
502 +
503 + return code;
504 + }
505 ++#endif /* HAVE_KERBEROS */
506 +
507 + static void
508 + kinit_thread_func (GSimpleAsyncResult *async,
509 + GObject *object,
510 + GCancellable *cancellable)
511 + {
512 ++#ifdef HAVE_KERBEROS
513 + LoginClosure *login = g_simple_async_result_get_op_res_gpointer (async);
514 + krb5_context k5 = NULL;
515 + krb5_error_code code;
516 +@@ -842,6 +847,10 @@ kinit_thread_func (GSimpleAsyncResult *async,
517 +
518 + if (k5)
519 + krb5_free_context (k5);
520 ++#else /* HAVE_KERBEROS */
521 ++ g_simple_async_result_set_error (async, UM_REALM_ERROR, UM_REALM_ERROR_GENERIC,
522 ++ _("gnome-control-center was built without kerberos support"));
523 ++#endif
524 + }
525 +
526 + void
527 +diff --git a/shell/Makefile.am b/shell/Makefile.am
528 +index c0cb91a..0b820fd 100644
529 +--- a/shell/Makefile.am
530 ++++ b/shell/Makefile.am
531 +@@ -55,14 +55,12 @@ gnome_control_center_LDADD = \
532 + $(top_builddir)/libgd/libgd.la \
533 + $(top_builddir)/panels/common/liblanguage.la \
534 + $(top_builddir)/panels/background/libbackground.la \
535 +- $(top_builddir)/panels/color/libcolor.la \
536 + $(top_builddir)/panels/datetime/libdate_time.la \
537 + $(top_builddir)/panels/display/libdisplay.la \
538 + $(top_builddir)/panels/info/libinfo.la \
539 + $(top_builddir)/panels/keyboard/libkeyboard.la \
540 + $(top_builddir)/panels/mouse/libmouse-properties.la \
541 + $(top_builddir)/panels/notifications/libnotifications.la \
542 +- $(top_builddir)/panels/online-accounts/libonline-accounts.la \
543 + $(top_builddir)/panels/power/libpower.la \
544 + $(top_builddir)/panels/privacy/libprivacy.la \
545 + $(top_builddir)/panels/region/libregion.la \
546 +@@ -88,6 +86,14 @@ if BUILD_BLUETOOTH
547 + gnome_control_center_LDADD += $(top_builddir)/panels/bluetooth/libbluetooth.la
548 + endif
549 +
550 ++if BUILD_COLOR
551 ++gnome_control_center_LDADD += $(top_builddir)/panels/color/libcolor.la
552 ++endif
553 ++
554 ++if BUILD_ONLINE_ACCOUNTS
555 ++gnome_control_center_LDADD += $(top_builddir)/panels/online-accounts/libonline-accounts.la
556 ++endif
557 ++
558 + # Dbus service file
559 + servicefiledir = $(datadir)/dbus-1/services
560 + servicefile_in_files = org.gnome.ControlCenter.service.in
561 +diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
562 +index 26576dc..8a92f95 100644
563 +--- a/shell/cc-panel-loader.c
564 ++++ b/shell/cc-panel-loader.c
565 +@@ -33,7 +33,9 @@ extern GType cc_background_panel_get_type (void);
566 + #ifdef BUILD_BLUETOOTH
567 + extern GType cc_bluetooth_panel_get_type (void);
568 + #endif /* BUILD_BLUETOOTH */
569 ++#ifdef BUILD_COLOR
570 + extern GType cc_color_panel_get_type (void);
571 ++#endif /* BUILD_COLOR */
572 + extern GType cc_date_time_panel_get_type (void);
573 + extern GType cc_display_panel_get_type (void);
574 + extern GType cc_info_panel_get_type (void);
575 +@@ -43,7 +45,9 @@ extern GType cc_mouse_panel_get_type (void);
576 + extern GType cc_network_panel_get_type (void);
577 + #endif /* BUILD_NETWORK */
578 + extern GType cc_notifications_panel_get_type (void);
579 ++#ifdef BUILD_ONLINE_ACCOUNTS
580 + extern GType cc_goa_panel_get_type (void);
581 ++#endif /* BUILD_ONLINE_ACCOUNTS */
582 + extern GType cc_power_panel_get_type (void);
583 + #ifdef BUILD_PRINTERS
584 + extern GType cc_printers_panel_get_type (void);
585 +@@ -77,7 +81,9 @@ static struct {
586 + #ifdef BUILD_BLUETOOTH
587 + PANEL_TYPE("bluetooth", cc_bluetooth_panel_get_type ),
588 + #endif
589 ++#ifdef BUILD_COLOR
590 + PANEL_TYPE("color", cc_color_panel_get_type ),
591 ++#endif
592 + PANEL_TYPE("datetime", cc_date_time_panel_get_type ),
593 + PANEL_TYPE("display", cc_display_panel_get_type ),
594 + PANEL_TYPE("info", cc_info_panel_get_type ),
595 +@@ -87,7 +93,9 @@ static struct {
596 + PANEL_TYPE("network", cc_network_panel_get_type ),
597 + #endif
598 + PANEL_TYPE("notifications", cc_notifications_panel_get_type),
599 ++#ifdef BUILD_ONLINE_ACCOUNTS
600 + PANEL_TYPE("online-accounts", cc_goa_panel_get_type ),
601 ++#endif
602 + PANEL_TYPE("power", cc_power_panel_get_type ),
603 + #ifdef BUILD_PRINTERS
604 + PANEL_TYPE("printers", cc_printers_panel_get_type ),
605 +--
606 +2.1.2
607 +
608
609 diff --git a/gnome-base/gnome-control-center/gnome-control-center-9999.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.18.0.ebuild
610 similarity index 88%
611 copy from gnome-base/gnome-control-center/gnome-control-center-9999.ebuild
612 copy to gnome-base/gnome-control-center/gnome-control-center-3.18.0.ebuild
613 index eba7108..dcb89d9 100644
614 --- a/gnome-base/gnome-control-center/gnome-control-center-9999.ebuild
615 +++ b/gnome-base/gnome-control-center/gnome-control-center-3.18.0.ebuild
616 @@ -4,12 +4,9 @@
617
618 EAPI="5"
619 GCONF_DEBUG="yes"
620 -GNOME2_LA_PUNT="yes" # gmodule is used, which uses dlopen
621 +GNOME2_LA_PUNT="yes"
622
623 inherit autotools bash-completion-r1 eutils gnome2
624 -if [[ ${PV} = 9999 ]]; then
625 - inherit gnome2-live
626 -fi
627
628 DESCRIPTION="GNOME's main interface to configure various aspects of the desktop"
629 HOMEPAGE="https://git.gnome.org/browse/gnome-control-center/"
630 @@ -17,11 +14,7 @@ HOMEPAGE="https://git.gnome.org/browse/gnome-control-center/"
631 LICENSE="GPL-2+"
632 SLOT="2"
633 IUSE="+bluetooth +colord +cups +gnome-online-accounts +i18n input_devices_wacom kerberos networkmanager v4l wayland"
634 -if [[ ${PV} = 9999 ]]; then
635 - KEYWORDS=""
636 -else
637 - KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
638 -fi
639 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
640
641 # False positives caused by nested configure scripts
642 QA_CONFIGURE_OPTIONS=".*"
643 @@ -39,7 +32,7 @@ COMMON_DEPEND="
644 >=x11-libs/gdk-pixbuf-2.23.0:2
645 >=x11-libs/gtk+-3.15:3[X,wayland?]
646 >=gnome-base/gsettings-desktop-schemas-3.15.4
647 - >=gnome-base/gnome-desktop-3.11.3:3=
648 + >=gnome-base/gnome-desktop-3.17.4:3=
649 >=gnome-base/gnome-settings-daemon-3.8.3[colord?,policykit]
650
651 >=dev-libs/libpwquality-1.2.2
652 @@ -49,7 +42,7 @@ COMMON_DEPEND="
653
654 >=media-libs/libcanberra-0.13[gtk3]
655 >=media-sound/pulseaudio-2[glib]
656 - >=sys-auth/polkit-0.97
657 + >=sys-auth/polkit-0.103[introspection]
658 >=sys-power/upower-0.99:=
659 >=x11-libs/libnotify-0.7.3:0=
660
661 @@ -61,7 +54,7 @@ COMMON_DEPEND="
662 x11-libs/libXxf86misc
663 >=x11-libs/libXi-1.2
664
665 - bluetooth? ( >=net-wireless/gnome-bluetooth-3.11.1:= )
666 + bluetooth? ( >=net-wireless/gnome-bluetooth-3.18.0:= )
667 colord? (
668 net-libs/libsoup:2.4
669 >=x11-misc/colord-0.1.34:0=
670 @@ -96,7 +89,7 @@ RDEPEND="${COMMON_DEPEND}
671 x11-themes/gnome-icon-theme-symbolic
672 colord? ( >=gnome-extra/gnome-color-manager-3 )
673 cups? (
674 - >=app-admin/system-config-printer-gnome-1.3.5
675 + app-admin/system-config-printer
676 net-print/cups-pk-helper )
677 input_devices_wacom? ( gnome-base/gnome-settings-daemon[input_devices_wacom] )
678 i18n? ( >=gnome-base/libgnomekbd-3 )
679 @@ -129,9 +122,9 @@ DEPEND="${COMMON_DEPEND}
680 src_prepare() {
681 # Make some panels and dependencies optional; requires eautoreconf
682 # https://bugzilla.gnome.org/686840, 697478, 700145
683 - epatch "${FILESDIR}"/${PN}-3.14.0-optional.patch
684 + epatch "${FILESDIR}"/${PN}-3.18.0-optional.patch
685 epatch "${FILESDIR}"/${PN}-3.16.0-make-wayland-optional.patch
686 - epatch "${FILESDIR}"/${PN}-3.16.0-keep-panels-optional.patch
687 + epatch "${FILESDIR}"/${PN}-3.18.0-keep-panels-optional.patch
688 epatch "${FILESDIR}"/${PN}-3.16.0-networkmanager.patch
689
690 # Fix some absolute paths to be appropriate for Gentoo
691
692 diff --git a/gnome-base/gnome-control-center/gnome-control-center-9999.ebuild b/gnome-base/gnome-control-center/gnome-control-center-9999.ebuild
693 index eba7108..c40c0d0 100644
694 --- a/gnome-base/gnome-control-center/gnome-control-center-9999.ebuild
695 +++ b/gnome-base/gnome-control-center/gnome-control-center-9999.ebuild
696 @@ -39,7 +39,7 @@ COMMON_DEPEND="
697 >=x11-libs/gdk-pixbuf-2.23.0:2
698 >=x11-libs/gtk+-3.15:3[X,wayland?]
699 >=gnome-base/gsettings-desktop-schemas-3.15.4
700 - >=gnome-base/gnome-desktop-3.11.3:3=
701 + >=gnome-base/gnome-desktop-3.17.4:3=
702 >=gnome-base/gnome-settings-daemon-3.8.3[colord?,policykit]
703
704 >=dev-libs/libpwquality-1.2.2
705 @@ -49,7 +49,7 @@ COMMON_DEPEND="
706
707 >=media-libs/libcanberra-0.13[gtk3]
708 >=media-sound/pulseaudio-2[glib]
709 - >=sys-auth/polkit-0.97
710 + >=sys-auth/polkit-0.103[introspection]
711 >=sys-power/upower-0.99:=
712 >=x11-libs/libnotify-0.7.3:0=
713
714 @@ -61,7 +61,7 @@ COMMON_DEPEND="
715 x11-libs/libXxf86misc
716 >=x11-libs/libXi-1.2
717
718 - bluetooth? ( >=net-wireless/gnome-bluetooth-3.11.1:= )
719 + bluetooth? ( >=net-wireless/gnome-bluetooth-3.18.0:= )
720 colord? (
721 net-libs/libsoup:2.4
722 >=x11-misc/colord-0.1.34:0=
723 @@ -96,7 +96,7 @@ RDEPEND="${COMMON_DEPEND}
724 x11-themes/gnome-icon-theme-symbolic
725 colord? ( >=gnome-extra/gnome-color-manager-3 )
726 cups? (
727 - >=app-admin/system-config-printer-gnome-1.3.5
728 + app-admin/system-config-printer
729 net-print/cups-pk-helper )
730 input_devices_wacom? ( gnome-base/gnome-settings-daemon[input_devices_wacom] )
731 i18n? ( >=gnome-base/libgnomekbd-3 )
732 @@ -129,9 +129,9 @@ DEPEND="${COMMON_DEPEND}
733 src_prepare() {
734 # Make some panels and dependencies optional; requires eautoreconf
735 # https://bugzilla.gnome.org/686840, 697478, 700145
736 - epatch "${FILESDIR}"/${PN}-3.14.0-optional.patch
737 + epatch "${FILESDIR}"/${PN}-3.18.0-optional.patch
738 epatch "${FILESDIR}"/${PN}-3.16.0-make-wayland-optional.patch
739 - epatch "${FILESDIR}"/${PN}-3.16.0-keep-panels-optional.patch
740 + epatch "${FILESDIR}"/${PN}-3.18.0-keep-panels-optional.patch
741 epatch "${FILESDIR}"/${PN}-3.16.0-networkmanager.patch
742
743 # Fix some absolute paths to be appropriate for Gentoo