Make PORTAGE_TMPDIR cannonical for sandbox before it's exported to the ebuild environ...
authorZac Medico <zmedico@gentoo.org>
Wed, 19 Jul 2006 19:56:30 +0000 (19:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 19 Jul 2006 19:56:30 +0000 (19:56 -0000)
svn path=/main/trunk/; revision=3952

pym/portage.py

index ae34742015d9bf653a11945a7cf9c7543d5a73b9..caca14e39a55b4c405fa99828e0d22a12eb035b9 100644 (file)
@@ -2484,7 +2484,9 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
        if PORTAGE_BIN_PATH not in mysplit:
                mysettings["PATH"]=PORTAGE_BIN_PATH+":"+mysettings["PATH"]
 
-
+       # Sandbox needs cannonical paths.
+       mysettings["PORTAGE_TMPDIR"] = os.path.realpath(
+               mysettings["PORTAGE_TMPDIR"])
        mysettings["BUILD_PREFIX"] = mysettings["PORTAGE_TMPDIR"]+"/portage"
        mysettings["PKG_TMPDIR"]   = mysettings["PORTAGE_TMPDIR"]+"/binpkgs"