aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-25 13:52:51 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-01 22:28:55 +0100
commit9c4527fe66690999a6b56efaa56b54a92cd279bf (patch)
treef2175e9f101b3ce254bf47568ac42b3cdd3fb19e
parent3e808d6a5cdb78482f71c91a3d81d64262b005d6 (diff)
downloadbitbake-9c4527fe66690999a6b56efaa56b54a92cd279bf.tar.gz
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. (From Poky rev: 43f0d63237604e85e1af9d289a9aaeac96b86362) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 9f22b524a..1f4107fb6 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -251,7 +251,7 @@ def exec_func_shell(func, d, runfile, logfile, flags):
# execute function
if flags['fakeroot']:
- maybe_fakeroot = "PATH=\"%s\" fakeroot " % bb.data.getVar("PATH", d, 1)
+ maybe_fakeroot = "PATH=\"%s\" %s " % (bb.data.getVar("PATH", d, 1), bb.data.getVar("FAKEROOT", d, 1) or "fakeroot")
else:
maybe_fakeroot = ''
lang_environment = "LC_ALL=C "