diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-20 20:51:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-11 17:11:18 +0000 |
commit | c241f16670cada2cdf45ecddb4961e16edb83486 (patch) | |
tree | b73f822a181f466ecb01de5c5d91d302a778658c | |
parent | 4fafb6c6d261de78dd1bc3824a1389d191b70321 (diff) | |
download | bitbake-c241f16670cada2cdf45ecddb4961e16edb83486.tar.gz |
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]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/runqueue.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 84b268580..c305631a9 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -997,8 +997,9 @@ class RunQueue: magic = "decafbadbad" if fakeroot: magic = magic + "beef" - fakerootcmd = self.cfgData.getVar("FAKEROOTCMD", True) - fakerootenv = (self.cfgData.getVar("FAKEROOTBASEENV", True) or "").split() + mcdata = self.cooker.databuilder.mcdata[mc] + fakerootcmd = mcdata.getVar("FAKEROOTCMD", True) + fakerootenv = (mcdata.getVar("FAKEROOTBASEENV", True) or "").split() env = os.environ.copy() for key, value in (var.split('=') for var in fakerootenv): env[key] = value |