summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-25 13:52:51 +0100
committerJoshua Lock <josh@linux.intel.com>2010-06-25 14:54:51 +0100
commit43f0d63237604e85e1af9d289a9aaeac96b86362 (patch)
tree3f280dd046b25e52133052af77a9128b77ce3b63 /bitbake
parent4f14e0a240f5d6e4eeecdb4bbbae7205e2070cab (diff)
downloadpoky-43f0d63237604e85e1af9d289a9aaeac96b86362.tar.gz
bitbake: allow fakeroot functionality to be provided by an alternative program
If the variable FAKEROOT is set its value will be used, otherwise we default to fakeroot. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 1c713bf829..43dbfc1363 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -253,7 +253,7 @@ def exec_func_shell(func, d, runfile, logfile, flags):
253 253
254 # execute function 254 # execute function
255 if flags['fakeroot']: 255 if flags['fakeroot']:
256 maybe_fakeroot = "PATH=\"%s\" fakeroot " % bb.data.getVar("PATH", d, 1) 256 maybe_fakeroot = "PATH=\"%s\" %s " % (bb.data.getVar("PATH", d, 1), bb.data.getVar("FAKEROOT", d, 1) or "fakeroot")
257 else: 257 else:
258 maybe_fakeroot = '' 258 maybe_fakeroot = ''
259 lang_environment = "LC_ALL=C " 259 lang_environment = "LC_ALL=C "