summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLei Liu <layliu@gmail.com>2013-11-21 01:30:58 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-12 17:00:22 +0000
commit25e21e3dca7ada4e092b187acdd13f27bdecd051 (patch)
tree3973257d20e0e4be9c51c13e2c258776be98d968 /meta
parentd42a2c38138442a8177d69c9c8c0ed0e780b2e65 (diff)
downloadpoky-25e21e3dca7ada4e092b187acdd13f27bdecd051.tar.gz
package_rpm.bbclass: Replace -linux-gnun32 with -linux.* in RPM platform file
On a multilib system when one of the multibs has a different OS then other multilibs a failure can occur during the install process because RPM assumes all systems have the same OS. When an n32 platform is selected as an alternative multilib, it shows up as mips64_n32-.*-linux-gnun32 in /etc/rpm/platform. This causes problems when the smart tool tries to add a channel for the multilib. RPM archScore call always returns zero for arch "mips64_n32" - after appending default vendor and os, it finds "mips64_n32-wrs-linux" doesn't match any predefined platforms. Fix this by removing the restriction of -gnun32 suffix in platform file. (From OE-Core master rev: d9489c44ee4f195ae1b09f340b9545cddba58145) (From OE-Core rev: f0118b605b3727b5ca5d560094bb4dd2ff29c310) Signed-off-by: Lei Liu <lei.liu2@windriver.com> Signed-off-by: Jeff Polk <jeff.polk@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package_rpm.bbclass6
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 36bad09ea1..4f4bda32a4 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -296,11 +296,7 @@ package_install_internal_rpm () {
296 if [ ! -z "$INSTALL_PLATFORM_EXTRA_RPM" ]; then 296 if [ ! -z "$INSTALL_PLATFORM_EXTRA_RPM" ]; then
297 for pt in $INSTALL_PLATFORM_EXTRA_RPM ; do 297 for pt in $INSTALL_PLATFORM_EXTRA_RPM ; do
298 channel_priority=$(expr $channel_priority + 5) 298 channel_priority=$(expr $channel_priority + 5)
299 case $pt in 299 pt=$(echo $pt | sed "s,-linux.*$,-linux\.*,")
300 noarch-* | any-* | all-*)
301 pt=$(echo $pt | sed "s,-linux.*$,-linux\.*,")
302 ;;
303 esac
304 echo "$pt" >> ${target_rootfs}/etc/rpm/platform 300 echo "$pt" >> ${target_rootfs}/etc/rpm/platform
305 done 301 done
306 fi 302 fi