1 |
commit: ce790b3bac45f85cb49715815d26757b83470ae5 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 2 01:50:12 2012 +0000 |
4 |
Commit: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 2 01:50:12 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=ce790b3b |
7 |
|
8 |
gnome-base/gnome-shell: make networkmanager optional, once again |
9 |
|
10 |
Thanks to zchs for the reminder. |
11 |
|
12 |
--- |
13 |
...=> gnome-shell-3.6.0-networkmanager-flag.patch} | 120 +++++++++++--------- |
14 |
gnome-base/gnome-shell/gnome-shell-3.6.0.ebuild | 3 +- |
15 |
gnome-base/gnome-shell/gnome-shell-9999.ebuild | 3 +- |
16 |
3 files changed, 70 insertions(+), 56 deletions(-) |
17 |
|
18 |
diff --git a/gnome-base/gnome-shell/files/gnome-shell-3.5.x-networkmanager-flag.patch b/gnome-base/gnome-shell/files/gnome-shell-3.6.0-networkmanager-flag.patch |
19 |
similarity index 69% |
20 |
rename from gnome-base/gnome-shell/files/gnome-shell-3.5.x-networkmanager-flag.patch |
21 |
rename to gnome-base/gnome-shell/files/gnome-shell-3.6.0-networkmanager-flag.patch |
22 |
index bf43644..c996cc0 100644 |
23 |
--- a/gnome-base/gnome-shell/files/gnome-shell-3.5.x-networkmanager-flag.patch |
24 |
+++ b/gnome-base/gnome-shell/files/gnome-shell-3.6.0-networkmanager-flag.patch |
25 |
@@ -1,7 +1,7 @@ |
26 |
-From 98c765809541b373e487eb4b449362a35d7bcb6c Mon Sep 17 00:00:00 2001 |
27 |
+From da0912a522f80a72db5b73504dc82941067880b2 Mon Sep 17 00:00:00 2001 |
28 |
From: Michael Biebl <biebl@××××××.org> |
29 |
Date: Thu, 22 Dec 2011 22:04:12 +0100 |
30 |
-Subject: [PATCH 2/2] Make NM optional |
31 |
+Subject: [PATCH] Make NM optional |
32 |
|
33 |
[ Alexandre Rostovtsev <tetromino@g.o> : |
34 |
* use config.js (and AC_SUBST HAVE_NETWORKMANAGER appropriately); |
35 |
@@ -13,15 +13,16 @@ Subject: [PATCH 2/2] Make NM optional |
36 |
BIKESHED SHOULD BE BLUE, also because the upstream package name is |
37 |
NetworkManager, not Network_Manager. ] |
38 |
--- |
39 |
- configure.ac | 47 ++++++++++++++++++++++++++++++++++++++++++++++- |
40 |
- js/Makefile.am | 1 + |
41 |
- js/misc/config.js.in | 2 ++ |
42 |
- js/ui/main.js | 7 +++++-- |
43 |
- src/Makefile.am | 18 +++++++++++++----- |
44 |
- 5 files changed, 67 insertions(+), 8 deletions(-) |
45 |
+ configure.ac | 47 ++++++++++++++++++++++++++++++++++++++++++++++- |
46 |
+ js/Makefile.am | 1 + |
47 |
+ js/misc/config.js.in | 2 ++ |
48 |
+ js/ui/panel.js | 12 +++++++----- |
49 |
+ js/ui/sessionMode.js | 7 ++++++- |
50 |
+ src/Makefile.am | 17 ++++++++++++----- |
51 |
+ 6 files changed, 74 insertions(+), 12 deletions(-) |
52 |
|
53 |
diff --git a/configure.ac b/configure.ac |
54 |
-index f3dbdcc..566a78c 100644 |
55 |
+index e6ac88c..3ff8777 100644 |
56 |
--- a/configure.ac |
57 |
+++ b/configure.ac |
58 |
@@ -96,10 +96,43 @@ PKG_CHECK_MODULES(GNOME_SHELL, gio-unix-2.0 >= $GIO_MIN_VERSION |
59 |
@@ -69,7 +70,7 @@ index f3dbdcc..566a78c 100644 |
60 |
PKG_CHECK_MODULES(SHELL_PERF_HELPER, gtk+-3.0 gio-2.0) |
61 |
|
62 |
PKG_CHECK_MODULES(SHELL_HOTPLUG_SNIFFER, gio-2.0 gdk-pixbuf-2.0) |
63 |
-@@ -262,3 +295,15 @@ AC_CONFIG_FILES([ |
64 |
+@@ -260,3 +293,15 @@ AC_CONFIG_FILES([ |
65 |
man/Makefile |
66 |
]) |
67 |
AC_OUTPUT |
68 |
@@ -86,10 +87,10 @@ index f3dbdcc..566a78c 100644 |
69 |
+ Support for GStreamer recording: $build_recorder |
70 |
+" |
71 |
diff --git a/js/Makefile.am b/js/Makefile.am |
72 |
-index 37c4a92..a1b1408 100644 |
73 |
+index a3e4917..4b00193 100644 |
74 |
--- a/js/Makefile.am |
75 |
+++ b/js/Makefile.am |
76 |
-@@ -7,6 +7,7 @@ misc/config.js: misc/config.js.in Makefile |
77 |
+@@ -8,6 +8,7 @@ misc/config.js: misc/config.js.in Makefile |
78 |
sed -e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \ |
79 |
-e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \ |
80 |
-e "s|[@]HAVE_BLUETOOTH@|$(HAVE_BLUETOOTH)|g" \ |
81 |
@@ -110,40 +111,56 @@ index 9769104..9c4795d 100644 |
82 |
/* gettext package */ |
83 |
const GETTEXT_PACKAGE = '@GETTEXT_PACKAGE@'; |
84 |
/* locale dir */ |
85 |
-diff --git a/js/ui/main.js b/js/ui/main.js |
86 |
-index adfaae2..182623c 100644 |
87 |
---- a/js/ui/main.js |
88 |
-+++ b/js/ui/main.js |
89 |
-@@ -12,6 +12,7 @@ const St = imports.gi.St; |
90 |
+diff --git a/js/ui/panel.js b/js/ui/panel.js |
91 |
+index bcbaafb..40c6ff9 100644 |
92 |
+--- a/js/ui/panel.js |
93 |
++++ b/js/ui/panel.js |
94 |
+@@ -910,11 +910,13 @@ if (Config.HAVE_BLUETOOTH) |
95 |
+ PANEL_ITEM_IMPLEMENTATIONS['bluetooth'] = |
96 |
+ imports.ui.status.bluetooth.Indicator; |
97 |
|
98 |
- const AutomountManager = imports.ui.automountManager; |
99 |
- const AutorunManager = imports.ui.autorunManager; |
100 |
-+const Config = imports.misc.config; |
101 |
- const CtrlAltTab = imports.ui.ctrlAltTab; |
102 |
- const EndSessionDialog = imports.ui.endSessionDialog; |
103 |
- const PolkitAuthenticationAgent = imports.ui.polkitAuthenticationAgent; |
104 |
-@@ -27,7 +28,7 @@ const PlaceDisplay = imports.ui.placeDisplay; |
105 |
- const RunDialog = imports.ui.runDialog; |
106 |
- const Layout = imports.ui.layout; |
107 |
- const LookingGlass = imports.ui.lookingGlass; |
108 |
--const NetworkAgent = imports.ui.networkAgent; |
109 |
-+const NetworkAgent = Config.HAVE_NETWORKMANAGER ? imports.ui.networkAgent : null; |
110 |
- const NotificationDaemon = imports.ui.notificationDaemon; |
111 |
- const WindowAttentionHandler = imports.ui.windowAttentionHandler; |
112 |
- const ScreenShield = imports.ui.screenShield; |
113 |
-@@ -88,7 +89,9 @@ function createUserSession() { |
114 |
- telepathyClient = new TelepathyClient.Client(); |
115 |
- automountManager = new AutomountManager.AutomountManager(); |
116 |
- autorunManager = new AutorunManager.AutorunManager(); |
117 |
-- networkAgent = new NetworkAgent.NetworkAgent(); |
118 |
-+ if (Config.HAVE_NETWORKMANAGER) { |
119 |
-+ networkAgent = new NetworkAgent.NetworkAgent(); |
120 |
+-try { |
121 |
+- PANEL_ITEM_IMPLEMENTATIONS['network'] = |
122 |
+- imports.ui.status.network.NMApplet; |
123 |
+-} catch(e) { |
124 |
+- log('NMApplet is not supported. It is possible that your NetworkManager version is too old'); |
125 |
++if (Config.HAVE_NETWORKMANAGER) { |
126 |
++ try { |
127 |
++ PANEL_ITEM_IMPLEMENTATIONS['network'] = |
128 |
++ imports.ui.status.network.NMApplet; |
129 |
++ } catch(e) { |
130 |
++ log('NMApplet is not supported. It is possible that your NetworkManager version is too old'); |
131 |
+ } |
132 |
- |
133 |
- _initRecorder(); |
134 |
} |
135 |
+ |
136 |
+ const Panel = new Lang.Class({ |
137 |
+diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js |
138 |
+index 808109a..7ee6b1e 100644 |
139 |
+--- a/js/ui/sessionMode.js |
140 |
++++ b/js/ui/sessionMode.js |
141 |
+@@ -6,6 +6,8 @@ const Signals = imports.signals; |
142 |
+ const Main = imports.ui.main; |
143 |
+ const Params = imports.misc.params; |
144 |
+ |
145 |
++const Config = imports.misc.config; |
146 |
++ |
147 |
+ const DEFAULT_MODE = 'restrictive'; |
148 |
+ |
149 |
+ const _modes = { |
150 |
+@@ -91,7 +93,10 @@ const _modes = { |
151 |
+ isLocked: false, |
152 |
+ isPrimary: true, |
153 |
+ unlockDialog: imports.ui.unlockDialog.UnlockDialog, |
154 |
+- components: ['networkAgent', 'polkitAgent', 'telepathyClient', |
155 |
++ components: Config.HAVE_NETWORKMANAGER ? |
156 |
++ ['networkAgent', 'polkitAgent', 'telepathyClient', |
157 |
++ 'keyring', 'recorder', 'autorunManager', 'automountManager'] : |
158 |
++ ['polkitAgent', 'telepathyClient', |
159 |
+ 'keyring', 'recorder', 'autorunManager', 'automountManager'], |
160 |
+ panel: { |
161 |
+ left: ['activities', 'appMenu'], |
162 |
diff --git a/src/Makefile.am b/src/Makefile.am |
163 |
-index a390691..a6279ae 100644 |
164 |
+index a390691..552b640 100644 |
165 |
--- a/src/Makefile.am |
166 |
+++ b/src/Makefile.am |
167 |
@@ -115,9 +115,7 @@ shell_public_headers_h = \ |
168 |
@@ -156,17 +173,17 @@ index a390691..a6279ae 100644 |
169 |
shell-perf-log.h \ |
170 |
shell-screenshot.h \ |
171 |
shell-screen-grabber.h \ |
172 |
-@@ -139,6 +137,10 @@ shell_private_sources = \ |
173 |
- gactionobserver.h \ |
174 |
- gactionobserver.c |
175 |
+@@ -131,6 +129,10 @@ shell_public_headers_h = \ |
176 |
+ shell-wm.h \ |
177 |
+ shell-xfixes-cursor.h |
178 |
|
179 |
+if HAVE_NETWORKMANAGER |
180 |
+shell_public_headers_h += shell-mobile-providers.h shell-network-agent.h |
181 |
+endif |
182 |
+ |
183 |
- libgnome_shell_la_SOURCES = \ |
184 |
- $(shell_built_sources) \ |
185 |
- $(shell_public_headers_h) \ |
186 |
+ shell_private_sources = \ |
187 |
+ gactionmuxer.h \ |
188 |
+ gactionmuxer.c \ |
189 |
@@ -162,9 +164,7 @@ libgnome_shell_la_SOURCES = \ |
190 |
shell-invert-lightness-effect.c \ |
191 |
shell-keyring-prompt.h \ |
192 |
@@ -177,11 +194,10 @@ index a390691..a6279ae 100644 |
193 |
shell-perf-log.c \ |
194 |
shell-polkit-authentication-agent.h \ |
195 |
shell-polkit-authentication-agent.c \ |
196 |
-@@ -183,6 +183,11 @@ libgnome_shell_la_SOURCES = \ |
197 |
+@@ -183,6 +183,10 @@ libgnome_shell_la_SOURCES = \ |
198 |
shell-xfixes-cursor.c \ |
199 |
$(NULL) |
200 |
|
201 |
-+ |
202 |
+if HAVE_NETWORKMANAGER |
203 |
+libgnome_shell_la_SOURCES += shell-mobile-providers.c shell-network-agent.c |
204 |
+endif |
205 |
@@ -189,7 +205,7 @@ index a390691..a6279ae 100644 |
206 |
libgnome_shell_la_gir_sources = \ |
207 |
$(filter-out %-private.h $(shell_private_sources), $(shell_public_headers_h) $(libgnome_shell_la_SOURCES)) |
208 |
|
209 |
-@@ -296,7 +301,10 @@ libgnome_shell_la_LIBADD = \ |
210 |
+@@ -296,7 +300,10 @@ libgnome_shell_la_LIBADD = \ |
211 |
libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags) |
212 |
|
213 |
Shell-0.1.gir: libgnome-shell.la St-1.0.gir |
214 |
@@ -202,5 +218,5 @@ index a390691..a6279ae 100644 |
215 |
Shell_0_1_gir_LIBS = libgnome-shell.la |
216 |
Shell_0_1_gir_FILES = $(libgnome_shell_la_gir_sources) |
217 |
-- |
218 |
-1.7.8.6 |
219 |
+1.7.12 |
220 |
|
221 |
|
222 |
diff --git a/gnome-base/gnome-shell/gnome-shell-3.6.0.ebuild b/gnome-base/gnome-shell/gnome-shell-3.6.0.ebuild |
223 |
index 5315f2b..f01a19c 100644 |
224 |
--- a/gnome-base/gnome-shell/gnome-shell-3.6.0.ebuild |
225 |
+++ b/gnome-base/gnome-shell/gnome-shell-3.6.0.ebuild |
226 |
@@ -135,8 +135,7 @@ src_prepare() { |
227 |
epatch "${FILESDIR}/${PN}-3.5.x-bluetooth-flag.patch" |
228 |
|
229 |
# Make networkmanager optional, bug #398593 |
230 |
- # FIXME: fails to apply, massive source changes |
231 |
- #epatch "${FILESDIR}/${PN}-3.5.x-networkmanager-flag.patch" |
232 |
+ epatch "${FILESDIR}/${PN}-3.6.0-networkmanager-flag.patch" |
233 |
|
234 |
[[ ${PV} != 9999 ]] && eautoreconf |
235 |
gnome2_src_prepare |
236 |
|
237 |
diff --git a/gnome-base/gnome-shell/gnome-shell-9999.ebuild b/gnome-base/gnome-shell/gnome-shell-9999.ebuild |
238 |
index 5315f2b..f01a19c 100644 |
239 |
--- a/gnome-base/gnome-shell/gnome-shell-9999.ebuild |
240 |
+++ b/gnome-base/gnome-shell/gnome-shell-9999.ebuild |
241 |
@@ -135,8 +135,7 @@ src_prepare() { |
242 |
epatch "${FILESDIR}/${PN}-3.5.x-bluetooth-flag.patch" |
243 |
|
244 |
# Make networkmanager optional, bug #398593 |
245 |
- # FIXME: fails to apply, massive source changes |
246 |
- #epatch "${FILESDIR}/${PN}-3.5.x-networkmanager-flag.patch" |
247 |
+ epatch "${FILESDIR}/${PN}-3.6.0-networkmanager-flag.patch" |
248 |
|
249 |
[[ ${PV} != 9999 ]] && eautoreconf |
250 |
gnome2_src_prepare |