doebuild: export EPREFIX to the environment as is
authorFabian Groffen <grobian@gentoo.org>
Thu, 3 Feb 2011 11:49:49 +0000 (12:49 +0100)
committerFabian Groffen <grobian@gentoo.org>
Thu, 3 Feb 2011 11:49:49 +0000 (12:49 +0100)
Stripping a trailing slash at this point is kind of pointless, since
EPREFIX is used all over the code base without this stripping.  Either
configure, or portage.const_autotool should ensure it doesn't end with a
slash.  Removing slash stripping here, incidently helps people who use
Prefix Portage without an offset, and as hack use '/' as offset there.

pym/portage/package/ebuild/doebuild.py

index 23b2fa8b2607691de6e16f67723a7f69b88f102e..3fbbae0bc1d57d37379e7752d9b35eeef440619a 100644 (file)
@@ -195,7 +195,7 @@ def doebuild_environment(myebuild, mydo, myroot=None, settings=None,
                # due to how it's coded... Don't overwrite this so we can use it.
                mysettings["PORTAGE_DEBUG"] = "1"
 
-       mysettings["EPREFIX"]  = EPREFIX.rstrip(os.path.sep)
+       mysettings["EPREFIX"]  = EPREFIX
        mysettings["EBUILD"]   = ebuild_path
        mysettings["O"]        = pkg_dir
        mysettings.configdict["pkg"]["CATEGORY"] = cat