summaryrefslogtreecommitdiff
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-22 10:53:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-22 10:53:25 +0000
commit9a28ad6b0291e0d4c4aae6ba25a9f7752d5c2e11 (patch)
tree84d75faea46e044ba2c44855175879dd7fd5c3a0 /meta/classes/package_deb.bbclass
parentb43af1811a80a57634127fdc66b08dfeb66e1466 (diff)
downloadopenembedded-core-9a28ad6b0291e0d4c4aae6ba25a9f7752d5c2e11.tar.gz
openembedded-core-9a28ad6b0291e0d4c4aae6ba25a9f7752d5c2e11.tar.bz2
openembedded-core-9a28ad6b0291e0d4c4aae6ba25a9f7752d5c2e11.tar.xz
openembedded-core-9a28ad6b0291e0d4c4aae6ba25a9f7752d5c2e11.zip
package_deb.bbclass: Place the whole task under fakeroot context to fix build failures
If we don't do this, the ipk/rpm backends can create temporary files and then when the deb package creates new files, those inodes can be reused and permission confusion results. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 52bd264ea..4faeb4a5f 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -394,7 +394,7 @@ python do_package_deb () {
conffiles.close()
os.chdir(basedir)
- 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))
+ ret = os.system("PATH=\"%s\" dpkg-deb -b %s %s" % (bb.data.getVar("PATH", localdata, True), root, pkgoutdir))
if ret != 0:
bb.utils.prunedir(controldir)
bb.utils.unlockfile(lf)
@@ -420,6 +420,8 @@ python () {
deps.append('dpkg-native:do_populate_sysroot')
deps.append('virtual/fakeroot-native:do_populate_sysroot')
bb.data.setVarFlag('do_package_write_deb', 'depends', " ".join(deps), d)
+ bb.data.setVarFlag('do_package_write_deb', 'fakeroot', "1", d)
+ bb.data.setVarFlag('do_package_write_deb_setscene', 'fakeroot', "1", d)
}
python do_package_write_deb () {