Gentoo Archives: gentoo-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design
Date: Tue, 02 Feb 2010 10:50:38
Message-Id: 20100202105004.GG24425@gentoo.org
In Reply to: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design by Torsten Veller
1 On 02-02-2010 11:18:32 +0100, Torsten Veller wrote:
2 > > # Prefix compat
3 > > case ${EAPI:-0} in
4 > > 0|1|2)
5 > > if ! use prefix; then
6 > > EPREFIX=
7 > > ED=${D}
8 > > EROOT=${ROOT}
9 > > [[ ${EROOT} = */ ]] || EROOT+="/"
10 > > fi
11 > > ;;
12 > > esac
13 >
14 > Don't we need this for every eclass using EPREFIX, ED and EROOT
15 > independent of EAPI?
16 > Can't we move this to prefix.eclass and inherit it? Or is the EPREFIX
17 > setting in prefix.eclass already enough?
18
19 You cannot set EROOT and ED (reliably) from prefix.eclass, unless you
20 wrap them in phase funcs for which ROOT and D are guaranteed to be
21 defined. OIW: The logic can be moved but a simple "inherit prefix"
22 won't be enough to use EROOT and ED.
23
24
25 --
26 Fabian Groffen
27 Gentoo on a different level