Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/5] V3: Update for lsb and lsbtest
@ 2013-12-16  3:32 Kai Kang
  2013-12-16  3:32 ` [PATCH 1/5] lsb: update directory of install_initd and remove_initd Kai Kang
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Kai Kang @ 2013-12-16  3:32 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

V3:
* fix installed but unshipped issue for lib64-lsb

V2:
* This version of lsb patch creates necessary directory otherwise do_install fails.
* Some update for package lsbtest.

The following changes since commit 36fe775672d66e3d83575eb532eb6ab5109343b4:

  useradd-example: add example for setting clear text password (2013-12-14 09:16:38 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib kangkai/lsb
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/?h=kangkai%2Flsb

Kai Kang (5):
  lsb: update directory of install_initd and remove_initd
  LSB_Test.sh: update rpm platform file when enable multilib
  LSB_Test.sh: check ldconfig before update cache
  LSB_Test.sh: update locales
  lsbtest: add ppc64 support

 meta/recipes-extended/lsb/lsb_4.1.bb          |  8 +++++---
 meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 20 ++++++++++++++++++--
 meta/recipes-extended/lsb/lsbtest_1.0.bb      | 12 ++++++++++++
 3 files changed, 35 insertions(+), 5 deletions(-)

-- 
1.8.1.2



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/5] lsb: update directory of install_initd and remove_initd
  2013-12-16  3:32 [PATCH 0/5] V3: Update for lsb and lsbtest Kai Kang
@ 2013-12-16  3:32 ` Kai Kang
  2013-12-16  3:32 ` [PATCH 2/5] LSB_Test.sh: update rpm platform file when enable multilib Kai Kang
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kai Kang @ 2013-12-16  3:32 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

According to LSB specification:

http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/installinitd.html
http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/removeinitd.html

commands install_initd and remove_initd should under directory /usr/lib/lsb/.

lsb recipe creates these commands under directory ${libdir} which may
expand to /usr/lib64 when multilib is enabled on qemux86-64. That will
cause LSB command check for install_initd and remove_initd fail. So
correct it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-extended/lsb/lsb_4.1.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb
index c80ff59..ecb4dcc 100644
--- a/meta/recipes-extended/lsb/lsb_4.1.bb
+++ b/meta/recipes-extended/lsb/lsb_4.1.bb
@@ -78,9 +78,10 @@ do_install_append(){
        install -m 0755 ${WORKDIR}/init-functions ${D}/${baselib}/lsb
 
        # creat links for LSB test
-       install -d ${D}/${libdir}/lsb
-       ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd
-       ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd
+       install -d ${D}/usr/lib/lsb
+       ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/install_initd
+       ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/remove_initd
+       install -d ${D}/${libdir}
        ln -sf ${sbindir}/sendmail ${D}/${libdir}/sendmail
 
        if [ "${TARGET_ARCH}" = "x86_64" ];then
@@ -114,6 +115,7 @@ do_install_append(){
        fi
 }
 FILES_${PN} += "/lib64 \
+		/usr/lib/lsb \
                 ${base_libdir}/lsb/* \
 		${libdir}/sendmail \
                "
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/5] LSB_Test.sh: update rpm platform file when enable multilib
  2013-12-16  3:32 [PATCH 0/5] V3: Update for lsb and lsbtest Kai Kang
  2013-12-16  3:32 ` [PATCH 1/5] lsb: update directory of install_initd and remove_initd Kai Kang
@ 2013-12-16  3:32 ` Kai Kang
  2013-12-16  3:32 ` [PATCH 3/5] LSB_Test.sh: check ldconfig before update cache Kai Kang
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kai Kang @ 2013-12-16  3:32 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

When enable multilib for x86_64, lsb rpm packages for archs x86_64 and
i486 will be installed. But i486 target packages fail to be installed
that no such pattern in rpm platform file. Update platform file to
enable install i486 rpm packages as well.

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

diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index af1d61c..db4e749 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -277,6 +277,15 @@ 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 "i486-.*-linux.*" >> ${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}
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/5] LSB_Test.sh: check ldconfig before update cache
  2013-12-16  3:32 [PATCH 0/5] V3: Update for lsb and lsbtest Kai Kang
  2013-12-16  3:32 ` [PATCH 1/5] lsb: update directory of install_initd and remove_initd Kai Kang
  2013-12-16  3:32 ` [PATCH 2/5] LSB_Test.sh: update rpm platform file when enable multilib Kai Kang
@ 2013-12-16  3:32 ` Kai Kang
  2013-12-16  3:33 ` [PATCH 4/5] LSB_Test.sh: update locales Kai Kang
  2013-12-16  3:33 ` [PATCH 5/5] lsbtest: add ppc64 support Kai Kang
  4 siblings, 0 replies; 6+ messages in thread
From: Kai Kang @ 2013-12-16  3:32 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

LSB_Test.sh run ldconfig to update library cache. If command ldconfig
doesn't exists, test will fail.

Check whether ldconfig exists. If not, don't update library cache.

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

diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index db4e749..2004157 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -444,11 +444,13 @@ else
 	echo "Fail to creat Dirnames file"
 fi
 
+[ -x /sbin/ldconfig ] && {
 echo ""
 echo "---------------------------------"
 echo "Update cache"
-ldconfig
+/sbin/ldconfig
 check;
+}
 
 # Check loop device
 if [ ! -b /dev/loop0 ]
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/5] LSB_Test.sh: update locales
  2013-12-16  3:32 [PATCH 0/5] V3: Update for lsb and lsbtest Kai Kang
                   ` (2 preceding siblings ...)
  2013-12-16  3:32 ` [PATCH 3/5] LSB_Test.sh: check ldconfig before update cache Kai Kang
@ 2013-12-16  3:33 ` Kai Kang
  2013-12-16  3:33 ` [PATCH 5/5] lsbtest: add ppc64 support Kai Kang
  4 siblings, 0 replies; 6+ messages in thread
From: Kai Kang @ 2013-12-16  3:33 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

Add missing localedef statements to the LSB_Test.sh which are required
by the libstdc++ LSB test.

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

diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index 2004157..37ce3f1 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -485,6 +485,11 @@ localedef -i it_IT -f ISO-8859-1 it_IT
 localedef -i ja_JP -f EUC-JP ja_JP.eucjp
 localedef -i se_NO -f UTF-8 se_NO.UTF-8
 localedef -i ta_IN -f UTF-8 ta_IN
+localedef -i es_ES -f ISO-8859-1 es_ES
+localedef -i fr_FR@euro -f ISO-8859-1 fr_FR@euro
+localedef -i is_IS -f UTF-8 is_IS.UTF-8
+localedef -i zh_TW -f BIG5 zh_TW.BIG5
+localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15
 
 echo ""
 echo "Installation done!"
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 5/5] lsbtest: add ppc64 support
  2013-12-16  3:32 [PATCH 0/5] V3: Update for lsb and lsbtest Kai Kang
                   ` (3 preceding siblings ...)
  2013-12-16  3:33 ` [PATCH 4/5] LSB_Test.sh: update locales Kai Kang
@ 2013-12-16  3:33 ` Kai Kang
  4 siblings, 0 replies; 6+ messages in thread
From: Kai Kang @ 2013-12-16  3:33 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

LSB supports to test on PPC64 target, so update lsbtest recipe and test
scripts to enable PPC64 support.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-extended/lsb/lsbtest/LSB_Test.sh |  2 +-
 meta/recipes-extended/lsb/lsbtest_1.0.bb      | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index 37ce3f1..12f0054 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -29,7 +29,7 @@ EOF
 fi
 
 ARCH=`uname -m`
-if [ ${ARCH} != "i686" ] && [ ${ARCH} != "x86_64" ] && [ ${ARCH} != "ppc" ]
+if [ ${ARCH} != "i686" ] && [ ${ARCH} != "x86_64" ] && [ ${ARCH} != "ppc" ] && [ ${ARCH} != "ppc64" ]
 then
 	echo "Error: Unsupported architecture"
 	exit 1
diff --git a/meta/recipes-extended/lsb/lsbtest_1.0.bb b/meta/recipes-extended/lsb/lsbtest_1.0.bb
index 8973e09..520c1e7 100644
--- a/meta/recipes-extended/lsb/lsbtest_1.0.bb
+++ b/meta/recipes-extended/lsb/lsbtest_1.0.bb
@@ -31,6 +31,18 @@ do_install() {
 		sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list
 		sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session
 	fi
+
+	# For a ppc64 target. the default userspace is 32b.
+	# Therefore, only change the lsbarch and targetarch
+	# in the package_list when MLIB=lib64 is being used.
+	# Otherwise, by default, the ppc32 LSB packages
+	# will be downloaded by LSB_Test.sh
+	if [ "${TARGET_ARCH}" == "powerpc64" ];then
+		if [ "${PN}" != "${BPN}" ];then
+			sed -i -e 's/lsbarch/ppc64/g' -e 's/targetarch/ppc64/g' ${D}/opt/lsb-test/packages_list
+			sed -i -e 's/targetarch/PPC64/g' ${D}/opt/lsb-test/session
+		fi
+	fi
 }
 
 FILES_${PN} += "/opt/lsb-test/* \
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-12-16  3:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16  3:32 [PATCH 0/5] V3: Update for lsb and lsbtest Kai Kang
2013-12-16  3:32 ` [PATCH 1/5] lsb: update directory of install_initd and remove_initd Kai Kang
2013-12-16  3:32 ` [PATCH 2/5] LSB_Test.sh: update rpm platform file when enable multilib Kai Kang
2013-12-16  3:32 ` [PATCH 3/5] LSB_Test.sh: check ldconfig before update cache Kai Kang
2013-12-16  3:33 ` [PATCH 4/5] LSB_Test.sh: update locales Kai Kang
2013-12-16  3:33 ` [PATCH 5/5] lsbtest: add ppc64 support Kai Kang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox