summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
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 f1232292f6..59e8d48b20 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -822,6 +822,7 @@ python do_package_rpm () {
822 targetvendor = bb.data.getVar('TARGET_VENDOR', d, True) 822 targetvendor = bb.data.getVar('TARGET_VENDOR', d, True)
823 pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH}', d) 823 pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH}', d)
824 pkgarch = bb.data.expand('${PACKAGE_ARCH}', d) 824 pkgarch = bb.data.expand('${PACKAGE_ARCH}', d)
825 magicfile = bb.data.expand('${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc', d)
825 bb.mkdirhier(pkgwritedir) 826 bb.mkdirhier(pkgwritedir)
826 os.chmod(pkgwritedir, 0755) 827 os.chmod(pkgwritedir, 0755)
827 828
@@ -834,6 +835,7 @@ python do_package_rpm () {
834 cmd = cmd + " --define '__find_provides " + outprovides + "'" 835 cmd = cmd + " --define '__find_provides " + outprovides + "'"
835 cmd = cmd + " --define '_unpackaged_files_terminate_build 0'" 836 cmd = cmd + " --define '_unpackaged_files_terminate_build 0'"
836 cmd = cmd + " --define 'debug_package %{nil}'" 837 cmd = cmd + " --define 'debug_package %{nil}'"
838 cmd = cmd + " --define '_rpmfc_magic_path " + magicfile + "'"
837 cmd = cmd + " -bb " + outspecfile 839 cmd = cmd + " -bb " + outspecfile
838 840
839 # Build the rpm package! 841 # Build the rpm package!