From: Fabian Groffen Date: Thu, 3 Feb 2011 11:49:49 +0000 (+0100) Subject: doebuild: export EPREFIX to the environment as is X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d556662cf256055b0b5266681fb57ae3f842e212;p=portage.git doebuild: export EPREFIX to the environment as is 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. --- diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index 23b2fa8b2..3fbbae0bc 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -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