From a6464f9484f56f596e3215184ad56ac6769ebb0c Mon Sep 17 00:00:00 2001 From: Scott Garman Date: Thu, 19 May 2011 17:26:49 -0700 Subject: 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 --- meta/classes/package_rpm.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/classes/package_rpm.bbclass') 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('') -- cgit v1.2.3