summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
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:58:42 +0100
commitc8bd9ff2a42e3e433074dc96fc7f9febcb65d78a (patch)
tree2f91a9244914d647323a4164df13a33e7496eb34 /meta/classes/package_rpm.bbclass
parente3f56c05e5a168075dc0d6a4cd3cfd8239b745ed (diff)
downloadpoky-c8bd9ff2a42e3e433074dc96fc7f9febcb65d78a.tar.gz
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. (From OE-Core rev: a6464f9484f56f596e3215184ad56ac6769ebb0c) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-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 3df66cc16a..d8e86c5cd6 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -484,6 +484,7 @@ python write_specfile () {
484 else: 484 else:
485 bb.note("Creating RPM package for %s" % splitname) 485 bb.note("Creating RPM package for %s" % splitname)
486 spec_files_top.append('%files') 486 spec_files_top.append('%files')
487 spec_files_top.append('%defattr(-,-,-,-)')
487 if file_list: 488 if file_list:
488 spec_files_top.extend(file_list) 489 spec_files_top.extend(file_list)
489 spec_files_top.append('') 490 spec_files_top.append('')
@@ -570,6 +571,7 @@ python write_specfile () {
570 else: 571 else:
571 bb.note("Creating RPM package for %s" % splitname) 572 bb.note("Creating RPM package for %s" % splitname)
572 spec_files_bottom.append('%%files -n %s' % splitname) 573 spec_files_bottom.append('%%files -n %s' % splitname)
574 spec_files_bottom.append('%defattr(-,-,-,-)')
573 if file_list: 575 if file_list:
574 spec_files_bottom.extend(file_list) 576 spec_files_bottom.extend(file_list)
575 spec_files_bottom.append('') 577 spec_files_bottom.append('')