summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-31 17:21:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-31 17:21:44 +0100
commit2b70d0cdd116c2cd4a2c4f4e7aebe0ab545de7da (patch)
treeaa47ed8c395927cd0e9e104399734747acb96668
parent43fe018e3a9a184c6bf491082488576d2a5bac32 (diff)
downloadpoky-2b70d0cdd116c2cd4a2c4f4e7aebe0ab545de7da.tar.gz
bitbake/runqueue.py: Ensure fakeroot env variables make it to the child process
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/runqueue.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 9000c5cafc..95828ca2d6 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1063,6 +1063,7 @@ class RunQueueExecute:
1063 # We need to setup the environment BEFORE the fork, since 1063 # We need to setup the environment BEFORE the fork, since
1064 # a fork() or exec*() activates PSEUDO... 1064 # a fork() or exec*() activates PSEUDO...
1065 1065
1066 env = {}
1066 envbackup = {} 1067 envbackup = {}
1067 1068
1068 taskdep = self.rqdata.dataCache.task_deps[fn] 1069 taskdep = self.rqdata.dataCache.task_deps[fn]
@@ -1071,6 +1072,7 @@ class RunQueueExecute:
1071 for key, value in (var.split('=') for var in envvars): 1072 for key, value in (var.split('=') for var in envvars):
1072 envbackup[key] = os.environ.get(key) 1073 envbackup[key] = os.environ.get(key)
1073 os.environ[key] = value 1074 os.environ[key] = value
1075 env[key] = value
1074 1076
1075 fakedirs = (self.rqdata.dataCache.fakerootdirs[fn] or "").split() 1077 fakedirs = (self.rqdata.dataCache.fakerootdirs[fn] or "").split()
1076 for p in fakedirs: 1078 for p in fakedirs: