Skip to contentSkip to conversation

zlib: export LDCONFIG = true to disable runnig host's ldconfig

RFC In review Martin Jansa 3 participants 5 messages Feb 10, 2012 – Feb 13, 2012

lore
Share & tools
lore
#0 lore raw

RFC 1/1 zlib: export LDCONFIG = true to disable runnig host's ldconfig

* it's called from install-libs target and when /etc/ld.so.cache is writeable by user running bitbake then it creates invalid cache (in my case libstdc++.so cannot be found after building zlib(-native) and I have to call touch */libstdc++.so && /sbin/ldconfig to fix it

---
 meta/recipes-core/zlib/zlib_1.2.6.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-core/zlib/zlib_1.2.6.bb +3 -0
index a220773..dcdc16f 100644
@@ -11,6 +11,9 @@ SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \
 SRC_URI[md5sum] = "dc2cfa0d2313ca77224b4d932b2911e9"
 SRC_URI[sha256sum] = "fa3e3e4881fa5810b8903f2c7e0dcd5a0a673535f0438021c4bbb5db1b918c8e"
 
+# disable calling ldconfig on host, it breaks /etc/ld.so.cache if it's writeable by user running bitbake
+export LDCONFIG = "true"
+
 do_configure (){
 	./configure --prefix=${prefix} --shared --libdir=${libdir}
 }
Signature · 1 line
1.7.8.4
#1 lore raw
Quoted 3 lines · Martin Jansa

* it's called from install-libs target and when /etc/ld.so.cache is writeable by user running bitbake then it creates invalid cache (in my case libstdc++.so cannot be found after building zlib(-native) and I have to call touch */libstdc++.so && /sbin/ldconfig to fix it

hmm does it happen only with native or with both ?

i think we need to fix zlib install in this case.

Quoted 28 lines
---
 meta/recipes-core/zlib/zlib_1.2.6.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-core/zlib/zlib_1.2.6.bb +3 -0
index a220773..dcdc16f 100644
@@ -11,6 +11,9 @@ SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \
 SRC_URI[md5sum] = "dc2cfa0d2313ca77224b4d932b2911e9"
 SRC_URI[sha256sum] = "fa3e3e4881fa5810b8903f2c7e0dcd5a0a673535f0438021c4bbb5db1b918c8e"
 
+# disable calling ldconfig on host, it breaks /etc/ld.so.cache if it's writeable by user running bitbake
+export LDCONFIG = "true"
+
 do_configure (){
 	./configure --prefix=${prefix} --shared --libdir=${libdir}
 }
Signature · 7 lines
1.7.8.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
-Khem
#2 lore raw
Quoted 10 lines · Khem Raj
Quoted 1 line · Martin Jansa

* it's called from install-libs target and when /etc/ld.so.cache is

writeable by user running bitbake

Quoted 1 line

then it creates invalid cache (in my case libstdc++.so cannot be found

after building zlib(-native)

Quoted 1 line

and I have to call touch */libstdc++.so && /sbin/ldconfig to fix it

hmm does it happen only with native or with both ?

i think we need to fix zlib install in this case.

I agree; setting LDCONFIG to true workarounds this instead of fixing it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#3 lore raw
In reply to Khem Raj
Quoted 7 lines · Khem Raj
Quoted 3 lines · Martin Jansa

* it's called from install-libs target and when /etc/ld.so.cache is writeable by user running bitbake then it creates invalid cache (in my case libstdc++.so cannot be found after building zlib(-native) and I have to call touch */libstdc++.so && /sbin/ldconfig to fix it

hmm does it happen only with native or with both ?

for both

Quoted 1 line

i think we need to fix zlib install in this case.

So should I just send patch which removes ldconfig call from install-libs?

Cheers,

Quoted 35 lines
Quoted 27 lines
---
 meta/recipes-core/zlib/zlib_1.2.6.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-core/zlib/zlib_1.2.6.bb +3 -0
index a220773..dcdc16f 100644
@@ -11,6 +11,9 @@ SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \
 SRC_URI[md5sum] = "dc2cfa0d2313ca77224b4d932b2911e9"
 SRC_URI[sha256sum] = "fa3e3e4881fa5810b8903f2c7e0dcd5a0a673535f0438021c4bbb5db1b918c8e"
 
+# disable calling ldconfig on host, it breaks /etc/ld.so.cache if it's writeable by user running bitbake
+export LDCONFIG = "true"
+
 do_configure (){
 	./configure --prefix=${prefix} --shared --libdir=${libdir}
 }
Signature · 7 lines
1.7.8.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 6 lines
-Khem

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw
Quoted 2 lines · Martin Jansa

So should I just send patch which removes ldconfig call from install-libs?

i think that would be better