Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41143 - net-www/mozilla-firefox-0.8: /usr/bin/firefox not working
Summary: net-www/mozilla-firefox-0.8: /usr/bin/firefox not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
: 42142 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-10 11:39 UTC by José Romildo Malaquias
Modified: 2004-02-21 22:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description José Romildo Malaquias 2004-02-10 11:39:54 UTC
The script /usr/bin/firefox does not correctly handle its arguments. It does able to deal with a call like "firefox -remote 'openURL(http://www.gentoo.org, new-window)", which did work with mozilla-firebird. It just resumes to calling "/usr/lib/MozillaFirefox/mozilla-xremote-client 'openURL(, new-tab)'".

Reproducible: Always
Steps to Reproduce:
1. Emerge net-www/mozilla-firefox-0.8
2. Execute the command:

   firefox -remote 'openURL(http://www.gentoo.org, new-window)'

Actual Results:  
Mozilla Firefox opens with an empty window.

Expected Results:  
Mozilla Firefox should open "http://www.gentoo.org"

Debugging:

$ bash -x firefox -remote 'openURL(http://www.gentoo.org, new-window)'
[...]
+ declare -a 'args=(-remote openURL(http://www.gentoo.org, new-window))'
firefox: array assign: line 22: syntax error near unexpected token `('
firefox: array assign: line 22: `-remote openURL(http://www.gentoo.org, new-window)'
[...]
+ /usr/lib/MozillaFirefox/mozilla-xremote-client 'openURL(, new-tab)'
Comment 1 Florian Engelhardt 2004-02-13 14:16:10 UTC
Exactly the same bug here.
Comment 2 Li Zhengang 2004-02-15 02:01:09 UTC
change the "fbpath" variant to "ffpath" in /usr/bin/firefox
that works for me.
Comment 3 José Romildo Malaquias 2004-02-15 03:10:13 UTC
I do not see how this can help. /usr/bin/firefox has the following lines:

export MOZILLA_FIVE_HOME="/usr/lib/MozillaFirefox"
fbpath=${MOZILLA_FIVE_HOME}

It should make no difference if fbpath is renamed to ffpath.
Comment 4 Thomas Seifert 2004-02-15 04:51:16 UTC
Same here but solved.
emerge net-www/mozilla-firefox 0.8

and /usr/bin/firefox leads only to an error in line 104 (file not found).

Problem was that in the beginning there is:
ffpath=${MOZILLA_FIVE_HOME}

but later on is asked for fbpath.
Replaced all occurences of fbpath with ffpath solved the problem for me.
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-02-17 08:34:26 UTC
Problems:
(1) array assign: line 22: syntax error ... This is actually a bash bug, which I've reported, but also worked around in the script.
(2) inconsistent use of ffpath vs fbpath ... fixed in the script (by Brad, who hardly complained at all that I'd broken it ;-)

These are both fixed in the portage tree.  After syncing, you can copy the script from /usr/portage/net-www/mozilla-firefox/files/firefox to /us/bin and you should be all set.
Comment 6 Aron Griffis (RETIRED) gentoo-dev 2004-02-17 08:34:49 UTC
marking fixed
Comment 7 Brad Laue (RETIRED) gentoo-dev 2004-02-21 22:20:19 UTC
*** Bug 42142 has been marked as a duplicate of this bug. ***