commit:     b78f7e2d073c2e7d8e4b75f0d955ebc51be20764
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  4 02:09:36 2014 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Thu Dec  4 02:09:36 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=dev/heroxbd.git;a=commit;h=b78f7e2d

toolchain.eclass: compatible variables ED and EROOT for EAPI 0,1,2.

---
 eclass/toolchain.eclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 73421f7..3e422c6 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -49,6 +49,11 @@ is_crosscompile() {
        [[ ${CHOST} != ${CTARGET} ]]
 }
 
+if [[ ${EAPI:-0} == [012] ]] ; then
+        : ${ED:=${D}}
+        : ${EROOT:=${ROOT}}
+fi
+
 # General purpose version check.  Without a second arg matches up to minor 
version (x.x.x)
 tc_version_is_at_least() {
        version_is_at_least "$1" "${2:-${GCC_RELEASE_VER}}"

Reply via email to