summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-19 19:56:30 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-19 19:56:30 +0000
commit30fd75dcfea411165ee14c3774c163f6af45ca10 (patch)
tree4bff7bed3704a281cc1c3d03f5690449b26c0d8d
parentb68c791bdbb3e8c854e0895369de0615438de59f (diff)
downloadportage-30fd75dcfea411165ee14c3774c163f6af45ca10.tar.gz
portage-30fd75dcfea411165ee14c3774c163f6af45ca10.tar.bz2
portage-30fd75dcfea411165ee14c3774c163f6af45ca10.zip
Make PORTAGE_TMPDIR cannonical for sandbox before it's exported to the ebuild environment for bug #140436.
svn path=/main/trunk/; revision=3952
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index ae3474201..caca14e39 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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"