[OE-core] [oe-core][RFC] zlib: export LDCONFIG = true to disable runnig host's ldconfig

Khem Raj raj.khem at gmail.com
Sat Feb 11 02:05:27 UTC 2012


On (10/02/12 16:41), Martin Jansa wrote:
> * 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.
> 
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
>  meta/recipes-core/zlib/zlib_1.2.6.bb |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/recipes-core/zlib/zlib_1.2.6.bb b/meta/recipes-core/zlib/zlib_1.2.6.bb
> index a220773..dcdc16f 100644
> --- a/meta/recipes-core/zlib/zlib_1.2.6.bb
> +++ b/meta/recipes-core/zlib/zlib_1.2.6.bb
> @@ -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}
>  }
> -- 
> 1.7.8.4
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
-Khem




More information about the Openembedded-core mailing list