Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: gnome-base/gnome-shell/, gnome-base/gnome-shell/files/
Date: Tue, 30 Aug 2011 21:56:12
Message-Id: 6716ca4b40d079bd337c4b3ee629ff6c0c856833.tetromino@gentoo
1 commit: 6716ca4b40d079bd337c4b3ee629ff6c0c856833
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Tue Aug 30 21:27:04 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Tue Aug 30 21:53:28 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=6716ca4b
7
8 gnome-base/gnome-shell: 3.1.4 → 3.1.90
9
10 Version bump with a massive number of changes. Two important ones:
11 * networkmanager is now obligatory, and gnome-shell now provides its own
12 equivalent of nm-applet;
13 * the extension system has been completely overhauled. All assumptions
14 about packaging shell extensions in Gentoo will need to be revisited.
15
16 Also, old shell extensions appear to cause 3.1.90 to crash at login
17 or shortly thereafter. Disabling them is not enough; they must be
18 physically removed from the system.
19
20 ---
21 .../files/gnome-shell-3.1.90-default-avatar.patch | 24 ++++++
22 .../files/gnome-shell-3.1.90-folks-crash.patch | 34 +++++++++
23 .../files/gnome-shell-3.1.90-gdm-batch.patch | 23 ++++++
24 .../files/gnome-shell-3.1.90-gi-1.29.17.patch | 75 ++++++++++++++++++++
25 .../gnome-shell-3.1.90-telepathy-status.patch | 43 +++++++++++
26 ...hell-3.1.4.ebuild => gnome-shell-3.1.90.ebuild} | 37 ++++++++--
27 gnome-base/gnome-shell/gnome-shell-9999.ebuild | 27 +++++--
28 7 files changed, 249 insertions(+), 14 deletions(-)
29
30 diff --git a/gnome-base/gnome-shell/files/gnome-shell-3.1.90-default-avatar.patch b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-default-avatar.patch
31 new file mode 100644
32 index 0000000..f5c3a15
33 --- /dev/null
34 +++ b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-default-avatar.patch
35 @@ -0,0 +1,24 @@
36 +From be4d504e27feeb0dbc4a17388fe03628989e4dcb Mon Sep 17 00:00:00 2001
37 +From: Jasper St. Pierre <jstpierre@×××××××.net>
38 +Date: Mon, 29 Aug 2011 21:41:10 +0000
39 +Subject: userMenu: Don't show the default avatar over a newly selected one
40 +
41 +When we replace the default avatar image with a real image, we need
42 +to remove the default avatar image.
43 +
44 +https://bugzilla.gnome.org/show_bug.cgi?id=657657
45 +---
46 +diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
47 +index 8d71ce2..33c3315 100644
48 +--- a/js/ui/userMenu.js
49 ++++ b/js/ui/userMenu.js
50 +@@ -226,6 +226,7 @@ IMStatusChooserItem.prototype = {
51 +
52 + _setIconFromFile: function(iconFile) {
53 + this._iconBin.set_style('background-image: url("' + iconFile + '");');
54 ++ this._iconBin.child = null;
55 + },
56 +
57 + _setIconFromName: function(iconName) {
58 +--
59 +cgit v0.9.0.2
60
61 diff --git a/gnome-base/gnome-shell/files/gnome-shell-3.1.90-folks-crash.patch b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-folks-crash.patch
62 new file mode 100644
63 index 0000000..695e5b9
64 --- /dev/null
65 +++ b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-folks-crash.patch
66 @@ -0,0 +1,34 @@
67 +From c2c4c26f72b900d0a95c5daca64c46cb7e281f33 Mon Sep 17 00:00:00 2001
68 +From: Alexander Larsson <alexl@××××××.com>
69 +Date: Tue, 30 Aug 2011 09:13:35 +0000
70 +Subject: Don't crash displaying contacts with no alias
71 +
72 +If a folks individual has no alias we crash when passing in NULL
73 +to strstr(). Fix this by checking for non-null first.
74 +---
75 +diff --git a/src/shell-contact-system.c b/src/shell-contact-system.c
76 +index 971a164..9ac79de 100644
77 +--- a/src/shell-contact-system.c
78 ++++ b/src/shell-contact-system.c
79 +@@ -134,11 +134,14 @@ do_match (ShellContactSystem *self,
80 + const char *p;
81 +
82 + /* Match on alias */
83 +- p = strstr (alias, term);
84 +- if (p == alias)
85 +- have_alias_prefix = TRUE;
86 +- else if (p != NULL)
87 +- have_alias_substring = TRUE;
88 ++ if (alias != NULL)
89 ++ {
90 ++ p = strstr (alias, term);
91 ++ if (p == alias)
92 ++ have_alias_prefix = TRUE;
93 ++ else if (p != NULL)
94 ++ have_alias_substring = TRUE;
95 ++ }
96 +
97 + /* Match on one or more IM addresses */
98 + im_addrs_iter = gee_iterable_iterator (GEE_ITERABLE (im_addrs));
99 +--
100 +cgit v0.9.0.2
101
102 diff --git a/gnome-base/gnome-shell/files/gnome-shell-3.1.90-gdm-batch.patch b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-gdm-batch.patch
103 new file mode 100644
104 index 0000000..8df0e37
105 --- /dev/null
106 +++ b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-gdm-batch.patch
107 @@ -0,0 +1,23 @@
108 +From 612b9e9faf014f9b9ff8fbf58176769583f69d5f Mon Sep 17 00:00:00 2001
109 +From: Marc-Antoine Perennou <Marc-Antoine@××××××××.com>
110 +Date: Tue, 30 Aug 2011 11:52:25 +0000
111 +Subject: Fix batch import for loginDialog
112 +
113 +Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@××××××××.com>
114 +Signed-off-by: Adel Gadllah <adel.gadllah@×××××.com>
115 +---
116 +diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
117 +index 36799e3..3ba8aca 100644
118 +--- a/js/gdm/loginDialog.js
119 ++++ b/js/gdm/loginDialog.js
120 +@@ -32,7 +32,7 @@ const Shell = imports.gi.Shell;
121 + const St = imports.gi.St;
122 + const GdmGreeter = imports.gi.GdmGreeter;
123 +
124 +-const Batch = imports.misc.batch;
125 ++const Batch = imports.gdm.batch;
126 + const Lightbox = imports.ui.lightbox;
127 + const Main = imports.ui.main;
128 + const ModalDialog = imports.ui.modalDialog;
129 +--
130 +cgit v0.9.0.2
131
132 diff --git a/gnome-base/gnome-shell/files/gnome-shell-3.1.90-gi-1.29.17.patch b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-gi-1.29.17.patch
133 new file mode 100644
134 index 0000000..7a0505d
135 --- /dev/null
136 +++ b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-gi-1.29.17.patch
137 @@ -0,0 +1,75 @@
138 +From 14e8cba2b184b16d0dbd9beb929860a1e1155709 Mon Sep 17 00:00:00 2001
139 +From: Dan Winship <danw@×××××.org>
140 +Date: Tue, 30 Aug 2011 16:07:11 +0000
141 +Subject: Add some (element-type) annotations to appease g-i master
142 +
143 +---
144 +diff --git a/src/gvc/gvc-mixer-card.c b/src/gvc/gvc-mixer-card.c
145 +index 56502e3..168bc79 100644
146 +--- a/src/gvc/gvc-mixer-card.c
147 ++++ b/src/gvc/gvc-mixer-card.c
148 +@@ -263,6 +263,11 @@ gvc_mixer_card_change_profile (GvcMixerCard *card,
149 + return TRUE;
150 + }
151 +
152 ++/**
153 ++ * gvc_mixer_card_get_profiles:
154 ++ *
155 ++ * Return value: (transfer none) (element-type GvcMixerCardProfile):
156 ++ */
157 + const GList *
158 + gvc_mixer_card_get_profiles (GvcMixerCard *card)
159 + {
160 +@@ -281,6 +286,10 @@ sort_profiles (GvcMixerCardProfile *a,
161 + return -1;
162 + }
163 +
164 ++/**
165 ++ * gvc_mixer_card_set_profiles:
166 ++ * @profiles: (transfer full) (element-type GvcMixerCardProfile):
167 ++ */
168 + gboolean
169 + gvc_mixer_card_set_profiles (GvcMixerCard *card,
170 + GList *profiles)
171 +diff --git a/src/gvc/gvc-mixer-stream.c b/src/gvc/gvc-mixer-stream.c
172 +index 78de6b3..f35954a 100644
173 +--- a/src/gvc/gvc-mixer-stream.c
174 ++++ b/src/gvc/gvc-mixer-stream.c
175 +@@ -508,6 +508,11 @@ gvc_mixer_stream_change_port (GvcMixerStream *stream,
176 + return GVC_MIXER_STREAM_GET_CLASS (stream)->change_port (stream, port);
177 + }
178 +
179 ++/**
180 ++ * gvc_mixer_stream_get_ports:
181 ++ *
182 ++ * Return value: (transfer none) (element-type GvcMixerStreamPort):
183 ++ */
184 + const GList *
185 + gvc_mixer_stream_get_ports (GvcMixerStream *stream)
186 + {
187 +@@ -526,6 +531,10 @@ sort_ports (GvcMixerStreamPort *a,
188 + return -1;
189 + }
190 +
191 ++/**
192 ++ * gvc_mixer_stream_set_ports:
193 ++ * @ports: (transfer full) (element-type GvcMixerStreamPort):
194 ++ */
195 + gboolean
196 + gvc_mixer_stream_set_ports (GvcMixerStream *stream,
197 + GList *ports)
198 +diff --git a/src/shell-app.c b/src/shell-app.c
199 +index 75444b6..0455f42 100644
200 +--- a/src/shell-app.c
201 ++++ b/src/shell-app.c
202 +@@ -1051,7 +1051,7 @@ _gather_pid_callback (GDesktopAppInfo *gapp,
203 + /**
204 + * shell_app_launch:
205 + * @timestamp: Event timestamp, or 0 for current event timestamp
206 +- * @uris: List of uris to pass to application
207 ++ * @uris: (element-type utf8): List of uris to pass to application
208 + * @workspace: Start on this workspace, or -1 for default
209 + * @startup_id: (out): Returned startup notification ID, or %NULL if none
210 + * @error: A #GError
211 +--
212 +cgit v0.9.0.2
213
214 diff --git a/gnome-base/gnome-shell/files/gnome-shell-3.1.90-telepathy-status.patch b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-telepathy-status.patch
215 new file mode 100644
216 index 0000000..4bd3a1c
217 --- /dev/null
218 +++ b/gnome-base/gnome-shell/files/gnome-shell-3.1.90-telepathy-status.patch
219 @@ -0,0 +1,43 @@
220 +From 8cf6b4c7283a383883bdec6ee13b194ae3a5137b Mon Sep 17 00:00:00 2001
221 +From: Guillaume Desmottes <guillaume.desmottes@××××××××××××.uk>
222 +Date: Tue, 30 Aug 2011 12:35:20 +0000
223 +Subject: don't translate IM status
224 +
225 +They are well-known strings defined in the Telepathy spec and so shouldn't be
226 +translated.
227 +
228 +https://bugzilla.gnome.org/show_bug.cgi?id=657696
229 +---
230 +diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
231 +index 33c3315..115bcf7 100644
232 +--- a/js/ui/userMenu.js
233 ++++ b/js/ui/userMenu.js
234 +@@ -250,19 +250,19 @@ IMStatusChooserItem.prototype = {
235 + _statusForPresence: function(presence) {
236 + switch(presence) {
237 + case Tp.ConnectionPresenceType.AVAILABLE:
238 +- return _("Available");
239 ++ return 'available';
240 + case Tp.ConnectionPresenceType.BUSY:
241 +- return _("Busy");
242 ++ return 'busy';
243 + case Tp.ConnectionPresenceType.OFFLINE:
244 +- return _("Unavailable");
245 ++ return 'offline';
246 + case Tp.ConnectionPresenceType.HIDDEN:
247 +- return _("Hidden");
248 ++ return 'hidden';
249 + case Tp.ConnectionPresenceType.AWAY:
250 +- return _("Away");
251 ++ return 'away';
252 + case Tp.ConnectionPresenceType.EXTENDED_AWAY:
253 +- return _("Idle");
254 ++ return 'xa';
255 + default:
256 +- return _("Unknown");
257 ++ return 'unknown';
258 + }
259 + },
260 +
261 +--
262 +cgit v0.9.0.2
263
264 diff --git a/gnome-base/gnome-shell/gnome-shell-3.1.4.ebuild b/gnome-base/gnome-shell/gnome-shell-3.1.90.ebuild
265 similarity index 74%
266 rename from gnome-base/gnome-shell/gnome-shell-3.1.4.ebuild
267 rename to gnome-base/gnome-shell/gnome-shell-3.1.90.ebuild
268 index 76307f7..95594a2 100644
269 --- a/gnome-base/gnome-shell/gnome-shell-3.1.4.ebuild
270 +++ b/gnome-base/gnome-shell/gnome-shell-3.1.90.ebuild
271 @@ -18,7 +18,7 @@ HOMEPAGE="http://live.gnome.org/GnomeShell"
272
273 LICENSE="GPL-2"
274 SLOT="0"
275 -IUSE="+nm-applet"
276 +IUSE=""
277 if [[ ${PV} = 9999 ]]; then
278 KEYWORDS=""
279 else
280 @@ -36,14 +36,17 @@ COMMON_DEPEND=">=dev-libs/glib-2.25.9:2
281 x11-libs/gdk-pixbuf:2[introspection]
282 >=x11-libs/gtk+-3.0.0:3[introspection]
283 >=media-libs/clutter-1.7.5:1.0[introspection]
284 + >=dev-libs/folks-0.5.2
285 >=gnome-base/gnome-desktop-2.91.2:3
286 >=gnome-base/gsettings-desktop-schemas-2.91.91
287 + gnome-base/libgnome-keyring
288 >=gnome-extra/evolution-data-server-2.91.6
289 >=media-libs/gstreamer-0.10.16:0.10
290 >=media-libs/gst-plugins-base-0.10.16:0.10
291 >=net-im/telepathy-logger-0.2.4[introspection]
292 net-libs/libsoup:2.4[introspection]
293 - >=net-libs/telepathy-glib-0.15.3[introspection]
294 + >=net-libs/telepathy-glib-0.15.5[introspection]
295 + >=net-misc/networkmanager-0.8.999[introspection]
296 >=net-wireless/gnome-bluetooth-3.1.0[introspection]
297 >=sys-auth/polkit-0.100[introspection]
298 >=x11-wm/mutter-3.0.0[introspection]
299 @@ -54,7 +57,7 @@ COMMON_DEPEND=">=dev-libs/glib-2.25.9:2
300 >=dev-libs/libcroco-0.6.2:0.6
301
302 gnome-base/gconf:2[introspection]
303 - gnome-base/gnome-menus
304 + >=gnome-base/gnome-menus-2.29.10:3[introspection]
305 gnome-base/librsvg
306 media-libs/libcanberra
307 media-sound/pulseaudio
308 @@ -70,7 +73,7 @@ COMMON_DEPEND=">=dev-libs/glib-2.25.9:2
309 # 3. gnome-session is needed for gnome-session-quit
310 # 4. Control shell settings
311 # 5. accountsservice is needed for GdmUserManager
312 -# 6. nm-applet is needed for auth prompting and the wireless connection dialog
313 +# 6. caribou needed for on-screen keyboard
314 RDEPEND="${COMMON_DEPEND}
315 >=sys-auth/polkit-0.101[introspection]
316
317 @@ -85,9 +88,11 @@ RDEPEND="${COMMON_DEPEND}
318
319 >=sys-apps/accountsservice-0.6.12
320
321 - nm-applet? (
322 - >=gnome-extra/nm-applet-0.8.999
323 - >=net-misc/networkmanager-0.8.999[introspection] )"
324 + >=app-accessibility/caribou-0.3
325 +
326 + !!<=gnome-extra/gnome-shell-extensions-3.1.4"
327 +# The *presence* of <=gnome-shell-extensions-3.1.4 destabilizes gnome-shell.
328 +# Disabling the extensions is not enough; they must be physically uninstalled.
329 DEPEND="${COMMON_DEPEND}
330 >=sys-devel/gettext-0.17
331 >=dev-util/pkgconfig-0.22
332 @@ -104,6 +109,24 @@ pkg_setup() {
333 --enable-compile-warnings=maximum
334 --disable-schemas-compile
335 --disable-jhbuild-wrapper-script"
336 +
337 + ewarn
338 + ewarn "${PN} tends to crash at login or shortly thereafter if there are any"
339 + ewarn "old shell extensions *installed*, whether systemwide or in a user's"
340 + ewarn "home directory."
341 + ewarn "Disabling the extensions is not enough. You should uninstall the"
342 + ewarn "extensions before upgrading gnome-shell to ${PV}."
343 + ewarn
344 +}
345 +
346 +src_prepare() {
347 + # Useful patches from upstream git, will be in next release
348 + epatch "${FILESDIR}/${P}-default-avatar.patch"
349 + epatch "${FILESDIR}/${P}-folks-crash.patch"
350 + epatch "${FILESDIR}/${P}-gdm-batch.patch"
351 + epatch "${FILESDIR}/${P}-telepathy-status.patch"
352 + # gobject-introspection-1.29.17 compat, will be in next release
353 + epatch "${FILESDIR}/${P}-gi-1.29.17.patch"
354 }
355
356 src_install() {
357
358 diff --git a/gnome-base/gnome-shell/gnome-shell-9999.ebuild b/gnome-base/gnome-shell/gnome-shell-9999.ebuild
359 index 76307f7..2cdf2d0 100644
360 --- a/gnome-base/gnome-shell/gnome-shell-9999.ebuild
361 +++ b/gnome-base/gnome-shell/gnome-shell-9999.ebuild
362 @@ -18,7 +18,7 @@ HOMEPAGE="http://live.gnome.org/GnomeShell"
363
364 LICENSE="GPL-2"
365 SLOT="0"
366 -IUSE="+nm-applet"
367 +IUSE=""
368 if [[ ${PV} = 9999 ]]; then
369 KEYWORDS=""
370 else
371 @@ -36,14 +36,17 @@ COMMON_DEPEND=">=dev-libs/glib-2.25.9:2
372 x11-libs/gdk-pixbuf:2[introspection]
373 >=x11-libs/gtk+-3.0.0:3[introspection]
374 >=media-libs/clutter-1.7.5:1.0[introspection]
375 + >=dev-libs/folks-0.5.2
376 >=gnome-base/gnome-desktop-2.91.2:3
377 >=gnome-base/gsettings-desktop-schemas-2.91.91
378 + gnome-base/libgnome-keyring
379 >=gnome-extra/evolution-data-server-2.91.6
380 >=media-libs/gstreamer-0.10.16:0.10
381 >=media-libs/gst-plugins-base-0.10.16:0.10
382 >=net-im/telepathy-logger-0.2.4[introspection]
383 net-libs/libsoup:2.4[introspection]
384 - >=net-libs/telepathy-glib-0.15.3[introspection]
385 + >=net-libs/telepathy-glib-0.15.5[introspection]
386 + >=net-misc/networkmanager-0.8.999[introspection]
387 >=net-wireless/gnome-bluetooth-3.1.0[introspection]
388 >=sys-auth/polkit-0.100[introspection]
389 >=x11-wm/mutter-3.0.0[introspection]
390 @@ -54,7 +57,7 @@ COMMON_DEPEND=">=dev-libs/glib-2.25.9:2
391 >=dev-libs/libcroco-0.6.2:0.6
392
393 gnome-base/gconf:2[introspection]
394 - gnome-base/gnome-menus
395 + >=gnome-base/gnome-menus-2.29.10:3[introspection]
396 gnome-base/librsvg
397 media-libs/libcanberra
398 media-sound/pulseaudio
399 @@ -70,7 +73,7 @@ COMMON_DEPEND=">=dev-libs/glib-2.25.9:2
400 # 3. gnome-session is needed for gnome-session-quit
401 # 4. Control shell settings
402 # 5. accountsservice is needed for GdmUserManager
403 -# 6. nm-applet is needed for auth prompting and the wireless connection dialog
404 +# 6. caribou needed for on-screen keyboard
405 RDEPEND="${COMMON_DEPEND}
406 >=sys-auth/polkit-0.101[introspection]
407
408 @@ -85,9 +88,11 @@ RDEPEND="${COMMON_DEPEND}
409
410 >=sys-apps/accountsservice-0.6.12
411
412 - nm-applet? (
413 - >=gnome-extra/nm-applet-0.8.999
414 - >=net-misc/networkmanager-0.8.999[introspection] )"
415 + >=app-accessibility/caribou-0.3
416 +
417 + !!<=gnome-extra/gnome-shell-extensions-3.1.4"
418 +# The *presence* of <=gnome-shell-extensions-3.1.4 destabilizes gnome-shell.
419 +# Disabling the extensions is not enough; they must be physically uninstalled.
420 DEPEND="${COMMON_DEPEND}
421 >=sys-devel/gettext-0.17
422 >=dev-util/pkgconfig-0.22
423 @@ -104,6 +109,14 @@ pkg_setup() {
424 --enable-compile-warnings=maximum
425 --disable-schemas-compile
426 --disable-jhbuild-wrapper-script"
427 +
428 + ewarn
429 + ewarn "${PN} tends to crash at login or shortly thereafter if there are any"
430 + ewarn "old shell extensions *installed*, whether systemwide or in a user's"
431 + ewarn "home directory."
432 + ewarn "Disabling the extensions is not enough. You should uninstall the"
433 + ewarn "extensions before upgrading gnome-shell to ${PV}."
434 + ewarn
435 }
436
437 src_install() {