]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: allow fakeroot functionality to be provided by an alternative program
authorJoshua Lock <josh@linux.intel.com>
Fri, 25 Jun 2010 12:52:51 +0000 (13:52 +0100)
committerJoshua Lock <josh@linux.intel.com>
Fri, 25 Jun 2010 13:54:51 +0000 (14:54 +0100)
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>
bitbake/lib/bb/build.py

index 1c713bf829e81836dfaa03523d991d01bee60f3d..43dbfc1363b86de178dc186c74c86660194b926b 100644 (file)
@@ -253,7 +253,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 "