lsb: Change link of ${baselib} to lib64 for 64bits system
cover lsb: Change link of ${baselib} to lib64 for 64bits system
From: Xiaofeng Yan <[email protected]>
Hi Richard,
I modified my submitting according to your suggestion. Change ln -sf ${baselib} lib64 to
if [ "${baselib}" != "lib64" ]; then
ln -sf ${baselib} lib64fi
and correct a warning item caused by mandir.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: xiaofeng/lsb64
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/lsb64
Thanks,
Xiaofeng Yan <[email protected]>
---
Xiaofeng Yan (1):
lsb: Change link of ${baselib} to lib64 for 64bits system
meta/recipes-extended/lsb/lsb_1.4.bb | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-)
PATCH 1/1 lsb: Change link of ${baselib} to lib64 for 64bits system
From: Xiaofeng Yan <[email protected]>
Correct two faults:
1 Binaries of lsb test suite need ld-linux.so* in /lib64. for example:
Target$ ./lsbcmdchk
-sh: ./lsbcmdchk: No such file or directory Target$ strings lsbcmdchk | grep "ld-" /lib64/ld-lsb-x86-64.so.3
"lsbcmdchk" from lsb test suite is a binary program.
A new modification to lsb_1.4.bb caused that binaries from lsb test suite can't run because binaries of lsb test suite need ld-linux.so* in /lib64.
But the link is changed due to adding multilib. I changed this link again.
2 correct mandir
Waring will appear when running task task do_populate_sysroot
NOTE: package lsb-1.4-r2: task do_populate_sysroot: Succeeded
WARNING: For recipe lsb, the following files were installed but not shipped in any package:
WARNING: /{datadir}/man/man1/lsb_release.1.gz
I changed mandir=${D}/man to mandir=${D}/${datadir}/man
--- meta/recipes-extended/lsb/lsb_1.4.bb | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-)
meta/recipes-extended/lsb/lsb_1.4.bb +8 -4
@@ -2,7 +2,7 @@ DESCRIPTION = "LSB support for Poky Linux" SECTION = "console/utils" HOMEPAGE = "http://prdownloads.sourceforge.net/lsb" LICENSE = "GPLv2+" -PR = "r1" +PR = "r2" LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf"
@@ -19,7 +19,7 @@ SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fd S = ${WORKDIR}/lsb-release-${PV} do_install(){ - oe_runmake install prefix=${D} mandir=${D}/man/ DESTDIR=${D} + oe_runmake install prefix=${D} mandir=${D}/${datadir}/man/ DESTDIR=${D} mkdir -p ${D}/bin mkdir -p ${D}/${baselib} mkdir -p ${D}/etc/lsb-release.d
@@ -69,7 +69,9 @@ do_install_append(){ install -m 0755 ${WORKDIR}/init-functions ${D}/${baselib}/lsb if [ "${TARGET_ARCH}" == "x86_64" ];then cd ${D} - ln -sf ${baselib} lib + if [ "${baselib}" != "lib64" ]; then + ln -sf ${baselib} lib64 + fi cd ${D}/${baselib} ln -sf ld-linux-x86-64.so.2 ld-lsb-x86-64.so.2 ln -sf ld-linux-x86-64.so.2 ld-lsb-x86-64.so.3
@@ -82,7 +84,9 @@ do_install_append(){ if [ "${TARGET_ARCH}" == "powerpc64" ];then cd ${D} - ln -sf ${baselib} lib + if [ "${baselib}" != "lib64" ]; then + ln -sf ${baselib} lib64 + fi cd ${D}/${baselib} ln -sf ld64.so.1 ld-lsb-ppc64.so.2 ln -sf ld64.so.1 ld-lsb-ppc64.so.3
Signature · 1 line
1.7.0.4
Richard Purdie
AppliedQuoted 23 lines · Xiaofeng Yan
From: Xiaofeng Yan <[email protected]>
Correct two faults:
1 Binaries of lsb test suite need ld-linux.so* in /lib64. for example:
Target$ ./lsbcmdchk
-sh: ./lsbcmdchk: No such file or directory Target$ strings lsbcmdchk | grep "ld-"/lib64/ld-lsb-x86-64.so.3"lsbcmdchk" from lsb test suite is a binary program.
A new modification to lsb_1.4.bb caused that binaries from lsb test suite can't run because binaries of lsb test suite need ld-linux.so* in /lib64.
But the link is changed due to adding multilib. I changed this link again.2 correct mandir
Waring will appear when running task taskdo_populate_sysrootNOTE: package lsb-1.4-r2: task
do_populate_sysroot: Succeeded
WARNING: For recipe lsb, the following files were installed but not shipped in any package:
WARNING: /{datadir}/man/man1/lsb_release.1.gz
Quoted 6 lines
I changed mandir=${D}/man to mandir=${D}/${datadir}/man
Signed-off-by Xiaofeng Yan <[email protected]>--- meta/recipes-extended/lsb/lsb_1.4.bb | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-)
Merged to master, thanks.
Richard