1 |
commit: 59d0395d06b0cbf566702184211e3c35d3fed3e2 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 28 23:46:40 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 28 23:46:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d0395d |
7 |
|
8 |
gnome-base/gnome-settings-daemon: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.28, Repoman-2.3.9 |
11 |
|
12 |
gnome-base/gnome-settings-daemon/Manifest | 1 - |
13 |
.../files/3.24.2-reduce-memory-usage.patch | 177 --------------------- |
14 |
.../files/3.24.2-remove-unneeded-gtk-init.patch | 77 --------- |
15 |
.../files/3.24.2-udevrulesdir-configure.patch | 48 ------ |
16 |
.../files/3.24.3-fix-wayland-build.patch | 53 ------ |
17 |
.../files/3.24.3-optional.patch | 169 -------------------- |
18 |
.../gnome-settings-daemon-3.24.3.ebuild | 160 ------------------- |
19 |
7 files changed, 685 deletions(-) |
20 |
|
21 |
diff --git a/gnome-base/gnome-settings-daemon/Manifest b/gnome-base/gnome-settings-daemon/Manifest |
22 |
index 3316056fff1..9bde0ee5da1 100644 |
23 |
--- a/gnome-base/gnome-settings-daemon/Manifest |
24 |
+++ b/gnome-base/gnome-settings-daemon/Manifest |
25 |
@@ -1,3 +1,2 @@ |
26 |
-DIST gnome-settings-daemon-3.24.3.tar.xz 1583044 BLAKE2B f075abe574663cb9e6092e9698efb12d598584fe004042b5ac63df7e30ba9dfdb28ac4d0fac4148fa8fd49ccb6991414dc9a3dc49400efbe2cf4752d6295d62c SHA512 2450c3bb31746fe4883f194094cf79e94207e74d39c992107244d89f36c3ea373a33a2dca4a55af138f03fb4abd8733da4bacb215e2202bbc0976b566f8529a6 |
27 |
DIST gnome-settings-daemon-3.24.4-patchset.tar.xz 5224 BLAKE2B f01db03ce3980a74324972871643e573bc51a184fe12e7a40796b7ca1bbfac37ecad1fae2f8a62fba0038a672dc4958b242316dc3dc97a59b37a2e4e4f5e9973 SHA512 fe5bf846774b126e8ed89bc8043e8c02b567cc55d602c5becd84a14c7a414fc663ae1767a552b585defb462ffe88b4838f87445c9599fda37f197e8f2eaad8cb |
28 |
DIST gnome-settings-daemon-3.24.4.tar.xz 1632700 BLAKE2B 616aad6984df726c438117ab98e8c5a35bd02a6ebbc3c24fc46b50e8b3ca3f3d5bede0588cfe9bbdfcaccc70ff5799feeabf020ec4beb03d653ae81abc6325f8 SHA512 4a3b1069d80263a92ae2c2a420f7dc70a1ff92346d5cbeb1e7dd4af0419e039ebe958550594d87929c0333c19aa9a3ef7ca9b9751109a9da64a40d81ba067cc0 |
29 |
|
30 |
diff --git a/gnome-base/gnome-settings-daemon/files/3.24.2-reduce-memory-usage.patch b/gnome-base/gnome-settings-daemon/files/3.24.2-reduce-memory-usage.patch |
31 |
deleted file mode 100644 |
32 |
index 9e683b06d3b..00000000000 |
33 |
--- a/gnome-base/gnome-settings-daemon/files/3.24.2-reduce-memory-usage.patch |
34 |
+++ /dev/null |
35 |
@@ -1,177 +0,0 @@ |
36 |
-From 386f456eda7a027dfc706ebb675602d6f067f5c6 Mon Sep 17 00:00:00 2001 |
37 |
-From: Christian Hergert <chergert@××××××.com> |
38 |
-Date: Mon, 27 Mar 2017 00:17:59 -0700 |
39 |
-Subject: [PATCH 5/5] common: avoid loading Adwaita CSS theme into memory |
40 |
- |
41 |
-The various Gtk programs are not dependent on any specific theme being |
42 |
-loaded. Therefore, the parsing the Adwaita CSS theme (which is quite a |
43 |
-detailed theme) is unnecessary and a few MB of overhead to each gsd |
44 |
-subprocess. |
45 |
- |
46 |
-By setting the GTK_THEME environment variable in main() and providing an |
47 |
-alternate CSS file (which is empty), we can force Gtk to never load the |
48 |
-default theme, but instead our empty theme. This is important as otherwise |
49 |
-GtkSettings can force-load Adwaita upon first use, and that fragments the |
50 |
-heap. |
51 |
- |
52 |
-https://bugzilla.gnome.org/show_bug.cgi?id=780555 |
53 |
---- |
54 |
- configure.ac | 1 + |
55 |
- plugins/common/Makefile.am | 10 ++++++++++ |
56 |
- plugins/common/Makefile.am.gresources | 34 ++++++++++++++++++++++++++++++++++ |
57 |
- plugins/common/daemon-skeleton-gtk.h | 28 ++++++++++++++++++++++++++++ |
58 |
- plugins/common/gsd.gresources.xml | 6 ++++++ |
59 |
- plugins/common/gtk.css | 0 |
60 |
- 6 files changed, 79 insertions(+) |
61 |
- create mode 100644 plugins/common/Makefile.am.gresources |
62 |
- create mode 100644 plugins/common/gsd.gresources.xml |
63 |
- create mode 100644 plugins/common/gtk.css |
64 |
- |
65 |
-diff --git a/configure.ac b/configure.ac |
66 |
-index 475821d..df86831 100644 |
67 |
---- a/configure.ac |
68 |
-+++ b/configure.ac |
69 |
-@@ -73,6 +73,7 @@ AC_SUBST([GSD_PLUGIN_LDFLAGS]) |
70 |
- |
71 |
- AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) |
72 |
- AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums]) |
73 |
-+AC_PATH_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources]) |
74 |
- |
75 |
- LT_LIB_M |
76 |
- AC_SUBST(LIBM) |
77 |
-diff --git a/plugins/common/Makefile.am b/plugins/common/Makefile.am |
78 |
-index 239c601..706be12 100644 |
79 |
---- a/plugins/common/Makefile.am |
80 |
-+++ b/plugins/common/Makefile.am |
81 |
-@@ -33,6 +33,8 @@ libcommon_la_SOURCES = \ |
82 |
- gsd-device-mapper.h \ |
83 |
- gsd-input-helper.c \ |
84 |
- gsd-input-helper.h \ |
85 |
-+ gsd-resources.c \ |
86 |
-+ gsd-resources.h \ |
87 |
- gsd-settings-migrate.c \ |
88 |
- gsd-settings-migrate.h \ |
89 |
- gsd-shell-helper.c \ |
90 |
-@@ -68,3 +70,11 @@ EXTRA_DIST = $(scripts_DATA) daemon-skeleton.h daemon-skeleton-gtk.h |
91 |
- |
92 |
- CLEANFILES = \ |
93 |
- $(GSD_COMMON_ENUM_FILES) |
94 |
-+ |
95 |
-+DISTCLEANFILES = |
96 |
-+ |
97 |
-+glib_resources_c = gsd-resources.c |
98 |
-+glib_resources_h = gsd-resources.h |
99 |
-+glib_resources_xml = gsd.gresources.xml |
100 |
-+glib_resources_namespace = gsd |
101 |
-+include Makefile.am.gresources |
102 |
-diff --git a/plugins/common/Makefile.am.gresources b/plugins/common/Makefile.am.gresources |
103 |
-new file mode 100644 |
104 |
-index 0000000..1441d0e |
105 |
---- /dev/null |
106 |
-+++ b/plugins/common/Makefile.am.gresources |
107 |
-@@ -0,0 +1,34 @@ |
108 |
-+resources_xml=$(addprefix $(srcdir)/,$(glib_resources_xml)) |
109 |
-+resources_srcdir=$(dir $(resources_xml)) |
110 |
-+ |
111 |
-+DISTCLEANFILES += $(glib_resources_h) $(glib_resources_c) |
112 |
-+BUILT_SOURCES += $(glib_resources_h) $(glib_resources_c) |
113 |
-+CLEANFILES += stamp-resources $(glib_resources_c) $(glib_resources_h) |
114 |
-+EXTRA_DIST += \ |
115 |
-+ $(glib_resources_xml) \ |
116 |
-+ $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(resources_srcdir) --generate-dependencies $(resources_xml)) \ |
117 |
-+ $(NULL) |
118 |
-+ |
119 |
-+stamp-resources: $(glib_resources_c) $(resources_xml) |
120 |
-+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) \ |
121 |
-+ --target=xgen-gr.h \ |
122 |
-+ --sourcedir=$(resources_srcdir) \ |
123 |
-+ --generate-header \ |
124 |
-+ --c-name $(glib_resources_namespace) \ |
125 |
-+ $(resources_xml) \ |
126 |
-+ && (cmp -s xgen-gr.h $(glib_resources_h) || cp -f xgen-gr.h $(glib_resources_h)) \ |
127 |
-+ && rm -f xgen-gr.h \ |
128 |
-+ && echo timestamp > $(@F) |
129 |
-+ |
130 |
-+$(glib_resources_h): stamp-resources |
131 |
-+ @true |
132 |
-+ |
133 |
-+$(glib_resources_c): $(resources_xml) $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(resources_srcdir) --generate-dependencies $(resources_xml)) |
134 |
-+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) \ |
135 |
-+ --target=xgen-gr.c \ |
136 |
-+ --sourcedir=$(resources_srcdir) \ |
137 |
-+ --generate-source \ |
138 |
-+ --c-name $(glib_resources_namespace) \ |
139 |
-+ $(resources_xml) \ |
140 |
-+ && (cmp -s xgen-gr.c $(glib_resources_c) || cp -f xgen-gr.c $(glib_resources_c)) \ |
141 |
-+ && rm -f xgen-gr.c |
142 |
-diff --git a/plugins/common/daemon-skeleton-gtk.h b/plugins/common/daemon-skeleton-gtk.h |
143 |
-index 3bfd618..3ba0422 100644 |
144 |
---- a/plugins/common/daemon-skeleton-gtk.h |
145 |
-+++ b/plugins/common/daemon-skeleton-gtk.h |
146 |
-@@ -163,6 +163,30 @@ register_with_gnome_session (void) |
147 |
- NULL); |
148 |
- } |
149 |
- |
150 |
-+static void |
151 |
-+set_empty_gtk_theme (gboolean set) |
152 |
-+{ |
153 |
-+ static char *old_gtk_theme = NULL; |
154 |
-+ |
155 |
-+ if (set) { |
156 |
-+ /* Override GTK_THEME to reduce overhead of CSS engine. By using |
157 |
-+ * GTK_THEME environment variable, GtkSettings is not allowed to |
158 |
-+ * initially parse the Adwaita theme. |
159 |
-+ * |
160 |
-+ * https://bugzilla.gnome.org/show_bug.cgi?id=780555 */ |
161 |
-+ old_gtk_theme = g_strdup (g_getenv ("GTK_THEME")); |
162 |
-+ g_setenv ("GTK_THEME", "Disabled", TRUE); |
163 |
-+ } else { |
164 |
-+ /* GtkSettings has loaded, so we can drop GTK_THEME used to initialize |
165 |
-+ * our internal theme. Only the main thread accesses the GTK_THEME |
166 |
-+ * environment variable, so this is safe to release. */ |
167 |
-+ if (old_gtk_theme != NULL) |
168 |
-+ g_setenv ("GTK_THEME", old_gtk_theme, TRUE); |
169 |
-+ else |
170 |
-+ g_unsetenv ("GTK_THEME"); |
171 |
-+ } |
172 |
-+} |
173 |
-+ |
174 |
- int |
175 |
- main (int argc, char **argv) |
176 |
- { |
177 |
-@@ -172,6 +196,8 @@ main (int argc, char **argv) |
178 |
- bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); |
179 |
- textdomain (GETTEXT_PACKAGE); |
180 |
- |
181 |
-+ set_empty_gtk_theme (TRUE); |
182 |
-+ |
183 |
- /* Work around https://bugzilla.gnome.org/show_bug.cgi?id=674885 */ |
184 |
- g_type_ensure (G_TYPE_DBUS_CONNECTION); |
185 |
- g_type_ensure (G_TYPE_DBUS_PROXY); |
186 |
-@@ -187,6 +213,8 @@ main (int argc, char **argv) |
187 |
- exit (1); |
188 |
- } |
189 |
- |
190 |
-+ set_empty_gtk_theme (FALSE); |
191 |
-+ |
192 |
- if (verbose) |
193 |
- g_setenv ("G_MESSAGES_DEBUG", "all", TRUE); |
194 |
- |
195 |
-diff --git a/plugins/common/gsd.gresources.xml b/plugins/common/gsd.gresources.xml |
196 |
-new file mode 100644 |
197 |
-index 0000000..e4ac1cd |
198 |
---- /dev/null |
199 |
-+++ b/plugins/common/gsd.gresources.xml |
200 |
-@@ -0,0 +1,6 @@ |
201 |
-+<?xml version="1.0" encoding="UTF-8"?> |
202 |
-+<gresources> |
203 |
-+ <gresource prefix="/org/gtk/libgtk/theme/Disabled"> |
204 |
-+ <file>gtk.css</file> |
205 |
-+ </gresource> |
206 |
-+</gresources> |
207 |
-diff --git a/plugins/common/gtk.css b/plugins/common/gtk.css |
208 |
-new file mode 100644 |
209 |
-index 0000000..e69de29 |
210 |
--- |
211 |
-2.10.2 |
212 |
- |
213 |
|
214 |
diff --git a/gnome-base/gnome-settings-daemon/files/3.24.2-remove-unneeded-gtk-init.patch b/gnome-base/gnome-settings-daemon/files/3.24.2-remove-unneeded-gtk-init.patch |
215 |
deleted file mode 100644 |
216 |
index e47ba34c60d..00000000000 |
217 |
--- a/gnome-base/gnome-settings-daemon/files/3.24.2-remove-unneeded-gtk-init.patch |
218 |
+++ /dev/null |
219 |
@@ -1,77 +0,0 @@ |
220 |
-From b567ec92d5b3004ad52fa02fb02990fcafb63373 Mon Sep 17 00:00:00 2001 |
221 |
-From: Bastien Nocera <hadess@××××××.net> |
222 |
-Date: Mon, 27 Mar 2017 18:47:54 +0200 |
223 |
-Subject: [PATCH 1/3] housekeeping: Don't init GTK+ |
224 |
- |
225 |
-We don't use it. |
226 |
- |
227 |
-https://bugzilla.gnome.org/show_bug.cgi?id=780555 |
228 |
---- |
229 |
- plugins/housekeeping/main.c | 2 +- |
230 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
231 |
- |
232 |
-diff --git a/plugins/housekeeping/main.c b/plugins/housekeeping/main.c |
233 |
-index 5ccd83d..89c12f7 100644 |
234 |
---- a/plugins/housekeeping/main.c |
235 |
-+++ b/plugins/housekeeping/main.c |
236 |
-@@ -4,4 +4,4 @@ |
237 |
- #define MANAGER GsdHousekeepingManager |
238 |
- #include "gsd-housekeeping-manager.h" |
239 |
- |
240 |
--#include "daemon-skeleton-gtk.h" |
241 |
-+#include "daemon-skeleton.h" |
242 |
--- |
243 |
-2.10.2 |
244 |
- |
245 |
- |
246 |
-From 92d45cd2ce2c4f252db21993f30777433ed84623 Mon Sep 17 00:00:00 2001 |
247 |
-From: Bastien Nocera <hadess@××××××.net> |
248 |
-Date: Mon, 27 Mar 2017 18:49:35 +0200 |
249 |
-Subject: [PATCH 2/3] print-notifications: Don't init GTK+ |
250 |
- |
251 |
-We don't use it. |
252 |
- |
253 |
-https://bugzilla.gnome.org/show_bug.cgi?id=780555 |
254 |
---- |
255 |
- plugins/print-notifications/main.c | 2 +- |
256 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
257 |
- |
258 |
-diff --git a/plugins/print-notifications/main.c b/plugins/print-notifications/main.c |
259 |
-index 57155d0..a0dd406 100644 |
260 |
---- a/plugins/print-notifications/main.c |
261 |
-+++ b/plugins/print-notifications/main.c |
262 |
-@@ -4,4 +4,4 @@ |
263 |
- #define MANAGER GsdPrintNotificationsManager |
264 |
- #include "gsd-print-notifications-manager.h" |
265 |
- |
266 |
--#include "daemon-skeleton-gtk.h" |
267 |
-+#include "daemon-skeleton.h" |
268 |
--- |
269 |
-2.10.2 |
270 |
- |
271 |
- |
272 |
-From e7e4b2145efebf132f1398da77790849becd7f6b Mon Sep 17 00:00:00 2001 |
273 |
-From: Bastien Nocera <hadess@××××××.net> |
274 |
-Date: Mon, 27 Mar 2017 18:50:01 +0200 |
275 |
-Subject: [PATCH 3/3] wacom: Don't init GTK+ |
276 |
- |
277 |
-We don't use it. |
278 |
- |
279 |
-https://bugzilla.gnome.org/show_bug.cgi?id=780555 |
280 |
---- |
281 |
- plugins/wacom/main.c | 2 +- |
282 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
283 |
- |
284 |
-diff --git a/plugins/wacom/main.c b/plugins/wacom/main.c |
285 |
-index a19a71b..ad1367c 100644 |
286 |
---- a/plugins/wacom/main.c |
287 |
-+++ b/plugins/wacom/main.c |
288 |
-@@ -4,4 +4,4 @@ |
289 |
- #define MANAGER GsdWacomManager |
290 |
- #include "gsd-wacom-manager.h" |
291 |
- |
292 |
--#include "daemon-skeleton-gtk.h" |
293 |
-+#include "daemon-skeleton.h" |
294 |
--- |
295 |
-2.10.2 |
296 |
- |
297 |
|
298 |
diff --git a/gnome-base/gnome-settings-daemon/files/3.24.2-udevrulesdir-configure.patch b/gnome-base/gnome-settings-daemon/files/3.24.2-udevrulesdir-configure.patch |
299 |
deleted file mode 100644 |
300 |
index 16988f945d2..00000000000 |
301 |
--- a/gnome-base/gnome-settings-daemon/files/3.24.2-udevrulesdir-configure.patch |
302 |
+++ /dev/null |
303 |
@@ -1,48 +0,0 @@ |
304 |
-From 04d399edc26bfa44d6053aba929e0776a193cea8 Mon Sep 17 00:00:00 2001 |
305 |
-From: Mart Raudsepp <leio@g.o> |
306 |
-Date: Mon, 29 May 2017 00:38:57 +0300 |
307 |
-Subject: [PATCH 1/5] build: Get udevrulesdir from pkg-config |
308 |
- |
309 |
-Use the standard way to find the udev rules directory via pkg-config by default, |
310 |
-and support specifying it, should it be necessary. |
311 |
-This is the same logic as in colord. |
312 |
---- |
313 |
- configure.ac | 9 +++++++++ |
314 |
- plugins/rfkill/Makefile.am | 1 - |
315 |
- 2 files changed, 9 insertions(+), 1 deletion(-) |
316 |
- |
317 |
-diff --git a/configure.ac b/configure.ac |
318 |
-index 1107578..475821d 100644 |
319 |
---- a/configure.ac |
320 |
-+++ b/configure.ac |
321 |
-@@ -104,6 +104,15 @@ fi |
322 |
- AM_CONDITIONAL(HAVE_GUDEV, test x$have_gudev = xyes) |
323 |
- |
324 |
- dnl --------------------------------------------------------------------------- |
325 |
-+dnl - Where to install udev rules |
326 |
-+dnl --------------------------------------------------------------------------- |
327 |
-+AC_ARG_WITH([udevrulesdir], |
328 |
-+ AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules files]), |
329 |
-+ [], |
330 |
-+ [with_udevrulesdir=$($PKG_CONFIG --variable=udevdir udev)/rules.d]) |
331 |
-+AC_SUBST([udevrulesdir], [$with_udevrulesdir]) |
332 |
-+ |
333 |
-+dnl --------------------------------------------------------------------------- |
334 |
- dnl - ALSA integration (default enabled) |
335 |
- dnl --------------------------------------------------------------------------- |
336 |
- ALSA_PKG="" |
337 |
-diff --git a/plugins/rfkill/Makefile.am b/plugins/rfkill/Makefile.am |
338 |
-index 3c5ec47..bfc34c6 100644 |
339 |
---- a/plugins/rfkill/Makefile.am |
340 |
-+++ b/plugins/rfkill/Makefile.am |
341 |
-@@ -30,7 +30,6 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) |
342 |
- org.gnome.SettingsDaemon.Rfkill.desktop: $(desktop_in_files) Makefile |
343 |
- $(AM_V_GEN) sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ |
344 |
- |
345 |
--udevrulesdir = $(prefix)/lib/udev/rules.d |
346 |
- udevrules_DATA = 61-gnome-settings-daemon-rfkill.rules |
347 |
- |
348 |
- EXTRA_DIST = $(udevrules_DATA) $(desktop_in_files) |
349 |
--- |
350 |
-2.10.2 |
351 |
- |
352 |
|
353 |
diff --git a/gnome-base/gnome-settings-daemon/files/3.24.3-fix-wayland-build.patch b/gnome-base/gnome-settings-daemon/files/3.24.3-fix-wayland-build.patch |
354 |
deleted file mode 100644 |
355 |
index 4a06889aaa2..00000000000 |
356 |
--- a/gnome-base/gnome-settings-daemon/files/3.24.3-fix-wayland-build.patch |
357 |
+++ /dev/null |
358 |
@@ -1,53 +0,0 @@ |
359 |
-From 58403ad7677d98fbb14b020dc4d15c52a695496e Mon Sep 17 00:00:00 2001 |
360 |
-From: Gilles Dartiguelongue <eva@g.o> |
361 |
-Date: Fri, 18 Aug 2017 09:42:56 +0200 |
362 |
-Subject: [PATCH] Fix build issue when gudev is detected in the absence of |
363 |
- wayland |
364 |
- |
365 |
-See https://bugs.gentoo.org/show_bug.cgi?id=627966 |
366 |
---- |
367 |
- configure.ac | 5 +++++ |
368 |
- plugins/common/Makefile.am | 2 +- |
369 |
- 2 files changed, 6 insertions(+), 1 deletion(-) |
370 |
- |
371 |
-diff --git a/configure.ac b/configure.ac |
372 |
-index 908b3a3a..c89d5e2d 100644 |
373 |
---- a/configure.ac |
374 |
-+++ b/configure.ac |
375 |
-@@ -140,15 +140,20 @@ AC_ARG_ENABLE(wayland, |
376 |
- AS_HELP_STRING([--disable-wayland],[Disable wayland support (default: auto)]), |
377 |
- enable_wayland=$enableval, enable_wayland=auto) |
378 |
- if test x$enable_wayland != xno; then |
379 |
-+ AS_IF([test "$have_udev" = no], |
380 |
-+ [AC_MSG_ERROR([udev is required for Wayland support])]) |
381 |
-+ |
382 |
- PKG_CHECK_MODULES(WAYLAND, wayland-client, have_wayland=yes, have_wayland=no) |
383 |
- if test x$have_wayland = xyes; then |
384 |
- AC_DEFINE(HAVE_WAYLAND, 1, [Define if libwayland-client is available]) |
385 |
-+ GUDEV_PKG="$GUDEV_PKG gdk-wayland-3.0" |
386 |
- else |
387 |
- if test x$enable_wayland = xyes; then |
388 |
- AC_MSG_ERROR([Wayland enabled but not found]) |
389 |
- fi |
390 |
- fi |
391 |
- fi |
392 |
-+AM_CONDITIONAL(HAVE_WAYLAND, test x$have_wayland = xyes) |
393 |
- |
394 |
- dnl ================================================================ |
395 |
- dnl Plugins |
396 |
-diff --git a/plugins/common/Makefile.am b/plugins/common/Makefile.am |
397 |
-index 107e4d3b..760f3198 100644 |
398 |
---- a/plugins/common/Makefile.am |
399 |
-+++ b/plugins/common/Makefile.am |
400 |
-@@ -40,7 +40,7 @@ libcommon_la_SOURCES = \ |
401 |
- gsd-shell-helper.c \ |
402 |
- gsd-shell-helper.h |
403 |
- |
404 |
--if HAVE_GUDEV |
405 |
-+if HAVE_WAYLAND |
406 |
- libcommon_la_SOURCES += \ |
407 |
- gsd-device-manager-udev.c \ |
408 |
- gsd-device-manager-udev.h |
409 |
--- |
410 |
-2.14.1 |
411 |
- |
412 |
|
413 |
diff --git a/gnome-base/gnome-settings-daemon/files/3.24.3-optional.patch b/gnome-base/gnome-settings-daemon/files/3.24.3-optional.patch |
414 |
deleted file mode 100644 |
415 |
index 608784c43bb..00000000000 |
416 |
--- a/gnome-base/gnome-settings-daemon/files/3.24.3-optional.patch |
417 |
+++ /dev/null |
418 |
@@ -1,169 +0,0 @@ |
419 |
-From 9116667b39f7a3ef622b0fd4e09ffa77718fa5c2 Mon Sep 17 00:00:00 2001 |
420 |
-From: Ole Reifschneider <mail@×××××××××××××××××.de> |
421 |
-Date: Tue, 15 Aug 2017 18:51:42 +0200 |
422 |
-Subject: [PATCH 1/6] Make colord and wacom support optional |
423 |
- |
424 |
-Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
425 |
-Signed-off-by: Timo Tambet <ttambet@×××××.com> |
426 |
-Signed-off-by: Yuh-Horng Chen <yhchens@×××××.com> |
427 |
---- |
428 |
- configure.ac | 54 ++++++++++++++++++++++++++++++---------------- |
429 |
- plugins/Makefile.am | 9 ++++++-- |
430 |
- plugins/common/Makefile.am | 7 ++++-- |
431 |
- plugins/dummy/Makefile.am | 5 ++++- |
432 |
- 4 files changed, 52 insertions(+), 23 deletions(-) |
433 |
- |
434 |
-diff --git a/configure.ac b/configure.ac |
435 |
-index 73fe91e6..d8778c93 100644 |
436 |
---- a/configure.ac |
437 |
-+++ b/configure.ac |
438 |
-@@ -158,13 +158,23 @@ PKG_CHECK_MODULES(CLIPBOARD, |
439 |
- gtk+-x11-3.0 |
440 |
- x11) |
441 |
- |
442 |
--PKG_CHECK_MODULES(COLOR, |
443 |
-- colord >= 1.0.2 |
444 |
-- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
445 |
-- libcanberra-gtk3 |
446 |
-- libgeoclue-2.0 >= $GEOCLUE_REQUIRED_VERSION |
447 |
-- lcms2 >= $LCMS_REQUIRED_VERSION |
448 |
-- libnotify) |
449 |
-+AC_ARG_ENABLE([color], |
450 |
-+ AS_HELP_STRING([--disable-color], |
451 |
-+ [turn off color plugin]), |
452 |
-+ [], |
453 |
-+ [enable_color=yes]) |
454 |
-+ |
455 |
-+AS_IF([test "$enable_color" = "yes"], |
456 |
-+ [PKG_CHECK_MODULES(COLOR, |
457 |
-+ colord >= 1.0.2 |
458 |
-+ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION |
459 |
-+ libcanberra-gtk3 |
460 |
-+ libgeoclue-2.0 >= $GEOCLUE_REQUIRED_VERSION |
461 |
-+ lcms2 >= $LCMS_REQUIRED_VERSION |
462 |
-+ libnotify) |
463 |
-+ AC_DEFINE(HAVE_COLOR, 1, [Define if color plugin is enabled]) |
464 |
-+ ]) |
465 |
-+AM_CONDITIONAL(BUILD_COLOR, test "x$enable_color" = "xyes") |
466 |
- |
467 |
- PKG_CHECK_MODULES(DATETIME, |
468 |
- libnotify >= $LIBNOTIFY_REQUIRED_VERSION |
469 |
-@@ -268,23 +278,31 @@ case $host_os in |
470 |
- if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then |
471 |
- have_wacom=no |
472 |
- else |
473 |
-- if test x$enable_gudev != xno; then |
474 |
-- LIBWACOM_PKG="libwacom >= $LIBWACOM_REQUIRED_VERSION" |
475 |
-- PKG_CHECK_MODULES(LIBWACOM, [libwacom >= $LIBWACOM_REQUIRED_VERSION]) |
476 |
-- PKG_CHECK_MODULES(WACOM, [gtk+-3.0 pango >= $PANGO_REQUIRED_VERSION]) |
477 |
-- PKG_CHECK_MODULES(WACOM_OLED, [gudev-1.0]) |
478 |
-- else |
479 |
-- AC_MSG_ERROR([GUdev is necessary to compile Wacom support]) |
480 |
-- fi |
481 |
-- AC_DEFINE_UNQUOTED(HAVE_WACOM, 1, [Define to 1 if wacom support is available]) |
482 |
-- have_wacom=yes |
483 |
-+ have_wacom=no |
484 |
-+ AS_IF([test "$enable_gudev" != "no"], |
485 |
-+ [AC_ARG_ENABLE([wacom], |
486 |
-+ AS_HELP_STRING([--disable-wacom], |
487 |
-+ [turn off wacom plugin]), |
488 |
-+ [], |
489 |
-+ [enable_wacom=no]) dnl Default value |
490 |
-+ AS_IF([test "$enable_wacom" = "yes"], |
491 |
-+ [ |
492 |
-+ PKG_CHECK_MODULES(LIBWACOM, [libwacom >= $LIBWACOM_REQUIRED_VERSION]) |
493 |
-+ PKG_CHECK_MODULES(WACOM, [gtk+-3.0 pango >= $PANGO_REQUIRED_VERSION]) |
494 |
-+ PKG_CHECK_MODULES(WACOM_OLED, [gudev-1.0]) |
495 |
-+ have_wacom=yes |
496 |
-+ AC_DEFINE_UNQUOTED(HAVE_WACOM, 1, [Define to 1 if wacom support is available]) |
497 |
-+ ]) |
498 |
-+ ], [ |
499 |
-+ AC_MSG_ERROR([GUdev is necessary to compile Wacom support]) |
500 |
-+ ]) |
501 |
- fi |
502 |
- ;; |
503 |
- *) |
504 |
- have_wacom=no |
505 |
- ;; |
506 |
- esac |
507 |
--AM_CONDITIONAL(HAVE_WACOM, test x$have_wacom = xyes) |
508 |
-+AM_CONDITIONAL(BUILD_WACOM, test x$have_wacom = xyes) |
509 |
- |
510 |
- dnl --------------------------------------------------------------------------- |
511 |
- dnl - common |
512 |
-diff --git a/plugins/Makefile.am b/plugins/Makefile.am |
513 |
-index 9324b406..ee78d6d0 100644 |
514 |
---- a/plugins/Makefile.am |
515 |
-+++ b/plugins/Makefile.am |
516 |
-@@ -4,7 +4,6 @@ enabled_plugins = \ |
517 |
- a11y-keyboard \ |
518 |
- a11y-settings \ |
519 |
- clipboard \ |
520 |
-- color \ |
521 |
- datetime \ |
522 |
- dummy \ |
523 |
- power \ |
524 |
-@@ -22,13 +21,19 @@ enabled_plugins = \ |
525 |
- |
526 |
- disabled_plugins = $(NULL) |
527 |
- |
528 |
-+if BUILD_COLOR |
529 |
-+enabled_plugins += color |
530 |
-+else |
531 |
-+disabled_plugins += color |
532 |
-+endif |
533 |
-+ |
534 |
- if SMARTCARD_SUPPORT |
535 |
- enabled_plugins += smartcard |
536 |
- else |
537 |
- disabled_plugins += smartcard |
538 |
- endif |
539 |
- |
540 |
--if HAVE_WACOM |
541 |
-+if BUILD_WACOM |
542 |
- enabled_plugins += wacom |
543 |
- else |
544 |
- disabled_plugins += wacom |
545 |
-diff --git a/plugins/common/Makefile.am b/plugins/common/Makefile.am |
546 |
-index 239c6015..65de4007 100644 |
547 |
---- a/plugins/common/Makefile.am |
548 |
-+++ b/plugins/common/Makefile.am |
549 |
-@@ -49,14 +49,17 @@ libcommon_la_CPPFLAGS = \ |
550 |
- -I$(top_builddir)/gnome-settings-daemon \ |
551 |
- -I$(top_srcdir)/data/ |
552 |
- |
553 |
--libcommon_la_CFLAGS = $(COMMON_CFLAGS) |
554 |
-+libcommon_la_CFLAGS = \ |
555 |
-+ $(COMMON_CFLAGS) \ |
556 |
-+ $(LIBWACOM_CFLAGS) |
557 |
- |
558 |
- libcommon_la_LDFLAGS = \ |
559 |
- $(GSD_PLUGIN_LDFLAGS) |
560 |
- |
561 |
- libcommon_la_LIBADD = \ |
562 |
- $(top_builddir)/gnome-settings-daemon/libgsd.la \ |
563 |
-- $(COMMON_LIBS) |
564 |
-+ $(COMMON_LIBS) \ |
565 |
-+ $(LIBWACOM_LIBS) |
566 |
- |
567 |
- libexec_PROGRAMS = gsd-test-input-helper |
568 |
- |
569 |
-diff --git a/plugins/dummy/Makefile.am b/plugins/dummy/Makefile.am |
570 |
-index cb5856cf..d8e8bc4e 100644 |
571 |
---- a/plugins/dummy/Makefile.am |
572 |
-+++ b/plugins/dummy/Makefile.am |
573 |
-@@ -25,7 +25,10 @@ desktop_DATA = |
574 |
- if !SMARTCARD_SUPPORT |
575 |
- desktop_DATA += org.gnome.SettingsDaemon.Smartcard.desktop |
576 |
- endif |
577 |
--if !HAVE_WACOM |
578 |
-+if !BUILD_COLOR |
579 |
-+desktop_DATA += org.gnome.SettingsDaemon.Color.desktop |
580 |
-+endif |
581 |
-+if !BUILD_WACOM |
582 |
- desktop_DATA += org.gnome.SettingsDaemon.Wacom.desktop |
583 |
- endif |
584 |
- if !BUILD_PRINT_NOTIFICATIONS |
585 |
--- |
586 |
-2.14.1 |
587 |
- |
588 |
|
589 |
diff --git a/gnome-base/gnome-settings-daemon/gnome-settings-daemon-3.24.3.ebuild b/gnome-base/gnome-settings-daemon/gnome-settings-daemon-3.24.3.ebuild |
590 |
deleted file mode 100644 |
591 |
index f8ecb153f4d..00000000000 |
592 |
--- a/gnome-base/gnome-settings-daemon/gnome-settings-daemon-3.24.3.ebuild |
593 |
+++ /dev/null |
594 |
@@ -1,160 +0,0 @@ |
595 |
-# Copyright 1999-2018 Gentoo Foundation |
596 |
-# Distributed under the terms of the GNU General Public License v2 |
597 |
- |
598 |
-EAPI=6 |
599 |
-GNOME2_EAUTORECONF="yes" |
600 |
-GNOME2_LA_PUNT="yes" |
601 |
-#PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) # https://bugzilla.gnome.org/show_bug.cgi?id=783186 |
602 |
-PYTHON_COMPAT=( python2_7 ) |
603 |
- |
604 |
-inherit gnome2 python-any-r1 systemd udev virtualx |
605 |
- |
606 |
-DESCRIPTION="Gnome Settings Daemon" |
607 |
-HOMEPAGE="https://git.gnome.org/browse/gnome-settings-daemon" |
608 |
- |
609 |
-LICENSE="GPL-2+" |
610 |
-SLOT="0" |
611 |
-IUSE="+colord +cups debug input_devices_wacom -openrc-force networkmanager policykit smartcard test +udev wayland" |
612 |
-REQUIRED_USE=" |
613 |
- input_devices_wacom? ( udev ) |
614 |
- smartcard? ( udev ) |
615 |
- wayland? ( udev ) |
616 |
-" |
617 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris" |
618 |
- |
619 |
-COMMON_DEPEND=" |
620 |
- >=dev-libs/glib-2.44.0:2[dbus] |
621 |
- >=x11-libs/gtk+-3.15.3:3[X,wayland?] |
622 |
- >=gnome-base/gnome-desktop-3.11.1:3= |
623 |
- >=gnome-base/gsettings-desktop-schemas-3.23.3 |
624 |
- >=gnome-base/librsvg-2.36.2:2 |
625 |
- media-fonts/cantarell |
626 |
- media-libs/alsa-lib |
627 |
- media-libs/fontconfig |
628 |
- media-libs/libcanberra[gtk3] |
629 |
- >=media-sound/pulseaudio-2 |
630 |
- >=sys-power/upower-0.99:= |
631 |
- x11-libs/cairo |
632 |
- x11-libs/gdk-pixbuf:2 |
633 |
- >=x11-libs/libnotify-0.7.3:= |
634 |
- x11-libs/libX11 |
635 |
- x11-libs/libxkbfile |
636 |
- x11-libs/libXi |
637 |
- x11-libs/libXext |
638 |
- x11-libs/libXfixes |
639 |
- x11-libs/libXtst |
640 |
- x11-libs/libXxf86misc |
641 |
- x11-misc/xkeyboard-config |
642 |
- |
643 |
- >=app-misc/geoclue-2.3.1:2.0 |
644 |
- >=dev-libs/libgweather-3.9.5:2= |
645 |
- >=sci-geosciences/geocode-glib-3.10 |
646 |
- >=sys-auth/polkit-0.103 |
647 |
- |
648 |
- colord? ( |
649 |
- >=media-libs/lcms-2.2:2 |
650 |
- >=x11-misc/colord-1.0.2:= ) |
651 |
- cups? ( >=net-print/cups-1.4[dbus] ) |
652 |
- input_devices_wacom? ( |
653 |
- >=dev-libs/libwacom-0.7 |
654 |
- >=x11-libs/pango-1.20 |
655 |
- x11-drivers/xf86-input-wacom |
656 |
- virtual/libgudev:= ) |
657 |
- networkmanager? ( >=net-misc/networkmanager-1.0 ) |
658 |
- smartcard? ( >=dev-libs/nss-3.11.2 ) |
659 |
- udev? ( virtual/libgudev:= ) |
660 |
- wayland? ( dev-libs/wayland ) |
661 |
-" |
662 |
-# Themes needed by g-s-d, gnome-shell, gtk+:3 apps to work properly |
663 |
-# <gnome-color-manager-3.1.1 has file collisions with g-s-d-3.1.x |
664 |
-# <gnome-power-manager-3.1.3 has file collisions with g-s-d-3.1.x |
665 |
-# systemd needed for power and session management, bug #464944 |
666 |
-RDEPEND="${COMMON_DEPEND} |
667 |
- gnome-base/dconf |
668 |
- !openrc-force? ( sys-apps/systemd ) |
669 |
- !<gnome-base/gnome-control-center-2.22 |
670 |
- !<gnome-extra/gnome-color-manager-3.1.1 |
671 |
- !<gnome-extra/gnome-power-manager-3.1.3 |
672 |
- !<gnome-base/gnome-session-3.23.2 |
673 |
-" |
674 |
-# xproto-7.0.15 needed for power plugin |
675 |
-DEPEND="${COMMON_DEPEND} |
676 |
- cups? ( sys-apps/sed ) |
677 |
- test? ( |
678 |
- ${PYTHON_DEPS} |
679 |
- $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]') |
680 |
- $(python_gen_any_dep 'dev-python/dbusmock[${PYTHON_USEDEP}]') |
681 |
- gnome-base/gnome-session ) |
682 |
- dev-libs/libxml2:2 |
683 |
- sys-devel/gettext |
684 |
- >=dev-util/intltool-0.40 |
685 |
- virtual/pkgconfig |
686 |
- x11-proto/inputproto |
687 |
- x11-proto/xf86miscproto |
688 |
- x11-proto/kbproto |
689 |
- >=x11-proto/xproto-7.0.15 |
690 |
-" |
691 |
- |
692 |
-# TypeErrors with python3; weird test errors with python2; all in power component that was made required now |
693 |
-RESTRICT="!test? ( test )" |
694 |
- |
695 |
-PATCHES=( |
696 |
- # Make colord and wacom optional; requires eautoreconf |
697 |
- "${FILESDIR}"/${PV}-optional.patch |
698 |
- # Allow specifying udevrulesdir via configure, bug 509484; requires eautoreconf |
699 |
- "${FILESDIR}"/3.24.2-udevrulesdir-configure.patch |
700 |
- # Reduce memory usage by not initing GTK+ where not needed |
701 |
- "${FILESDIR}"/3.24.2-remove-unneeded-gtk-init.patch |
702 |
- # Reduce memory usage by using a fake CSS theme instead of full Adwaita for GTK+ needing plugins; requires eautoreconf |
703 |
- "${FILESDIR}"/3.24.2-reduce-memory-usage.patch |
704 |
- # Fix build issue when gudev is present but not wayland, bug #627966 |
705 |
- "${FILESDIR}"/3.24.3-fix-wayland-build.patch |
706 |
-) |
707 |
- |
708 |
-python_check_deps() { |
709 |
- if use test; then |
710 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" && |
711 |
- has_version "dev-python/dbusmock[${PYTHON_USEDEP}]" |
712 |
- fi |
713 |
-} |
714 |
- |
715 |
-pkg_setup() { |
716 |
- use test && python-any-r1_pkg_setup |
717 |
-} |
718 |
- |
719 |
-src_configure() { |
720 |
- gnome2_src_configure \ |
721 |
- --disable-static \ |
722 |
- --with-udevrulesdir="$(get_udevdir)"/rules.d \ |
723 |
- $(use_enable colord color) \ |
724 |
- $(use_enable cups) \ |
725 |
- $(use_enable debug) \ |
726 |
- $(use_enable debug more-warnings) \ |
727 |
- $(use_enable networkmanager network-manager) \ |
728 |
- $(use_enable smartcard smartcard-support) \ |
729 |
- $(use_enable udev gudev) \ |
730 |
- $(use_enable input_devices_wacom wacom) \ |
731 |
- $(use_enable wayland) |
732 |
-} |
733 |
- |
734 |
-src_test() { |
735 |
- virtx emake check |
736 |
-} |
737 |
- |
738 |
-pkg_postinst() { |
739 |
- gnome2_pkg_postinst |
740 |
- |
741 |
- if ! systemd_is_booted; then |
742 |
- ewarn "${PN} needs Systemd to be *running* for working" |
743 |
- ewarn "properly. Please follow the this guide to migrate:" |
744 |
- ewarn "https://wiki.gentoo.org/wiki/Systemd" |
745 |
- fi |
746 |
- |
747 |
- if use openrc-force; then |
748 |
- ewarn "You are enabling 'openrc-force' USE flag to skip systemd requirement," |
749 |
- ewarn "this can lead to unexpected problems and is not supported neither by" |
750 |
- ewarn "upstream neither by Gnome Gentoo maintainers. If you suffer any problem," |
751 |
- ewarn "you will need to disable this USE flag system wide and retest before" |
752 |
- ewarn "opening any bug report." |
753 |
- fi |
754 |
-} |