Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [PREFIX] prefix keywords need to go (?)
Date: Thu, 26 Mar 2009 08:43:42
In Reply to: Re: [gentoo-alt] [PREFIX] prefix keywords need to go (?) by Fabian Groffen
On Wed, 2009-03-25 at 17:47 +0100, Fabian Groffen wrote:

> > You can't expect $D to be available in depend phase/source time, so ED > > will be wrong. I think especially Paludis will be strict in this, I was > > told Portage just exports it, but that's luck. > > > > See PMS, page 63. ROOT is actually also a problem since it is defined > > only to be available in pkg_*. That leaves us with EPREFIX. > > Alternative is to get EPREFIX, ED and EROOT in EAPI=3, which is just as > preparation for Prefix. Then with prefix.eclass, we can just require > EAPI=3. That sucks too.
In EAPI<3 we could go with $ROOT$EPREFIX, $D$EPREFIX, and in EAPI>=3 with $EROOT, $ED ? So prefix.eclass would just need to do this in global-scope: [[ ${EPREFIX+set} = 'set' ]] || export EPREFIX='' /haubi/ -- Michael Haubenwallner Gentoo on a different level