diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-12-22 19:01:35 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-23 17:32:09 +0000 |
commit | 93c0e9915b5c9bf8b0877c76f89de721adfbfd66 (patch) | |
tree | 8f8d191f12acadf450e4087eafe0a6a12b658490 /meta/classes/package_rpm.bbclass | |
parent | 72dc73f5a647ccd38145fd888c109a144f202963 (diff) | |
download | openembedded-core-93c0e9915b5c9bf8b0877c76f89de721adfbfd66.tar.gz openembedded-core-93c0e9915b5c9bf8b0877c76f89de721adfbfd66.tar.bz2 openembedded-core-93c0e9915b5c9bf8b0877c76f89de721adfbfd66.tar.xz openembedded-core-93c0e9915b5c9bf8b0877c76f89de721adfbfd66.zip |
package.bbclass: Adjust RPM call to use dynamic location for magic files
The magic file could be installed somewhere else if the system native prefix
settings are changed. Adjust the packaging files to compensate for this.
Signed-off-by: Mark Hatle <mark.hatle@windriver.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.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 93a4c3123..469526be7 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -941,7 +941,7 @@ python do_package_rpm () { d.setVar('PACKAGE_ARCH_EXTEND', package_arch) pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH_EXTEND}', d) pkgarch = bb.data.expand('${PACKAGE_ARCH_EXTEND}${TARGET_VENDOR}-${TARGET_OS}', d) - magicfile = bb.data.expand('${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc', d) + magicfile = bb.data.expand('${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc', d) bb.mkdirhier(pkgwritedir) os.chmod(pkgwritedir, 0755) |