Patchwork [1/1] LSB_Test.sh: update rpm platform file when enable multilib

login
register
mail settings
Submitter Kang Kai
Date Nov. 19, 2013, 8:08 a.m.
Message ID <8b288c53743a6cf409ae1c94f6e931cc405dd984.1384848334.git.kai.kang@windriver.com>
Download mbox | patch
Permalink /patch/61945/
State New
Headers show

Comments

Kang Kai - Nov. 19, 2013, 8:08 a.m.
When enable multilib for x86_64, lsb rpm packages both for archs x86_64
and i486 will be installed. But i486 target packages could not be
installed that no such pattern in rpm platform file. Update platform
file to enable install i486 rpm packages.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch

diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index af1d61c..19116e2 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -277,6 +277,14 @@  if ! `grep -F -q "noarch-suse" ${PLATFORM_FILE}`; then
 		echo "i486-noarch" >> ${PLATFORM_FILE}
 		echo "i486-pc" >> ${PLATFORM_FILE}
 		echo "noarch-suse" >> ${PLATFORM_FILE}
+	elif [ ${ARCH} == x86_64 ]; then
+		echo "i486-suse" >> ${PLATFORM_FILE}
+		echo "i486-noarch" >> ${PLATFORM_FILE}
+		echo "i486-pc" >> ${PLATFORM_FILE}
+		echo "noarch-suse" >> ${PLATFORM_FILE}
+		echo "${ARCH}-suse" >> ${PLATFORM_FILE}
+		echo "${ARCH}-noarch" >> ${PLATFORM_FILE}
+		echo "${ARCH}-pc" >> ${PLATFORM_FILE}
 	else
 		echo "${ARCH}-suse" >> ${PLATFORM_FILE}
 		echo "${ARCH}-noarch" >> ${PLATFORM_FILE}