summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Coulon <fabrice.coulon@axis.com>2015-03-12 15:36:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-20 10:59:05 +0000
commit1a50cc5aeafff0d8ee6c4a41dd2770ecd31455f0 (patch)
treefb82f6cc6caddde75bbaf4945bdcb45193292d79
parentc25474be02a562585ded66a6d538aee21056f628 (diff)
downloadopenembedded-core-1a50cc5aeafff0d8ee6c4a41dd2770ecd31455f0.tar.gz
openembedded-core-1a50cc5aeafff0d8ee6c4a41dd2770ecd31455f0.tar.bz2
openembedded-core-1a50cc5aeafff0d8ee6c4a41dd2770ecd31455f0.zip
meta/lib/oe/package.py: fix files ownership in packages
This fix solves the problem with the ownership of files in packages. The do_install task was producing correct and expected output but when the files were being put in, e.g. a rpm package, the ownership could be different than that in the do_install task. [YOCTO #7428] Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Fabrice Coulon <fabrice.coulon@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/lib/oe/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index 7c728fcd23..8bc56c6e88 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -31,7 +31,7 @@ def runstrip(arg):
extraflags = "--remove-section=.comment --remove-section=.note"
# Use mv to break hardlinks
- stripcmd = "'%s' %s '%s' -o '%s.tmp' && mv '%s.tmp' '%s'" % (strip, extraflags, file, file, file, file)
+ stripcmd = "'%s' %s '%s' -o '%s.tmp' && chown --reference='%s' '%s.tmp' && mv '%s.tmp' '%s'" % (strip, extraflags, file, file, file, file, file, file)
bb.debug(1, "runstrip: %s" % stripcmd)
ret = subprocess.call(stripcmd, shell=True)