<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>23307</bug_id>
          
          <creation_ts>2010-04-09 05:21:42 +0400</creation_ts>
          <short_desc>/usr/bin/gnome-moz-remote is broken and evil</short_desc>
          <delta_ts>2012-04-23 15:48:11 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gnome-libs</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1071</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Yury Aliaev">mutabor</assigned_to>
          <cc>ktirf</cc>
    
    <cc>mike</cc>
    
    <cc>real.altlinux.org</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108487</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2010-04-09 05:21:42 +0400</bug_when>
    <thetext>gnome-libs-1.4.2-alt9

/usr/bin/gnome-moz-remote is broken (1) because it&apos;s old (trying to call &quot;netscape&quot; or &quot;mozilla&quot;), 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(&quot;/usr/bin/gnome-moz-remote&quot;, [&quot;/usr/bin/gnome-moz-remote&quot;, &quot;--raise&quot;, &quot;http://ya.ru&quot;], [/* 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(&quot;/home/imz/bin/netscape&quot;, [&quot;netscape&quot;, &quot;http://ya.ru&quot;], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve(&quot;/usr/local/bin/netscape&quot;, [&quot;netscape&quot;, &quot;http://ya.ru&quot;], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve(&quot;/usr/bin/netscape&quot;, [&quot;netscape&quot;, &quot;http://ya.ru&quot;], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve(&quot;/bin/netscape&quot;, [&quot;netscape&quot;, &quot;http://ya.ru&quot;], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve(&quot;/usr/bin/netscape&quot;, [&quot;netscape&quot;, &quot;http://ya.ru&quot;], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve(&quot;/usr/games/netscape&quot;, [&quot;netscape&quot;, &quot;http://ya.ru&quot;], [/* 58 vars */]) = -1 ENOENT (No such file or directory)
[pid  6435] execve(&quot;/usr/X11R6/bin/netscape&quot;, [&quot;netscape&quot;, &quot;http://ya.ru&quot;], [/* 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 &quot;browse-url&quot; function from Emacs (emacs22-common-22.2-alt5) uses by default the &quot;browse-url-default-browser&quot; 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 &quot;gnome-moz-remote&quot;:

$ strace -e trace=execve -fF emacs --batch --eval &apos;(browse-url &quot;http://ya.ru&quot;)&apos;
execve(&quot;/usr/bin/emacs&quot;, [&quot;emacs&quot;, &quot;--batch&quot;, &quot;--eval&quot;, &quot;(browse-url \&quot;http://ya.ru\&quot;)&quot;], [/* 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)...
&quot;/usr/share/emacs/site-lisp/cedet/common/&quot; added to `load-path&apos;
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(&quot;/usr/bin/gnome-moz-remote&quot;, [&quot;/usr/bin/gnome-moz-remote&quot;, &quot;--raise&quot;, &quot;http://ya.ru&quot;], [/* 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 &quot;netscape&quot; or &quot;mozilla&quot;, so that it will do what it promises to do. Or it should be reconfigured to use another browser. Or better thrown away.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108522</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Rusakov">ktirf</who>
    <bug_when>2010-04-11 12:31:08 +0400</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>130830</commentid>
    <comment_count>2</comment_count>
    <who name="Yury Aliaev">mutabor</who>
    <bug_when>2012-04-23 15:48:11 +0400</bug_when>
    <thetext>Да выкинуть давно надо gnome-moz-remote. Сомневаюсь, что кто-то им пользуется.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>