summaryrefslogtreecommitdiff
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-23 15:19:06 +0100
committerJoshua Lock <josh@linux.intel.com>2010-07-16 15:40:32 +0100
commit29d5edffb051df34317e588335c6a454bbb42765 (patch)
tree98497001255adc2d789b2cfa3d44736655bf2d08 /meta/classes/package_deb.bbclass
parent1b6535dc2e556987a8e8a45b4ba8a6d5103b1b9d (diff)
downloadopenembedded-core-29d5edffb051df34317e588335c6a454bbb42765.tar.gz
openembedded-core-29d5edffb051df34317e588335c6a454bbb42765.tar.bz2
openembedded-core-29d5edffb051df34317e588335c6a454bbb42765.tar.xz
openembedded-core-29d5edffb051df34317e588335c6a454bbb42765.zip
Use pseudo rather than fakeroot for fake root privileges
Make use of the ability to configure the fake root provider and use Wind River's pseudo utility. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 90ef272c2..38740f1cc 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -240,7 +240,7 @@ python do_package_deb () {
conffiles.close()
os.chdir(basedir)
- ret = os.system("PATH=\"%s\" fakeroot dpkg-deb -b %s %s" % (bb.data.getVar("PATH", localdata, True), root, pkgoutdir))
+ ret = os.system("PATH=\"%s\" %s dpkg-deb -b %s %s" % (bb.data.getVar("PATH", localdata, True), bb.data.getVar("FAKEROOT", localdata, True) or "fakeroot", root, pkgoutdir))
if ret != 0:
bb.utils.unlockfile(lf)
raise bb.build.FuncFailed("dpkg-deb execution failed")
@@ -253,7 +253,7 @@ python () {
if bb.data.getVar('PACKAGES', d, True) != '':
deps = (bb.data.getVarFlag('do_package_write_deb', 'depends', d) or "").split()
deps.append('dpkg-native:do_populate_sysroot')
- deps.append('fakeroot-native:do_populate_sysroot')
+ deps.append('virtual/fakeroot-native:do_populate_sysroot')
bb.data.setVarFlag('do_package_write_deb', 'depends', " ".join(deps), d)
}