summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-20 20:51:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-11 17:21:46 +0000
commit30259219ca69fa9322b3777826a371c3419a8d73 (patch)
tree66ca5ebb0a54dd919f0fe6f290a0b22e64f2465d /bitbake
parent86f91f680aed553886d3e586b6bdad9cf7e38ae0 (diff)
downloadpoky-30259219ca69fa9322b3777826a371c3419a8d73.tar.gz
bitbake: runqueue: Ensure pseudo executes from the correct place (use the right datastore with multiconfig)
The location of the fakeroot command and the various environmental values need to be taken from the right multiconfig datastore, not the shared one. This patch ensures the right one is used for cases like a split TMPDIR. [YOCTO #10344] (Bitbake rev: c241f16670cada2cdf45ecddb4961e16edb83486) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 84b268580f..c305631a96 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -997,8 +997,9 @@ class RunQueue:
997 magic = "decafbadbad" 997 magic = "decafbadbad"
998 if fakeroot: 998 if fakeroot:
999 magic = magic + "beef" 999 magic = magic + "beef"
1000 fakerootcmd = self.cfgData.getVar("FAKEROOTCMD", True) 1000 mcdata = self.cooker.databuilder.mcdata[mc]
1001 fakerootenv = (self.cfgData.getVar("FAKEROOTBASEENV", True) or "").split() 1001 fakerootcmd = mcdata.getVar("FAKEROOTCMD", True)
1002 fakerootenv = (mcdata.getVar("FAKEROOTBASEENV", True) or "").split()
1002 env = os.environ.copy() 1003 env = os.environ.copy()
1003 for key, value in (var.split('=') for var in fakerootenv): 1004 for key, value in (var.split('=') for var in fakerootenv):
1004 env[key] = value 1005 env[key] = value