Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-alt
Ok, what about attached patch?
On 20-04-2007 22:38:31 +0200, Fabian Groffen wrote:
> On 20-04-2007 15:21:45 -0500, Marshall McMullen wrote:
> > I know this is an old thread, but what I was trying to say is that
> > this script assumes that the shell used outside of prefix is in the
> > same path as the one inside prefix. Specifically, there is no
> > "/bin/bash" on our AIX 5.2, only /usr/bin/bash. Whereas in the
> > prefix, it's looking for $EPREFIX/bin/bash. This line fouls things
> > up:
> >
> > export SHELL=${EPREFIX}${SHELL}
> >
> > Since my shell is /usr/bin/bash It's going to look for
> > $EPREFIX/usr/bin/bash, which is not installed in $EPREFIX, it's at
> > $EPREFIX/bin/bash.
>
> Ok, you got a valid point there...
--
Fabian Groffen
Gentoo on a different level
|
Index: startprefix.in
===================================================================
--- startprefix.in (revision 5552)
+++ startprefix.in (working copy)
@@ -14,8 +14,12 @@
exit -1
fi
+# not all systems have the same location for shells, however what it
+# boils down to, is that we need to know what the shell is, end then we
+# can find it in the bin dir of our prefix
+SHELL=${SHELL##*/}
# set the prefix shell in the environment
-export SHELL=${EPREFIX}${SHELL}
+export SHELL=${EPREFIX}/bin/${SHELL}
# give a small notice
echo "Entering Gentoo Prefix ${EPREFIX}"
# start the login shell
|
|