summaryrefslogtreecommitdiffstats
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)
downloadpoky-29d5edffb051df34317e588335c6a454bbb42765.tar.gz
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 90ef272c24..38740f1cc9 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -240,7 +240,7 @@ python do_package_deb () {
240 conffiles.close() 240 conffiles.close()
241 241
242 os.chdir(basedir) 242 os.chdir(basedir)
243 ret = os.system("PATH=\"%s\" fakeroot dpkg-deb -b %s %s" % (bb.data.getVar("PATH", localdata, True), root, pkgoutdir)) 243 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))
244 if ret != 0: 244 if ret != 0:
245 bb.utils.unlockfile(lf) 245 bb.utils.unlockfile(lf)
246 raise bb.build.FuncFailed("dpkg-deb execution failed") 246 raise bb.build.FuncFailed("dpkg-deb execution failed")
@@ -253,7 +253,7 @@ python () {
253 if bb.data.getVar('PACKAGES', d, True) != '': 253 if bb.data.getVar('PACKAGES', d, True) != '':
254 deps = (bb.data.getVarFlag('do_package_write_deb', 'depends', d) or "").split() 254 deps = (bb.data.getVarFlag('do_package_write_deb', 'depends', d) or "").split()
255 deps.append('dpkg-native:do_populate_sysroot') 255 deps.append('dpkg-native:do_populate_sysroot')
256 deps.append('fakeroot-native:do_populate_sysroot') 256 deps.append('virtual/fakeroot-native:do_populate_sysroot')
257 bb.data.setVarFlag('do_package_write_deb', 'depends', " ".join(deps), d) 257 bb.data.setVarFlag('do_package_write_deb', 'depends', " ".join(deps), d)
258} 258}
259 259