1 |
pacho 13/03/28 22:43:26 |
2 |
|
3 |
Added: gnome-shell-3.7.90-bluetooth-flag.patch |
4 |
gnome-shell-3.8.0-networkmanager-flag.patch |
5 |
gnome-shell-3.8.0-suspend.patch |
6 |
Log: |
7 |
Version bump for Gnome 3.8 |
8 |
|
9 |
(Portage version: 2.1.11.58/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 gnome-base/gnome-shell/files/gnome-shell-3.7.90-bluetooth-flag.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.7.90-bluetooth-flag.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.7.90-bluetooth-flag.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: gnome-shell-3.7.90-bluetooth-flag.patch |
18 |
=================================================================== |
19 |
From 0556d99379265b5ccd256bc6befcd1486fe4e464 Mon Sep 17 00:00:00 2001 |
20 |
From: Sobhan Mohammadpour <sobhanmohammadpour1@×××××.fr> |
21 |
Date: Thu, 28 Feb 2013 18:48:32 +0330 |
22 |
Subject: [PATCH] gnome-shell-3.7.90--bluetooth-flag |
23 |
|
24 |
https://bugs.gentoo.org/show_bug.cgi?id=398145 |
25 |
|
26 |
Ed Catmur 2012-01-08 13:46:22 UTC |
27 |
libgnome-bluetooth-applet is a private library so they shouldn't be linking |
28 |
against it anyway. I tried to work out how to tell libtool to add it to rpath |
29 |
but got totally lost. |
30 |
|
31 |
I'll see if I can work out how to fix the automagic gnome-bluetooth dependency |
32 |
so I can at least merge USE=-bluetooth. |
33 |
|
34 |
--- |
35 |
configure.ac | 5 +++++ |
36 |
1 file changed, 5 insertions(+) |
37 |
|
38 |
diff --git a/configure.ac b/configure.ac |
39 |
index d9d1001..02f1e65 100644 |
40 |
--- a/configure.ac |
41 |
+++ b/configure.ac |
42 |
@@ -111,6 +111,8 @@ PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 3.7.4) |
43 |
PKG_CHECK_MODULES(CARIBOU, caribou-1.0 >= 0.4.8) |
44 |
|
45 |
AC_MSG_CHECKING([for bluetooth support]) |
46 |
+AC_ARG_WITH([bluetooth], AS_HELP_STRING([--without-bluetooth], [Build without gnome-bluetooth library (default: auto)])) |
47 |
+AS_IF([test "x$with_bluetooth" != "xno"], [ |
48 |
PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 3.1.0], |
49 |
[BLUETOOTH_DIR=`$PKG_CONFIG --variable=applet_libdir gnome-bluetooth-1.0` |
50 |
BLUETOOTH_LIBS=`$PKG_CONFIG --variable=applet_libs gnome-bluetooth-1.0` |
51 |
@@ -123,6 +125,9 @@ PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 3.1.0], |
52 |
[AC_DEFINE([HAVE_BLUETOOTH],[0]) |
53 |
AC_SUBST([HAVE_BLUETOOTH],[0]) |
54 |
AC_MSG_RESULT([no])]) |
55 |
+], [AC_DEFINE([HAVE_BLUETOOTH],[0]) |
56 |
+ AC_SUBST([HAVE_BLUETOOTH],[0]) |
57 |
+ AC_MSG_RESULT([no])]) |
58 |
|
59 |
PKG_CHECK_MODULES(CALENDAR_SERVER, libecal-1.2 >= $LIBECAL_MIN_VERSION libedataserver-1.2 >= $LIBEDATASERVER_MIN_VERSION gio-2.0) |
60 |
AC_SUBST(CALENDAR_SERVER_CFLAGS) |
61 |
-- |
62 |
1.8.1.2 |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
1.1 gnome-base/gnome-shell/files/gnome-shell-3.8.0-networkmanager-flag.patch |
68 |
|
69 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.8.0-networkmanager-flag.patch?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.8.0-networkmanager-flag.patch?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: gnome-shell-3.8.0-networkmanager-flag.patch |
73 |
=================================================================== |
74 |
From 9522d27dfa364b64a0fe5d87585b8a3309fbb92a Mon Sep 17 00:00:00 2001 |
75 |
From: Sobhan Mohammadpour <sobhanmohammadpour1@×××××.fr> |
76 |
Date: Tue, 12 Feb 2013 22:09:39 +0330 |
77 |
Subject: [PATCH] gnome-shell-3.7.5-networkmanager-flag |
78 |
|
79 |
[ Alexandre Rostovtsev <tetromino@g.o> : |
80 |
* use config.js (and AC_SUBST HAVE_NETWORKMANAGER appropriately); |
81 |
* take care to not import ui.status.network if nm is disabled; |
82 |
* do not try to reassign to const variables; |
83 |
* no point really in fiddling with the list of installed js files; |
84 |
* don't build shell-mobile-providers if nm is disabled; |
85 |
* use "networkmanager" instead of "network_manager" because THE |
86 |
BIKESHED SHOULD BE BLUE, also because the upstream package name is |
87 |
NetworkManager, not Network_Manager. |
88 |
--- |
89 |
configure.ac | 42 ++++++++++++++++++++++++++++++++++++++++++ |
90 |
js/Makefile.am | 1 + |
91 |
js/misc/config.js.in | 2 ++ |
92 |
js/ui/panel.js | 12 +++++++----- |
93 |
js/ui/sessionMode.js | 7 ++++++- |
94 |
src/Makefile.am | 15 ++++++++++++--- |
95 |
6 files changed, 70 insertions(+), 9 deletions(-) |
96 |
|
97 |
diff --git a/configure.ac b/configure.ac |
98 |
index 1a2b947..683a3db 100644 |
99 |
--- a/configure.ac |
100 |
+++ b/configure.ac |
101 |
@@ -164,6 +164,36 @@ if test "$langinfo_ok" = "yes"; then |
102 |
[Define if _NL_TIME_FIRST_WEEKDAY is available]) |
103 |
fi |
104 |
|
105 |
+NM_MIN_VERSION=0.9.6 |
106 |
+AC_ARG_ENABLE(networkmanager, |
107 |
+ AS_HELP_STRING([--disable-networkmanager], |
108 |
+ [disable NetworkManager support @<:@default=auto@:>@]),, |
109 |
+ [enable_networkmanager=auto]) |
110 |
+ |
111 |
+if test "x$enable_networkmanager" != "xno"; then |
112 |
+ PKG_CHECK_MODULES(NETWORKMANAGER, |
113 |
+ [libnm-glib libnm-util gnome-keyring-1], |
114 |
+ [have_networkmanager=yes], |
115 |
+ [have_networkmanager=no]) |
116 |
+ |
117 |
+ GNOME_SHELL_CFLAGS="$GNOME_SHELL_CFLAGS $NETWORKMANAGER_CFLAGS" |
118 |
+ GNOME_SHELL_LIBS="$GNOME_SHELL_LIBS $NETWORKMANAGER_LIBS" |
119 |
+else |
120 |
+ have_networkmanager="no (disabled)" |
121 |
+fi |
122 |
+ |
123 |
+if test "x$have_networkmanager" = "xyes"; then |
124 |
+ AC_DEFINE(HAVE_NETWORKMANAGER, [1], [Define if we have NetworkManager]) |
125 |
+ AC_SUBST([HAVE_NETWORKMANAGER], [1]) |
126 |
+else |
127 |
+ if test "x$enable_networkmanager" = "xyes"; then |
128 |
+ AC_MSG_ERROR([Couldn't find NetworkManager.]) |
129 |
+ fi |
130 |
+ AC_SUBST([HAVE_NETWORKMANAGER], [0]) |
131 |
+fi |
132 |
+ |
133 |
+AM_CONDITIONAL(HAVE_NETWORKMANAGER, test "$have_networkmanager" = "yes") |
134 |
+ |
135 |
# Sets GLIB_GENMARSHAL and GLIB_MKENUMS |
136 |
AM_PATH_GLIB_2_0() |
137 |
|
138 |
@@ -209,3 +239,15 @@ AC_CONFIG_FILES([ |
139 |
man/Makefile |
140 |
]) |
141 |
AC_OUTPUT |
142 |
+ |
143 |
+echo " |
144 |
+Build configuration: |
145 |
+ |
146 |
+ Prefix: ${prefix} |
147 |
+ Source code location: ${srcdir} |
148 |
+ Compiler: ${CC} |
149 |
+ Compiler Warnings: $enable_compile_warnings |
150 |
+ |
151 |
+ Support for NetworkManager: $have_networkmanager |
152 |
+ Support for GStreamer recording: $build_recorder |
153 |
+" |
154 |
diff --git a/js/Makefile.am b/js/Makefile.am |
155 |
index 323cd1b..d17111a 100644 |
156 |
--- a/js/Makefile.am |
157 |
+++ b/js/Makefile.am |
158 |
@@ -8,6 +8,7 @@ misc/config.js: misc/config.js.in Makefile |
159 |
sed -e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \ |
160 |
-e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \ |
161 |
-e "s|[@]HAVE_BLUETOOTH@|$(HAVE_BLUETOOTH)|g" \ |
162 |
+ -e "s|[@]HAVE_NETWORKMANAGER@|$(HAVE_NETWORKMANAGER)|g" \ |
163 |
-e "s|[@]GETTEXT_PACKAGE@|$(GETTEXT_PACKAGE)|g" \ |
164 |
-e "s|[@]datadir@|$(datadir)|g" \ |
165 |
-e "s|[@]libexecdir@|$(libexecdir)|g" \ |
166 |
diff --git a/js/misc/config.js.in b/js/misc/config.js.in |
167 |
index 9769104..9c4795d 100644 |
168 |
--- a/js/misc/config.js.in |
169 |
+++ b/js/misc/config.js.in |
170 |
@@ -6,6 +6,8 @@ const PACKAGE_NAME = '@PACKAGE_NAME@'; |
171 |
const PACKAGE_VERSION = '@PACKAGE_VERSION@'; |
172 |
/* 1 if gnome-bluetooth is available, 0 otherwise */ |
173 |
const HAVE_BLUETOOTH = @HAVE_BLUETOOTH@; |
174 |
+/* 1 if networkmanager is available, 0 otherwise */ |
175 |
+const HAVE_NETWORKMANAGER = @HAVE_NETWORKMANAGER@; |
176 |
/* gettext package */ |
177 |
const GETTEXT_PACKAGE = '@GETTEXT_PACKAGE@'; |
178 |
/* locale dir */ |
179 |
diff --git a/js/ui/panel.js b/js/ui/panel.js |
180 |
index cfeb351..3bb13b4 100644 |
181 |
--- a/js/ui/panel.js |
182 |
+++ b/js/ui/panel.js |
183 |
@@ -933,11 +933,13 @@ if (Config.HAVE_BLUETOOTH) |
184 |
PANEL_ITEM_IMPLEMENTATIONS['bluetooth'] = |
185 |
imports.ui.status.bluetooth.Indicator; |
186 |
|
187 |
-try { |
188 |
- PANEL_ITEM_IMPLEMENTATIONS['network'] = |
189 |
- imports.ui.status.network.NMApplet; |
190 |
-} catch(e) { |
191 |
- log('NMApplet is not supported. It is possible that your NetworkManager version is too old'); |
192 |
+if (Config.HAVE_NETWORKMANAGER) { |
193 |
+ try { |
194 |
+ PANEL_ITEM_IMPLEMENTATIONS['network'] = |
195 |
+ imports.ui.status.network.NMApplet; |
196 |
+ } catch(e) { |
197 |
+ log('NMApplet is not supported. It is possible that your NetworkManager version is too old'); |
198 |
+ } |
199 |
} |
200 |
|
201 |
const Panel = new Lang.Class({ |
202 |
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js |
203 |
index f802dbd..eec830b 100644 |
204 |
--- a/js/ui/sessionMode.js |
205 |
+++ b/js/ui/sessionMode.js |
206 |
@@ -10,6 +10,8 @@ const FileUtils = imports.misc.fileUtils; |
207 |
const Main = imports.ui.main; |
208 |
const Params = imports.misc.params; |
209 |
|
210 |
+const Config = imports.misc.config; |
211 |
+ |
212 |
const DEFAULT_MODE = 'restrictive'; |
213 |
|
214 |
const _modes = { |
215 |
@@ -100,7 +102,10 @@ const _modes = { |
216 |
isLocked: false, |
217 |
isPrimary: true, |
218 |
unlockDialog: imports.ui.unlockDialog.UnlockDialog, |
219 |
- components: ['networkAgent', 'polkitAgent', 'telepathyClient', |
220 |
+ components: Config.HAVE_NETWORKMANAGER ? |
221 |
+ ['networkAgent', 'polkitAgent', 'telepathyClient', |
222 |
+ 'keyring', 'recorder', 'autorunManager', 'automountManager'] : |
223 |
+ ['polkitAgent', 'telepathyClient', |
224 |
'keyring', 'recorder', 'autorunManager', 'automountManager'], |
225 |
panel: { |
226 |
left: ['activities', 'appMenu'], |
227 |
|
228 |
--- a/src/Makefile.am.old 2013-03-27 10:35:51.763616888 +0100 |
229 |
+++ b/src/Makefile.am 2013-03-27 10:38:09.745425152 +0100 |
230 |
@@ -116,7 +116,6 @@ |
231 |
shell-invert-lightness-effect.h \ |
232 |
shell-keybinding-modes.h \ |
233 |
shell-mount-operation.h \ |
234 |
- shell-network-agent.h \ |
235 |
shell-perf-log.h \ |
236 |
shell-screenshot.h \ |
237 |
shell-slicer.h \ |
238 |
@@ -129,6 +128,10 @@ |
239 |
shell-wm.h \ |
240 |
shell-xfixes-cursor.h |
241 |
|
242 |
+if HAVE_NETWORKMANAGER |
243 |
+shell_public_headers_h += shell-network-agent.h |
244 |
+endif |
245 |
+ |
246 |
shell_private_sources = \ |
247 |
gactionmuxer.h \ |
248 |
gactionmuxer.c \ |
249 |
@@ -159,7 +162,6 @@ |
250 |
shell-keyring-prompt.h \ |
251 |
shell-keyring-prompt.c \ |
252 |
shell-mount-operation.c \ |
253 |
- shell-network-agent.c \ |
254 |
shell-perf-log.c \ |
255 |
shell-polkit-authentication-agent.h \ |
256 |
shell-polkit-authentication-agent.c \ |
257 |
@@ -177,6 +179,10 @@ |
258 |
shell-xfixes-cursor.c \ |
259 |
$(NULL) |
260 |
|
261 |
+if HAVE_NETWORKMANAGER |
262 |
+libgnome_shell_la_SOURCES += shell-network-agent.c |
263 |
+endif |
264 |
+ |
265 |
libgnome_shell_la_gir_sources = \ |
266 |
$(filter-out %-private.h $(shell_private_sources), $(shell_public_headers_h) $(libgnome_shell_la_SOURCES)) |
267 |
|
268 |
@@ -287,7 +293,10 @@ |
269 |
libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags) |
270 |
|
271 |
Shell-0.1.gir: libgnome-shell.la St-1.0.gir |
272 |
-Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-3.0 TelepathyGLib-0.12 Soup-2.4 GMenu-3.0 NetworkManager-1.0 NMClient-1.0 |
273 |
+Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-3.0 TelepathyGLib-0.12 Soup-2.4 GMenu-3.0 |
274 |
+if HAVE_NETWORKMANAGER |
275 |
+Shell_0_1_gir_INCLUDES += NetworkManager-1.0 NMClient-1.0 |
276 |
+endif |
277 |
Shell_0_1_gir_CFLAGS = $(libgnome_shell_la_CPPFLAGS) -I $(srcdir) |
278 |
Shell_0_1_gir_LIBS = libgnome-shell.la |
279 |
Shell_0_1_gir_FILES = $(libgnome_shell_la_gir_sources) |
280 |
|
281 |
|
282 |
|
283 |
1.1 gnome-base/gnome-shell/files/gnome-shell-3.8.0-suspend.patch |
284 |
|
285 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.8.0-suspend.patch?rev=1.1&view=markup |
286 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.8.0-suspend.patch?rev=1.1&content-type=text/plain |
287 |
|
288 |
Index: gnome-shell-3.8.0-suspend.patch |
289 |
=================================================================== |
290 |
From b91d9c2867952520e685d689f75bc019befcaaf3 Mon Sep 17 00:00:00 2001 |
291 |
From: Florian Müllner <fmuellner@×××××.org> |
292 |
Date: Sun, 03 Feb 2013 20:53:33 +0000 |
293 |
Subject: loginManager: Make suspend() a NOP in the ConsoleKit path |
294 |
|
295 |
UPower will remove its suspend support eventually, and g-s-d already |
296 |
depends on logind for power management. |
297 |
|
298 |
https://bugzilla.gnome.org/show_bug.cgi?id=693162 |
299 |
|
300 |
Index: gnome-shell-3.7.90/js/misc/loginManager.js |
301 |
=================================================================== |
302 |
--- gnome-shell-3.7.90.orig/js/misc/loginManager.js 2013-02-23 15:17:56.532244380 -0500 |
303 |
+++ gnome-shell-3.7.90/js/misc/loginManager.js 2013-02-23 15:19:29.800240480 -0500 |
304 |
@@ -5,6 +5,7 @@ |
305 |
const Lang = imports.lang; |
306 |
const Mainloop = imports.mainloop; |
307 |
const Shell = imports.gi.Shell; |
308 |
+const UPowerGlib = imports.gi.UPowerGlib; |
309 |
const Signals = imports.signals; |
310 |
|
311 |
const SystemdLoginManagerIface = <interface name='org.freedesktop.login1.Manager'> |
312 |
@@ -137,12 +138,10 @@ |
313 |
}, |
314 |
|
315 |
canSuspend: function(asyncCallback) { |
316 |
- this._proxy.CanSuspendRemote(function(result, error) { |
317 |
- if (error) |
318 |
- asyncCallback(false); |
319 |
- else |
320 |
- asyncCallback(result[0] != 'no'); |
321 |
- }); |
322 |
+ Mainloop.idle_add(Lang.bind(this, function() { |
323 |
+ asyncCallback(this._upClient.get_can_suspend()); |
324 |
+ return false; |
325 |
+ })); |
326 |
}, |
327 |
|
328 |
listSessions: function(asyncCallback) { |
329 |
@@ -199,6 +198,7 @@ |
330 |
this._proxy = new ConsoleKitManager(Gio.DBus.system, |
331 |
'org.freedesktop.ConsoleKit', |
332 |
'/org/freedesktop/ConsoleKit/Manager'); |
333 |
+ this._upClient = new UPowerGlib.Client(); |
334 |
}, |
335 |
|
336 |
// Having this function is a bit of a hack since the Systemd and ConsoleKit |
337 |
@@ -252,6 +252,7 @@ |
338 |
suspend: function() { |
339 |
this.emit('prepare-for-sleep', true); |
340 |
this.emit('prepare-for-sleep', false); |
341 |
+ this._upClient.suspend_sync(null); |
342 |
}, |
343 |
|
344 |
inhibit: function(reason, callback) { |