/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
Oops, that didn't make sense. The first line should of course be changed to #!/bin/bash Sorry for that.
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.)
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.
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.
Fixed on cvs.