From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NcGL8-0002n5-LA for garchives@archives.gentoo.org; Tue, 02 Feb 2010 10:50:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B617DE0AE2; Tue, 2 Feb 2010 10:50:30 +0000 (UTC) Received: from hera.cwi.nl (hera.cwi.nl [192.16.191.8]) by pigeon.gentoo.org (Postfix) with ESMTP id 58819E0AC6 for ; Tue, 2 Feb 2010 10:50:05 +0000 (UTC) Received: from gentoo.org (volund.ins.cwi.nl [192.16.196.166]) by hera.cwi.nl with ESMTP id o12Ao407010017 for ; Tue, 2 Feb 2010 11:50:04 +0100 (CET) Date: Tue, 2 Feb 2010 11:50:04 +0100 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design Message-ID: <20100202105004.GG24425@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <4B66AE86.9090006@gentoo.org> <20100202101832.GA6052@veller.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20100202101832.GA6052@veller.net> User-Agent: Mutt/1.5.20 (Linux 2.6.31.12-174.2.3.fc12.x86_64, VIM - Vi IMproved 7.2) Organization: Gentoo Foundation, Inc. X-Archives-Salt: 19e0977b-03d5-4ecf-b481-65c8bf32ff5b X-Archives-Hash: fc2c0e60629daa460b91e871f050a263 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