summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorjani.uusi-rantala@nokia.com <jani.uusi-rantala@nokia.com>2011-08-11 15:50:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-11 19:13:38 +0100
commitae5c1d6e5d134a00aa8827c70ee934fe163b2c6a (patch)
tree5eb2ff1151f98bc918db2d7cd7e8bd94adc00c1f /meta
parent8d80918995a15663db7cc9c0683d45ee8ba7d45c (diff)
downloadopenembedded-core-ae5c1d6e5d134a00aa8827c70ee934fe163b2c6a.tar.gz
openembedded-core-ae5c1d6e5d134a00aa8827c70ee934fe163b2c6a.tar.bz2
openembedded-core-ae5c1d6e5d134a00aa8827c70ee934fe163b2c6a.zip
Magic file path should be given for rpmbuild
From d54b975506c392cfb59dbb3caf313ac061b6fa01 Mon Sep 17 00:00:00 2001 From: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com> Date: Thu, 11 Aug 2011 18:37:56 +0300 Subject: [PATCH] Magic file path should be given for rpmbuild in _rpmfc_magic_path define so that build system default file is not used by accident. Not doing this caused many packages to fail building in several systems. Fixes [YOCTO #1358] Signed-off-by: Jani Uusi-Rantala <jani.uusi-rantala@nokia.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 f1232292f6..59e8d48b20 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -822,6 +822,7 @@ python do_package_rpm () {
targetvendor = bb.data.getVar('TARGET_VENDOR', d, True)
pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH}', d)
pkgarch = bb.data.expand('${PACKAGE_ARCH}', d)
+ magicfile = bb.data.expand('${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc', d)
bb.mkdirhier(pkgwritedir)
os.chmod(pkgwritedir, 0755)
@@ -834,6 +835,7 @@ python do_package_rpm () {
cmd = cmd + " --define '__find_provides " + outprovides + "'"
cmd = cmd + " --define '_unpackaged_files_terminate_build 0'"
cmd = cmd + " --define 'debug_package %{nil}'"
+ cmd = cmd + " --define '_rpmfc_magic_path " + magicfile + "'"
cmd = cmd + " -bb " + outspecfile
# Build the rpm package!