]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_deb.bbclass: Place the whole task under fakeroot context to fix build failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Feb 2011 10:53:15 +0000 (10:53 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Feb 2011 10:53:25 +0000 (10:53 +0000)
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>
meta/classes/package_deb.bbclass

index 52bd264ead827279f7ca45bb51aed27918fa1b5b..4faeb4a5f3f1a3c348b8868aa1efbfe47c987f17 100644 (file)
@@ -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 () {