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