summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2011-05-19 17:26:49 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-06 15:52:18 +0100
commita6464f9484f56f596e3215184ad56ac6769ebb0c (patch)
tree0c621e2ab9a3f68630fab1a711c49ec66757235d /meta
parentada60e40293f78f974f641de5d3356b02bbeae4c (diff)
downloadopenembedded-core-a6464f9484f56f596e3215184ad56ac6769ebb0c.tar.gz
openembedded-core-a6464f9484f56f596e3215184ad56ac6769ebb0c.tar.bz2
openembedded-core-a6464f9484f56f596e3215184ad56ac6769ebb0c.tar.xz
openembedded-core-a6464f9484f56f596e3215184ad56ac6769ebb0c.zip
package_rpm.bbclass: make RPM use on-disk permissions
Instruct RPM to use the on-disk permissions, owners, groups, and directory permissions, instead of defaulting to root:root Code changes suggested by Mark Hatle. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package_rpm.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 3df66cc16..d8e86c5cd 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -484,6 +484,7 @@ python write_specfile () {
else:
bb.note("Creating RPM package for %s" % splitname)
spec_files_top.append('%files')
+ spec_files_top.append('%defattr(-,-,-,-)')
if file_list:
spec_files_top.extend(file_list)
spec_files_top.append('')
@@ -570,6 +571,7 @@ python write_specfile () {
else:
bb.note("Creating RPM package for %s" % splitname)
spec_files_bottom.append('%%files -n %s' % splitname)
+ spec_files_bottom.append('%defattr(-,-,-,-)')
if file_list:
spec_files_bottom.extend(file_list)
spec_files_bottom.append('')