1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 05:29:32 +00:00

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>
This commit is contained in:
Scott Garman
2011-05-19 17:26:49 -07:00
committed by Richard Purdie
parent e3f56c05e5
commit c8bd9ff2a4
+2
View File
@@ -484,6 +484,7 @@ python write_specfile () {
else: else:
bb.note("Creating RPM package for %s" % splitname) bb.note("Creating RPM package for %s" % splitname)
spec_files_top.append('%files') spec_files_top.append('%files')
spec_files_top.append('%defattr(-,-,-,-)')
if file_list: if file_list:
spec_files_top.extend(file_list) spec_files_top.extend(file_list)
spec_files_top.append('') spec_files_top.append('')
@@ -570,6 +571,7 @@ python write_specfile () {
else: else:
bb.note("Creating RPM package for %s" % splitname) bb.note("Creating RPM package for %s" % splitname)
spec_files_bottom.append('%%files -n %s' % splitname) spec_files_bottom.append('%%files -n %s' % splitname)
spec_files_bottom.append('%defattr(-,-,-,-)')
if file_list: if file_list:
spec_files_bottom.extend(file_list) spec_files_bottom.extend(file_list)
spec_files_bottom.append('') spec_files_bottom.append('')