Gentoo Logo
Gentoo Spaceship




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
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: Re: gcc: binary path
Date: Fri, 20 Apr 2007 23:15:08 +0200
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
Replies:
Re: Re: gcc: binary path
-- Marshall McMullen
References:
Re: Re: gcc: binary path
-- Marshall McMullen
Re: Re: gcc: binary path
-- Fabian Groffen
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: gcc: binary path
Next by thread:
Re: Re: gcc: binary path
Previous by date:
Re: Re: gcc: binary path
Next by date:
Re: Re: gcc: binary path


Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.