Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-shell/files: gnome-shell-3.6.0-networkmanager-flag.patch gnome-shell-3.5.x-bluetooth-flag.patch gnome-shell-3.4.0-libgnome-shell-js.so-link-1.patch gnome-shell-3.2.1-optional-networkmanager.patch gnome-shell-3.4.0-libgnome-shell-js.so-link-2.patch
Date: Wed, 26 Dec 2012 22:47:43
Message-Id: 20121226224732.B30292171E@flycatcher.gentoo.org
1 eva 12/12/26 22:47:32
2
3 Added: gnome-shell-3.6.0-networkmanager-flag.patch
4 gnome-shell-3.5.x-bluetooth-flag.patch
5 Removed: gnome-shell-3.4.0-libgnome-shell-js.so-link-1.patch
6 gnome-shell-3.2.1-optional-networkmanager.patch
7 gnome-shell-3.4.0-libgnome-shell-js.so-link-2.patch
8 Log:
9 Version bump for Gnome 3.6. Switch to EAPI=5 and python-r1.eclass. Clean up old revisions.
10
11 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key C6085806)
12
13 Revision Changes Path
14 1.1 gnome-base/gnome-shell/files/gnome-shell-3.6.0-networkmanager-flag.patch
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.6.0-networkmanager-flag.patch?rev=1.1&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.6.0-networkmanager-flag.patch?rev=1.1&content-type=text/plain
18
19 Index: gnome-shell-3.6.0-networkmanager-flag.patch
20 ===================================================================
21 From da0912a522f80a72db5b73504dc82941067880b2 Mon Sep 17 00:00:00 2001
22 From: Michael Biebl <biebl@××××××.org>
23 Date: Thu, 22 Dec 2011 22:04:12 +0100
24 Subject: [PATCH] Make NM optional
25
26 [ Alexandre Rostovtsev <tetromino@g.o> :
27 * use config.js (and AC_SUBST HAVE_NETWORKMANAGER appropriately);
28 * take care to not import ui.status.network if nm is disabled;
29 * do not try to reassign to const variables;
30 * no point really in fiddling with the list of installed js files;
31 * don't build shell-mobile-providers if nm is disabled;
32 * use "networkmanager" instead of "network_manager" because THE
33 BIKESHED SHOULD BE BLUE, also because the upstream package name is
34 NetworkManager, not Network_Manager. ]
35 ---
36 configure.ac | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
37 js/Makefile.am | 1 +
38 js/misc/config.js.in | 2 ++
39 js/ui/panel.js | 12 +++++++-----
40 js/ui/sessionMode.js | 7 ++++++-
41 src/Makefile.am | 17 ++++++++++++-----
42 6 files changed, 74 insertions(+), 12 deletions(-)
43
44 diff --git a/configure.ac b/configure.ac
45 index e6ac88c..3ff8777 100644
46 --- a/configure.ac
47 +++ b/configure.ac
48 @@ -96,10 +96,43 @@ PKG_CHECK_MODULES(GNOME_SHELL, gio-unix-2.0 >= $GIO_MIN_VERSION
49 telepathy-glib >= $TELEPATHY_GLIB_MIN_VERSION
50 telepathy-logger-0.2 >= $TELEPATHY_LOGGER_MIN_VERSION
51 polkit-agent-1 >= $POLKIT_MIN_VERSION xfixes
52 - libnm-glib libnm-util gnome-keyring-1
53 + gnome-keyring-1
54 gcr-3 >= $GCR_MIN_VERSION
55 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
56
57 +##########################
58 +# Check for NetworkManager
59 +##########################
60 +NM_MIN_VERSION=0.9
61 +AC_ARG_ENABLE(networkmanager,
62 + AS_HELP_STRING([--disable-networkmanager],
63 + [disable NetworkManager support @<:@default=auto@:>@]),,
64 + [enable_networkmanager=auto])
65 +
66 +if test "x$enable_networkmanager" != "xno"; then
67 + PKG_CHECK_MODULES(NETWORKMANAGER,
68 + [libnm-glib libnm-util gnome-keyring-1],
69 + [have_networkmanager=yes],
70 + [have_networkmanager=no])
71 +
72 + GNOME_SHELL_CFLAGS="$GNOME_SHELL_CFLAGS $NETWORKMANAGER_CFLAGS"
73 + GNOME_SHELL_LIBS="$GNOME_SHELL_LIBS $NETWORKMANAGER_LIBS"
74 +else
75 + have_networkmanager="no (disabled)"
76 +fi
77 +
78 +if test "x$have_networkmanager" = "xyes"; then
79 + AC_DEFINE(HAVE_NETWORKMANAGER, [1], [Define if we have NetworkManager])
80 + AC_SUBST([HAVE_NETWORKMANAGER], [1])
81 +else
82 + if test "x$enable_networkmanager" = "xyes"; then
83 + AC_MSG_ERROR([Couldn't find NetworkManager.])
84 + fi
85 + AC_SUBST([HAVE_NETWORKMANAGER], [0])
86 +fi
87 +
88 +AM_CONDITIONAL(HAVE_NETWORKMANAGER, test "$have_networkmanager" = "yes")
89 +
90 PKG_CHECK_MODULES(SHELL_PERF_HELPER, gtk+-3.0 gio-2.0)
91
92 PKG_CHECK_MODULES(SHELL_HOTPLUG_SNIFFER, gio-2.0 gdk-pixbuf-2.0)
93 @@ -260,3 +293,15 @@ AC_CONFIG_FILES([
94 man/Makefile
95 ])
96 AC_OUTPUT
97 +
98 +echo "
99 +Build configuration:
100 +
101 + Prefix: ${prefix}
102 + Source code location: ${srcdir}
103 + Compiler: ${CC}
104 + Compiler Warnings: $enable_compile_warnings
105 +
106 + Support for NetworkManager: $have_networkmanager
107 + Support for GStreamer recording: $build_recorder
108 +"
109 diff --git a/js/Makefile.am b/js/Makefile.am
110 index a3e4917..4b00193 100644
111 --- a/js/Makefile.am
112 +++ b/js/Makefile.am
113 @@ -8,6 +8,7 @@ misc/config.js: misc/config.js.in Makefile
114 sed -e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
115 -e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \
116 -e "s|[@]HAVE_BLUETOOTH@|$(HAVE_BLUETOOTH)|g" \
117 + -e "s|[@]HAVE_NETWORKMANAGER@|$(HAVE_NETWORKMANAGER)|g" \
118 -e "s|[@]GETTEXT_PACKAGE@|$(GETTEXT_PACKAGE)|g" \
119 -e "s|[@]datadir@|$(datadir)|g" \
120 -e "s|[@]libexecdir@|$(libexecdir)|g" \
121 diff --git a/js/misc/config.js.in b/js/misc/config.js.in
122 index 9769104..9c4795d 100644
123 --- a/js/misc/config.js.in
124 +++ b/js/misc/config.js.in
125 @@ -6,6 +6,8 @@ const PACKAGE_NAME = '@PACKAGE_NAME@';
126 const PACKAGE_VERSION = '@PACKAGE_VERSION@';
127 /* 1 if gnome-bluetooth is available, 0 otherwise */
128 const HAVE_BLUETOOTH = @HAVE_BLUETOOTH@;
129 +/* 1 if networkmanager is available, 0 otherwise */
130 +const HAVE_NETWORKMANAGER = @HAVE_NETWORKMANAGER@;
131 /* gettext package */
132 const GETTEXT_PACKAGE = '@GETTEXT_PACKAGE@';
133 /* locale dir */
134 diff --git a/js/ui/panel.js b/js/ui/panel.js
135 index bcbaafb..40c6ff9 100644
136 --- a/js/ui/panel.js
137 +++ b/js/ui/panel.js
138 @@ -910,11 +910,13 @@ if (Config.HAVE_BLUETOOTH)
139 PANEL_ITEM_IMPLEMENTATIONS['bluetooth'] =
140 imports.ui.status.bluetooth.Indicator;
141
142 -try {
143 - PANEL_ITEM_IMPLEMENTATIONS['network'] =
144 - imports.ui.status.network.NMApplet;
145 -} catch(e) {
146 - log('NMApplet is not supported. It is possible that your NetworkManager version is too old');
147 +if (Config.HAVE_NETWORKMANAGER) {
148 + try {
149 + PANEL_ITEM_IMPLEMENTATIONS['network'] =
150 + imports.ui.status.network.NMApplet;
151 + } catch(e) {
152 + log('NMApplet is not supported. It is possible that your NetworkManager version is too old');
153 + }
154 }
155
156 const Panel = new Lang.Class({
157 diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
158 index 808109a..7ee6b1e 100644
159 --- a/js/ui/sessionMode.js
160 +++ b/js/ui/sessionMode.js
161 @@ -6,6 +6,8 @@ const Signals = imports.signals;
162 const Main = imports.ui.main;
163 const Params = imports.misc.params;
164
165 +const Config = imports.misc.config;
166 +
167 const DEFAULT_MODE = 'restrictive';
168
169 const _modes = {
170 @@ -91,7 +93,10 @@ const _modes = {
171 isLocked: false,
172 isPrimary: true,
173 unlockDialog: imports.ui.unlockDialog.UnlockDialog,
174 - components: ['networkAgent', 'polkitAgent', 'telepathyClient',
175 + components: Config.HAVE_NETWORKMANAGER ?
176 + ['networkAgent', 'polkitAgent', 'telepathyClient',
177 + 'keyring', 'recorder', 'autorunManager', 'automountManager'] :
178 + ['polkitAgent', 'telepathyClient',
179 'keyring', 'recorder', 'autorunManager', 'automountManager'],
180 panel: {
181 left: ['activities', 'appMenu'],
182 diff --git a/src/Makefile.am b/src/Makefile.am
183 index a390691..552b640 100644
184 --- a/src/Makefile.am
185 +++ b/src/Makefile.am
186 @@ -115,9 +115,7 @@ shell_public_headers_h = \
187 shell-global.h \
188 shell-idle-monitor.h \
189 shell-invert-lightness-effect.h \
190 - shell-mobile-providers.h \
191 shell-mount-operation.h \
192 - shell-network-agent.h \
193 shell-perf-log.h \
194 shell-screenshot.h \
195 shell-screen-grabber.h \
196 @@ -131,6 +129,10 @@ shell_public_headers_h = \
197 shell-wm.h \
198 shell-xfixes-cursor.h
199
200 +if HAVE_NETWORKMANAGER
201 +shell_public_headers_h += shell-mobile-providers.h shell-network-agent.h
202 +endif
203 +
204 shell_private_sources = \
205 gactionmuxer.h \
206 gactionmuxer.c \
207 @@ -162,9 +164,7 @@ libgnome_shell_la_SOURCES = \
208 shell-invert-lightness-effect.c \
209 shell-keyring-prompt.h \
210 shell-keyring-prompt.c \
211 - shell-mobile-providers.c \
212 shell-mount-operation.c \
213 - shell-network-agent.c \
214 shell-perf-log.c \
215 shell-polkit-authentication-agent.h \
216 shell-polkit-authentication-agent.c \
217 @@ -183,6 +183,10 @@ libgnome_shell_la_SOURCES = \
218 shell-xfixes-cursor.c \
219 $(NULL)
220
221 +if HAVE_NETWORKMANAGER
222 +libgnome_shell_la_SOURCES += shell-mobile-providers.c shell-network-agent.c
223 +endif
224 +
225 libgnome_shell_la_gir_sources = \
226 $(filter-out %-private.h $(shell_private_sources), $(shell_public_headers_h) $(libgnome_shell_la_SOURCES))
227
228 @@ -296,7 +300,10 @@ libgnome_shell_la_LIBADD = \
229 libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags)
230
231 Shell-0.1.gir: libgnome-shell.la St-1.0.gir
232 -Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-3.0 TelepathyGLib-0.12 TelepathyLogger-0.2 Soup-2.4 GMenu-3.0 NetworkManager-1.0 NMClient-1.0
233 +Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-3.0 TelepathyGLib-0.12 TelepathyLogger-0.2 Soup-2.4 GMenu-3.0
234 +if HAVE_NETWORKMANAGER
235 +Shell_0_1_gir_INCLUDES += NetworkManager-1.0 NMClient-1.0
236 +endif
237 Shell_0_1_gir_CFLAGS = $(libgnome_shell_la_CPPFLAGS) -I $(srcdir)
238 Shell_0_1_gir_LIBS = libgnome-shell.la
239 Shell_0_1_gir_FILES = $(libgnome_shell_la_gir_sources)
240 --
241 1.7.12
242
243
244
245
246 1.1 gnome-base/gnome-shell/files/gnome-shell-3.5.x-bluetooth-flag.patch
247
248 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.5.x-bluetooth-flag.patch?rev=1.1&view=markup
249 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.5.x-bluetooth-flag.patch?rev=1.1&content-type=text/plain
250
251 Index: gnome-shell-3.5.x-bluetooth-flag.patch
252 ===================================================================
253 From fbc509635dd60d548945636bb4f1cfec5dc7fb49 Mon Sep 17 00:00:00 2001
254 From: root <admin@×××××××××.uk>
255 Date: Sun, 8 Jan 2012 13:55:05 +0000
256 Subject: [PATCH 1/2] Fix automagic gnome-bluetooth dependency
257
258 https://bugs.gentoo.org/show_bug.cgi?id=398145
259
260 Ed Catmur 2012-01-08 13:46:22 UTC
261 libgnome-bluetooth-applet is a private library so they shouldn't be linking
262 against it anyway. I tried to work out how to tell libtool to add it to rpath
263 but got totally lost.
264
265 I'll see if I can work out how to fix the automagic gnome-bluetooth dependency
266 so I can at least merge USE=-bluetooth.
267 ---
268 configure.ac | 5 +++++
269 1 files changed, 5 insertions(+), 0 deletions(-)
270
271 diff --git a/configure.ac b/configure.ac
272 index 7ab5c59..f3dbdcc 100644
273 --- a/configure.ac
274 +++ b/configure.ac
275 @@ -123,6 +123,8 @@ PKG_CHECK_MODULES(GVC, libpulse libpulse-mainloop-glib gobject-2.0)
276 PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 3.5.4)
277
278 AC_MSG_CHECKING([for bluetooth support])
279 +AC_ARG_WITH([bluetooth], AS_HELP_STRING([--without-bluetooth], [Build without gnome-bluetooth library (default: auto)]))
280 +AS_IF([test "x$with_bluetooth" != "xno"], [
281 PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 3.1.0],
282 [BLUETOOTH_DIR=`$PKG_CONFIG --variable=applet_libdir gnome-bluetooth-1.0`
283 BLUETOOTH_LIBS=`$PKG_CONFIG --variable=applet_libs gnome-bluetooth-1.0`
284 @@ -135,6 +137,9 @@ PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 3.1.0],
285 [AC_DEFINE([HAVE_BLUETOOTH],[0])
286 AC_SUBST([HAVE_BLUETOOTH],[0])
287 AC_MSG_RESULT([no])])
288 +], [AC_DEFINE([HAVE_BLUETOOTH],[0])
289 + AC_SUBST([HAVE_BLUETOOTH],[0])
290 + AC_MSG_RESULT([no])])
291
292 PKG_CHECK_MODULES(CALENDAR_SERVER, libecal-1.2 >= $LIBECAL_MIN_VERSION libedataserver-1.2 >= $LIBEDATASERVER_MIN_VERSION libedataserverui-3.0 >= $LIBEDATASERVERUI_MIN_VERSION gio-2.0)
293 AC_SUBST(CALENDAR_SERVER_CFLAGS)
294 --
295 1.7.8.6