Bug#733122: fatal error: Typelib file for namespace 'GnomeBluetoothApplet' (any version) not found

2014-01-12 Thread Michael Biebl
Am 29.12.2013 02:21, schrieb Robert Millan:
 tags 733122 patch
 thanks
 
 Here's a patch.
 
 On Thu, Dec 26, 2013 at 12:32:22AM +0100, Robert Millan wrote:
 Package: gnome-shell-common
 Version: 3.8.4-5
 Severity: grave

 gnome-shell aborts on GNU/kFreeBSD because of Linux-specific settings
 in config.js:

 /usr/share/gnome-shell/js/misc/config.js:const HAVE_BLUETOOTH = 1;
 /usr/share/gnome-shell/js/misc/config.js:const HAVE_NETWORKMANAGER = 1;

 The cause of this problem is that, although config.js is correcly built
 without these options, the binary-all version of this file is used, since
 it is obtained from gnome-shell-common rather than gnome-shell.

 I recommend moving it to gnome-shell as the easiest solution.

If the file is arch-specific, it should not be in /usr/share, but moved
to /usr/lib.

The debian/control is also missing a versioned Breaks.

In summary, the patch is not quite ready yet imho.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#733122: fatal error: Typelib file for namespace 'GnomeBluetoothApplet' (any version) not found

2014-01-12 Thread Michael Biebl
Am 12.01.2014 17:47, schrieb Michael Biebl:
 In summary, the patch is not quite ready yet imho.

Hm, looking more closely, instead of moving the files around, it might
be better to use a try {} catch {} statement like we do for NM.

Robert, can you try the following patch:

--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -930,8 +930,12 @@ const PANEL_ITEM_IMPLEMENTATIONS = {
 };

 if (Config.HAVE_BLUETOOTH)
-PANEL_ITEM_IMPLEMENTATIONS['bluetooth'] =
-imports.ui.status.bluetooth.Indicator;
+try {
+PANEL_ITEM_IMPLEMENTATIONS['bluetooth'] =
+imports.ui.status.bluetooth.Indicator;
+} catch(e) {
+log('Bluetooth is not supported.');
+}

 if (Config.HAVE_NETWORKMANAGER) {
 try {


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#733122: fatal error: Typelib file for namespace 'GnomeBluetoothApplet' (any version) not found

2014-01-12 Thread Robert Millan
On 12/01/2014 17:55, Michael Biebl wrote:
 Am 12.01.2014 17:47, schrieb Michael Biebl:
 In summary, the patch is not quite ready yet imho.
 
 Hm, looking more closely, instead of moving the files around, it might
 be better to use a try {} catch {} statement like we do for NM.
 
 Robert, can you try the following patch:

This successfully takes care of the bluetooth part.

NM, however, is still a problem since not all its instances are protected
by try-catch. I.e. the one in ui/sessionMode.js would need a similar hack.

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#733122: fatal error: Typelib file for namespace 'GnomeBluetoothApplet' (any version) not found

2013-12-28 Thread Robert Millan
tags 733122 patch
thanks

Here's a patch.

On Thu, Dec 26, 2013 at 12:32:22AM +0100, Robert Millan wrote:
 Package: gnome-shell-common
 Version: 3.8.4-5
 Severity: grave
 
 gnome-shell aborts on GNU/kFreeBSD because of Linux-specific settings
 in config.js:
 
 /usr/share/gnome-shell/js/misc/config.js:const HAVE_BLUETOOTH = 1;
 /usr/share/gnome-shell/js/misc/config.js:const HAVE_NETWORKMANAGER = 1;
 
 The cause of this problem is that, although config.js is correcly built
 without these options, the binary-all version of this file is used, since
 it is obtained from gnome-shell-common rather than gnome-shell.
 
 I recommend moving it to gnome-shell as the easiest solution.
 
 -- System Information:
 Debian Release: jessie/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (1, 'experimental')
 Architecture: kfreebsd-amd64 (x86_64)
 Foreign Architectures: kfreebsd-i386
 
 Kernel: kFreeBSD 9.0-2-amd64
 Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash
diff -ur gnome-shell-3.8.4.old/debian/control gnome-shell-3.8.4/debian/control
--- gnome-shell-3.8.4.old/debian/control	2013-12-29 03:01:40.0 +0100
+++ gnome-shell-3.8.4/debian/control	2013-12-29 03:17:00.0 +0100
@@ -98,6 +98,7 @@
 gnome-control-center,
 gnome-user-guide,
 unzip
+Replaces: gnome-shell-common ( 3.8.4-6)
 Breaks: fglrx-driver ( 1:11-10),
 gdm3 ( 3.5.90),
 gnome-control-center ( 1:3.0),
diff -ur gnome-shell-3.8.4.old/debian/control.in gnome-shell-3.8.4/debian/control.in
--- gnome-shell-3.8.4.old/debian/control.in	2013-10-12 16:54:00.0 +0200
+++ gnome-shell-3.8.4/debian/control.in	2013-12-29 03:16:49.0 +0100
@@ -93,6 +93,7 @@
 gnome-control-center,
 gnome-user-guide,
 unzip
+Replaces: gnome-shell-common ( 3.8.4-6)
 Breaks: fglrx-driver ( 1:11-10),
 gdm3 ( 3.5.90),
 gnome-control-center ( 1:3.0),
diff -ur gnome-shell-3.8.4.old/debian/gnome-shell.install gnome-shell-3.8.4/debian/gnome-shell.install
--- gnome-shell-3.8.4.old/debian/gnome-shell.install	2011-12-13 22:49:10.0 +0100
+++ gnome-shell-3.8.4/debian/gnome-shell.install	2013-12-29 02:43:10.0 +0100
@@ -4,3 +4,4 @@
 usr/share/applications
 usr/share/dbus-1
 usr/share/man
+usr/share/gnome-shell/js/misc/config.js
diff -ur gnome-shell-3.8.4.old/debian/rules gnome-shell-3.8.4/debian/rules
--- gnome-shell-3.8.4.old/debian/rules	2013-10-08 17:43:26.0 +0200
+++ gnome-shell-3.8.4/debian/rules	2013-12-29 03:11:29.0 +0100
@@ -26,5 +26,8 @@
 		/usr/lib/gnome-shell
 	find debian/$(cdbs_curpkg) -name '*.la' -exec rm -f '{}' ';'
 
+binary-predeb/gnome-shell-common::
+	rm -f debian/gnome-shell-common/usr/share/gnome-shell/js/misc/config.js
+
 # List any files which are not installed
 common-binary-post-install-arch:: list-missing


Processed: Re: Bug#733122: fatal error: Typelib file for namespace 'GnomeBluetoothApplet' (any version) not found

2013-12-28 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tags 733122 patch
Bug #733122 [gnome-shell-common] fatal error: Typelib file for namespace 
'GnomeBluetoothApplet' (any version) not found
Added tag(s) patch.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
733122: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733122
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#733122: fatal error: Typelib file for namespace 'GnomeBluetoothApplet' (any version) not found

2013-12-25 Thread Robert Millan
Package: gnome-shell-common
Version: 3.8.4-5
Severity: grave

gnome-shell aborts on GNU/kFreeBSD because of Linux-specific settings
in config.js:

/usr/share/gnome-shell/js/misc/config.js:const HAVE_BLUETOOTH = 1;
/usr/share/gnome-shell/js/misc/config.js:const HAVE_NETWORKMANAGER = 1;

The cause of this problem is that, although config.js is correcly built
without these options, the binary-all version of this file is used, since
it is obtained from gnome-shell-common rather than gnome-shell.

I recommend moving it to gnome-shell as the easiest solution.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Foreign Architectures: kfreebsd-i386

Kernel: kFreeBSD 9.0-2-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org