In config.environ(), only export ED, EPREFIX, and EROOT to the ebuild
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Dec 2009 06:09:43 +0000 (06:09 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Dec 2009 06:09:43 +0000 (06:09 -0000)
environment starting with EAPI 3 (so people won't write ebuilds that
are incompatible with older package managers).

svn path=/main/trunk/; revision=15032

pym/portage/__init__.py

index 62cdd79117c934ad43b88175c56b497ac902c0ec..8af73b6ffb41123a0753fba1fbbe2a42821e5756 100644 (file)
@@ -3780,6 +3780,12 @@ class config(object):
                if eapi not in ("0", "1", "2", "3"):
                        mydict.pop("AA", None)
 
+               # Prefix variables are supported starting with EAPI 3.
+               if eapi in ("0", "1", "2"):
+                       mydict.pop("ED", None)
+                       mydict.pop("EPREFIX", None)
+                       mydict.pop("EROOT", None)
+
                # sandbox's bashrc sources /etc/profile which unsets ROOTPATH,
                # so we have to back it up and restore it.
                rootpath = mydict.get("ROOTPATH")