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
On 02-02-2010 11:18:32 +0100, Torsten Veller wrote:
> > # Prefix compat > > case ${EAPI:-0} in > > 0|1|2) > > if ! use prefix; then > > EPREFIX= > > ED=${D} > > EROOT=${ROOT} > > [[ ${EROOT} = */ ]] || EROOT+="/" > > fi > > ;; > > esac > > Don't we need this for every eclass using EPREFIX, ED and EROOT > independent of EAPI? > Can't we move this to prefix.eclass and inherit it? Or is the EPREFIX > setting in prefix.eclass already enough?
You cannot set EROOT and ED (reliably) from prefix.eclass, unless you wrap them in phase funcs for which ROOT and D are guaranteed to be defined. OIW: The logic can be moved but a simple "inherit prefix" won't be enough to use EROOT and ED. -- Fabian Groffen Gentoo on a different level