Patchwork classes/package_tar: fix file ownership within tarballs

login
register
mail settings
Submitter Paul Eggleton
Date June 19, 2013, 1:15 p.m.
Message ID <1371647752-29176-1-git-send-email-paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/52003/
State Accepted
Commit a31c7ec56568e5dafc2f45ba5675367ddceb0e3e
Headers show

Comments

Paul Eggleton - June 19, 2013, 1:15 p.m.
The fakeroot flag wasn't correctly set leading to files within the
output tarballs having uid/gid values from the build host instead of the
desired target permissions.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/package_tar.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass
index c4bb62f..2d6fc8f 100644
--- a/meta/classes/package_tar.bbclass
+++ b/meta/classes/package_tar.bbclass
@@ -56,7 +56,7 @@  python () {
         deps.append('tar-native:do_populate_sysroot')
         deps.append('virtual/fakeroot-native:do_populate_sysroot')
         d.setVarFlag('do_package_write_tar', 'depends', " ".join(deps))
-        d.setVarFlag('do_package_write_ipk', 'fakeroot', "1")
+        d.setVarFlag('do_package_write_tar', 'fakeroot', "1")
 }