Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99486 - firefox-bin 1.0.5 fails to load
Summary: firefox-bin 1.0.5 fails to load
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-18 23:07 UTC by Leonid Podolny
Modified: 2005-07-24 11:40 UTC (History)
0 users

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 Leonid Podolny 2005-07-18 23:07:35 UTC
After I've upgraded to mozilla-firefox-bin-1.0.5-r1 when i type "firefox" at the
prompt i recieve "/usr/bin/firefox: can't find the browser :-(" error message.
After I peeked at /usr/bin/firefox script, I found out that it looks for an
actual executable at /usr/lib/MozillaFirefox and not /opt/mozilla where it
actually resides
Comment 1 Zbigniew Koza 2005-07-19 06:07:43 UTC
I have the same symptoms.

I think the problem is in the script /usr/libexec/mozilla-launcher,
in the function which_browser()

At lines 178-183 the original file reads:

  # Attempt to use -bin version if source version isn't available
  if [[ -n $mozbin && ! -f $mozbin ]]; then
    unset mozbin        # it's bogus anyway
    zero=${zero}-bin
  fi

And the script starts to work when adding a line:

  # Attempt to use -bin version if source version isn't available
  if [[ -n $mozbin && ! -f $mozbin ]]; then
    unset mozbin        # it's bogus anyway
    unset MOZILLA_FIVE_HOME # <--- my modification
    zero=${zero}-bin
  fi

The additional line unsets MOZILLA_FIVE_HOME
This is necessary a few lines below, when testing variable $zero:

  case $zero in
    *fox-bin)
      : ${MOZILLA_FIVE_HOME:="/opt/firefox"}

Now, the man page for bash states that the := operator in ${ } construct
assignes the rhs value to the lhs argument only when lhs is unset.
This explains why the current version of the script cannot work 
and why my modification should fix the problem.

I hope this will help 
(actually I know nothing about bash sripting, just wanted to find out if I can 
trace down the bug. I can't even provide a patch file, as I experimented 
on the original script, which is now gone...)

Z. Koza
Comment 2 Jory A. Pratt 2005-07-20 22:22:03 UTC
Leonid can you please test lastest mozilla-launcher ebuild agriffis has patched
and release 1.37 into ~arch for testing. Thank
Comment 3 Leonid Podolny 2005-07-20 22:52:45 UTC
Jory, it works perfectly. When do you think it will be in x86?
Comment 4 Jory A. Pratt 2005-07-20 23:11:39 UTC
I do not want to jump the gun as soon as agriffis is comfortable with the
feedback it will be bumped.
Comment 5 Leonid Podolny 2005-07-21 00:48:52 UTC
Cool. Thanks, guys.
Comment 6 Jory A. Pratt 2005-07-24 11:40:57 UTC
mozilla-launcher 1.41 stable on all arches