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
Message-Id: 1238056954.6131.200.camel@sapc154.salomon.at
In Reply to: Re: [gentoo-alt] [PREFIX] prefix keywords need to go (?) by Fabian Groffen
1 On Wed, 2009-03-25 at 17:47 +0100, Fabian Groffen wrote:
2
3 > > You can't expect $D to be available in depend phase/source time, so ED
4 > > will be wrong. I think especially Paludis will be strict in this, I was
5 > > told Portage just exports it, but that's luck.
6 > >
7 > > See PMS, page 63. ROOT is actually also a problem since it is defined
8 > > only to be available in pkg_*. That leaves us with EPREFIX.
9 >
10 > Alternative is to get EPREFIX, ED and EROOT in EAPI=3, which is just as
11 > preparation for Prefix. Then with prefix.eclass, we can just require
12 > EAPI=3. That sucks too.
13
14 In EAPI<3 we could go with $ROOT$EPREFIX, $D$EPREFIX,
15 and in EAPI>=3 with $EROOT, $ED ?
16
17 So prefix.eclass would just need to do this in global-scope:
18
19 [[ ${EPREFIX+set} = 'set' ]] || export EPREFIX=''
20
21 /haubi/
22 --
23 Michael Haubenwallner
24 Gentoo on a different level