Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19782 - /usr/bin/mozilla is bash script, not sh script
Summary: /usr/bin/mozilla is bash script, not sh script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-22 11:43 UTC by Björn Lindström
Modified: 2003-09-26 00:06 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 Björn Lindström 2003-04-22 11:43:30 UTC
/usr/bin/mozilla of the mozilla ebuild has the magic number set to #!/bin/sh,
though it is a bash-script. This means it will not execute properly if /bin/sh
is symlinked to another POSIX-compliant shell.

The fix is simple. Just change the first line to #!/bin/sh
Comment 1 Björn Lindström 2003-04-22 11:44:56 UTC
Oops, that didn't make sense. The first line should of course be changed to #!/bin/bash

Sorry for that.
Comment 2 Grant Goodyear (RETIRED) gentoo-dev 2003-04-24 11:39:22 UTC
Bjorn,
  The moz build process is fairly frightening.  Can you tell if the the
buggy #! line is something we're doing, or something that the Mozilla 
folks have messed up?  (I'm all for fixing it, but if it's an upstream
problem we need to let them know, too.)
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-24 15:06:16 UTC
Its one we install.  Ill fix it when I get the time, but its not critical,
as his change of /bin/sh is the result of this, so pretty local to his case.
Sorry, but I am fairly busy right now, so please do not take offense, etc.
Comment 4 Björn Lindström 2003-04-24 23:39:19 UTC
It's OK with me. I don't even run Mozilla directly normally, but use Galeon, so I didn't notice for a good while.

It doesn't seem that any of the Gentoo developers have been really aware of the whole /bin/bash issue, so a big reason for me to run ash as /bin/sh is to help you hammer that out before the ash ebuild gets out of ~x86.

One thing I though was cool when running Debian that you get the choice to have the package manager link /bin/sh to whatever you want. I would be neat if Gentoo were to do that sometime, too, with a USE-flag, perhaps.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-27 08:41:40 UTC
Fixed on cvs.