From 43f0d63237604e85e1af9d289a9aaeac96b86362 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 25 Jun 2010 13:52:51 +0100 Subject: [PATCH] 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 --- bitbake/lib/bb/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): # 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 "