Skip to contentSkip to conversation

lsb: Change link of ${baselib} to lib64 for 64bits system

PATCH In review Xiaofeng Yan 2 participants 3 messages Oct 9, 2011 – Oct 14, 2011

lore
Share & tools
lore
#0 lore raw

cover lsb: Change link of ${baselib} to lib64 for 64bits system

From: Xiaofeng Yan <[email protected]>

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

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 |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
#1 lore raw

PATCH 1/1 lsb: Change link of ${baselib} to lib64 for 64bits system

From: Xiaofeng Yan <[email protected]>

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.

---
 meta/recipes-extended/lsb/lsb_1.4.bb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-extended/lsb/lsb_1.4.bb +3 -3
index d472012..5df08b8 100644
@@ -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"
 
@@ -69,7 +69,7 @@ do_install_append(){
        install -m 0755 ${WORKDIR}/init-functions ${D}/${baselib}/lsb
        if [ "${TARGET_ARCH}" == "x86_64" ];then
 	       cd ${D}
-	       ln -sf ${baselib} lib
+	       ln -sf ${baselib} lib64
 	       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 +82,7 @@ do_install_append(){
  
        if [ "${TARGET_ARCH}" == "powerpc64" ];then
   	       cd ${D}
-	       ln -sf ${baselib} lib
+	       ln -sf ${baselib} lib64
                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
#2 lore raw
Quoted 42 lines · Xiaofeng Yan

From: Xiaofeng Yan <[email protected]>

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.

---
 meta/recipes-extended/lsb/lsb_1.4.bb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-extended/lsb/lsb_1.4.bb +2 -2
index d472012..5df08b8 100644
@@ -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"
 
@@ -69,7 +69,7 @@ do_install_append(){
        install -m 0755 ${WORKDIR}/init-functions ${D}/${baselib}/lsb
        if [ "${TARGET_ARCH}" == "x86_64" ];then
 	       cd ${D}
-	       ln -sf ${baselib} lib
+	       ln -sf ${baselib} lib64
 	       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

meta/recipes-extended/lsb/lsb_1.4.bb do_install_append(){ · line 88

Quoted 8 lines
meta/recipes-extended/lsb/lsb_1.4.bb +1 -1
@@ -82,7 +82,7 @@ do_install_append(){
 
        if [ "${TARGET_ARCH}" == "powerpc64" ];then
   	       cd ${D}
-	       ln -sf ${baselib} lib
+	       ln -sf ${baselib} lib64
                cd ${D}/${baselib}
                ln -sf ld64.so.1 ld-lsb-ppc64.so.2
                ln -sf ld64.so.1 ld-lsb-ppc64.so.3

I'm afraid we need to add a bit more logic here. $baselib can be "lib", "lib64" or anything else the user desires. I'd suggest we do something like:

if [ "${baselib}" != "lib64" ]; then

	ln -sf ${baselib} lib64

fi

Cheers,

Richard