ports/73340: www/firefox install loops on invalid xinit invocation

Clemens Fischer ino-qc at spotteswoode.de.eu.org
Sat Nov 6 07:22:36 PST 2004


* 2004-11-02 Joe Marcus Clarke:

> | ,----
> | | 0 p2 # xinit /usr/X11R6/lib/firefox/lib/firefox-1.0/run-mozilla.sh \
> | | /usr/X11R6/lib/firefox/lib/firefox-1.0/firefox-bin
> -install-global-themes -- \
> | | /usr/X11R6/bin/Xvfb :1001
> | |
> | | cat: /root/.Xauthority: No such file or directory
> | | load: 0.12  cmd: xinit 44869 [wait] 0.00u 0.01s 0% 1304k
> | | load: 0.03  cmd: xinit 44869 [wait] 0.00u 0.01s 0% 1304k
> | `----
> |
> | this one doesn't finish.  computer idles for about fifteen minutes
> now.  what
> | is it supposed to do, and how do i check the steps manually?
>
> It's supposed to initialize the global extensions and themes datastore.  ~
> Try aborting this, then run it again.

no.  it can't be "aborted" in the packages pkg-install, because signals are
off and all output goes to dev/null!  the offending lines are:

8<-- cut-from-here -->8
su - root -c "%%X11BASE%%/bin/xinit %%MOZDIR%%/run-mozilla.sh ${FIREFOX} -install-global-extension -- %%X11BASE%%/bin/Xvfb
:1001" > /dev/null 2>&1
su - root -c "%%X11BASE%%/bin/xinit %%MOZDIR%%/run-mozilla.sh ${FIREFOX} -install-global-theme -- %%X11BASE%%/bin/Xvfb :100
1" > /dev/null 2>&1
8<-- cut-upto-here -->8

why not change them to:

8<-- cut-from-here -->8
su - root -c "PATH=$PATH %%X11BASE%%/bin/xinit %%MOZDIR%%/run-mozilla.sh ${FIREFOX} -install-global-extension -- %%X11BASE%%/bin/Xvfb
:1001" > /dev/null 2>&1
su - root -c "PATH=$PATH %%X11BASE%%/bin/xinit %%MOZDIR%%/run-mozilla.sh ${FIREFOX} -install-global-theme -- %%X11BASE%%/bin/Xvfb :100
1" > /dev/null 2>&1
8<-- cut-upto-here -->8

i think this is the direction to go, because it will allow the procedure to
find "non-standard" shells.  i provided "local/bin/bash" for roots account.
the idea came to me as i found a workaround for the queer situation:  when the
shell idled, i typed "true", followed by "^D" (CTRL-D), and the script seemed
to finish all right.  i got a working copy of firefox!

  clemens


More information about the freebsd-gnome mailing list