summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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 /bitbake/lib
parent43fe018e3a9a184c6bf491082488576d2a5bac32 (diff)
downloadast2050-yocto-poky-2b70d0cdd116c2cd4a2c4f4e7aebe0ab545de7da.zip
ast2050-yocto-poky-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>
Diffstat (limited to 'bitbake/lib')
-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 9000c5c..95828ca 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1063,6 +1063,7 @@ class RunQueueExecute:
# We need to setup the environment BEFORE the fork, since
# a fork() or exec*() activates PSEUDO...
+ env = {}
envbackup = {}
taskdep = self.rqdata.dataCache.task_deps[fn]
@@ -1071,6 +1072,7 @@ class RunQueueExecute:
for key, value in (var.split('=') for var in envvars):
envbackup[key] = os.environ.get(key)
os.environ[key] = value
+ env[key] = value
fakedirs = (self.rqdata.dataCache.fakerootdirs[fn] or "").split()
for p in fakedirs:
OpenPOWER on IntegriCloud