Bug 23307

Summary: /usr/bin/gnome-moz-remote is broken and evil
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: gnome-libsAssignee: Yury Aliaev <mutabor>
Status: ASSIGNED --- QA Contact: qa-sisyphus
Severity: major    
Priority: P3 CC: ktirf, mike, real.altlinux.org
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 1071    

Description Ivan Zakharyaschev 2010-04-09 05:21:42 MSD
gnome-libs-1.4.2-alt9

/usr/bin/gnome-moz-remote is broken (1) because it's old (trying to call "netscape" or "mozilla"), and in its current state, it is evil (2) because it confuses other callers which assume that if /usr/bin/gnome-moz-remote exists, it does invoke a browser.

Perhaps, it could be removed completely? -- who cares given it is anyway broken.

(1) Brokenness:

$ strace -fF -e trace=execve /usr/bin/gnome-moz-remote --raise http://ya.ru
execve("/usr/bin/gnome-moz-remote", ["/usr/bin/gnome-moz-remote", "--raise", "http://ya.ru"], [/* 58 vars */]) = 0
Process 6434 attached (waiting for parent)
Process 6434 resumed (parent 6433 ready)
Process 6435 attached (waiting for parent)
Process 6435 resumed (parent 6434 ready)
[pid  6435] execve("/home/imz/bin/netscape", ["netscape", "http://ya.ru"], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve("/usr/local/bin/netscape", ["netscape", "http://ya.ru"], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve("/usr/bin/netscape", ["netscape", "http://ya.ru"], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve("/bin/netscape", ["netscape", "http://ya.ru"], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve("/usr/bin/netscape", ["netscape", "http://ya.ru"], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve("/usr/games/netscape", ["netscape", "http://ya.ru"], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve("/usr/X11R6/bin/netscape", ["netscape", "http://ya.ru"], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
Process 6435 detached
[pid  6434] --- SIGCHLD (Child exited) @ 0 (0) ---
Process 6434 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
Process 6433 detached
$ 

(2) Evilness: the "browse-url" function from Emacs (emacs22-common-22.2-alt5) uses by default the "browse-url-default-browser" function (although that is not consisten with the distro -- https://bugzilla.altlinux.org/show_bug.cgi?id=1071 ), which calls the first available browser command from its list, and the first one in its list is "gnome-moz-remote":

$ strace -e trace=execve -fF emacs --batch --eval '(browse-url "http://ya.ru")'
execve("/usr/bin/emacs", ["emacs", "--batch", "--eval", "(browse-url \"http://ya.ru\")"], [/* 58 vars */]) = 0
Loading /etc/emacs/site-start.d/00macros.el (source)...
Loading /etc/emacs/site-start.d/10initial-features.el (source)...
Loading /etc/emacs/site-start.d/10keys.el (source)...
Loading /etc/emacs/site-start.d/10mouse.el (source)...
Loading /etc/emacs/site-start.d/10selection.el (source)...
Loading /etc/emacs/site-start.d/20elib.el (source)...
Loading /etc/emacs/site-start.d/21cedet.el (source)...
Loading /usr/share/emacs/site-lisp/cedet/common/cedet.el (source)...
"/usr/share/emacs/site-lisp/cedet/common/" added to `load-path'
Setting up cedet...
Setting up cedet...done
Setting up cogre...
Setting up cogre...done
Setting up ede...
Setting up ede...done
Setting up eieio...
Setting up eieio...done
Setting up semantic...
Setting up semantic...done
Setting up speedbar...
Setting up speedbar...done
Setting up cedet-contrib...
Setting up cedet-contrib...done
Loading /etc/emacs/site-start.d/apel.el (source)...
Loading /etc/emacs/site-start.d/auctex.el (source)...
Loading /home/imz/.emacs.d/site-start.d/compile-borlandish.el (source)...
Loading /etc/emacs/site-start.d/dvips.el (source)...
Loading /etc/emacs/site-start.d/ecb.el (source)...
Loading /etc/emacs/site-start.d/elscreen.el (source)...
Loading /etc/emacs/site-start.d/gettext.el (source)...
Loading /etc/emacs/site-start.d/git.el (source)...
Loading /etc/emacs/site-start.d/psgml.el (source)...
Loading /usr/share/emacs/site-lisp/psgml/custom-psgml/docbook.el (source)...
Loading /usr/share/emacs/site-lisp/psgml/custom-psgml/entities-ks.el (source)...
Loading /usr/share/emacs/site-lisp/psgml/custom-psgml/faces.el (source)...
Loading /usr/share/emacs/site-lisp/psgml/custom-psgml/misc.el (source)...
Loading /etc/emacs/site-start.d/python.el (source)...
Loading /etc/emacs/site-start.d/rus-win-keyboard.el (source)...
Process 29106 attached
[pid 29106] execve("/usr/bin/gnome-moz-remote", ["/usr/bin/gnome-moz-remote", "--raise", "http://ya.ru"], [/* 58 vars */]) = 0
Process 29107 attached
Process 29108 attached
Process 29105 detached
[pid 29108] --- SIGHUP (Hangup) @ 0 (0) ---
Process 29108 detached
[pid 29107] --- SIGHUP (Hangup) @ 0 (0) ---
Process 29107 detached
--- SIGHUP (Hangup) @ 0 (0) ---
Process 29106 detached
$ 


So, if /usr/bin/gnome-moz-remote remains in the distro, it should at least have strict dependencies on either "netscape" or "mozilla", so that it will do what it promises to do. Or it should be reconfigured to use another browser. Or better thrown away.
Comment 1 Alexey Rusakov 2010-04-11 12:31:08 MSD
gnome-libs has been broken in many other ways long ago and has to be removed from Sisyphus altogether. Care to package it without gnome-moz-remote yourself?
Comment 2 Yury Aliaev 2012-04-23 15:48:11 MSK
Да выкинуть давно надо gnome-moz-remote. Сомневаюсь, что кто-то им пользуется.