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
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-alt@g.o
From: "Marshall McMullen" <marshall.mcmullen@...>
Subject: Re: Re: gcc: binary path
Date: Fri, 20 Apr 2007 16:25:58 -0500
Yep, that one works better for me, thanks for that! Incidently, I just
added something like this to the top of my ~/.bashrc file:


# What is our prefix?

if [ -z ${IN_EPREFIX} ]; then
    echo "Entering Gentoo Prefix ${EPREFIX}"

    # set the prefix shell in the environment
    export SHELL=${EPREFIX}/bin/${SHELL}
    export IN_EPREFIX=1
    $SHELL -l || echo "Failed to start the Prefix shell, this is
probably because you didn't emerge the shell $SHELL" > /dev/stderr

On 4/20/07, Fabian Groffen <grobian@g.o> wrote:
> 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

Marshall McMullen

In France, there's a popular saying about Linux that essentially translates as:
"Linux? You can get a less powerful system, but it will cost you more."
gentoo-alt@g.o mailing list

Re: Re: gcc: binary path
-- Marshall McMullen
Re: Re: gcc: binary path
-- Fabian Groffen
Re: Re: gcc: binary path
-- Fabian Groffen
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: gcc: binary path
Next by thread:
[prefix] native-cctools minor issues
Previous by date:
Re: Re: gcc: binary path
Next by date:
Re: AIX: libiconv issues still ?

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.