All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] zlib: export LDCONFIG = true to disable runnig host's ldconfig
@ 2012-02-10 15:41 Martin Jansa
  2012-02-11  2:05 ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-02-10 15:41 UTC (permalink / raw)
  To: openembedded-core

* 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

Signed-off-by: Martin Jansa <Martin.Jansa@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




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

* Re: [RFC] zlib: export LDCONFIG = true to disable runnig host's ldconfig
  2012-02-10 15:41 [RFC] zlib: export LDCONFIG = true to disable runnig host's ldconfig Martin Jansa
@ 2012-02-11  2:05 ` Khem Raj
  2012-02-11 12:57   ` Otavio Salvador
  2012-02-12 18:56   ` Martin Jansa
  0 siblings, 2 replies; 5+ messages in thread
From: Khem Raj @ 2012-02-11  2:05 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

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@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@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
-Khem



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

* Re: [RFC] zlib: export LDCONFIG = true to disable runnig host's ldconfig
  2012-02-11  2:05 ` Khem Raj
@ 2012-02-11 12:57   ` Otavio Salvador
  2012-02-12 18:56   ` Martin Jansa
  1 sibling, 0 replies; 5+ messages in thread
From: Otavio Salvador @ 2012-02-11 12:57 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

On Sat, Feb 11, 2012 at 00:05, Khem Raj <raj.khem@gmail.com> wrote:

> 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.


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

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 1296 bytes --]

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

* Re: [RFC] zlib: export LDCONFIG = true to disable runnig host's ldconfig
  2012-02-11  2:05 ` Khem Raj
  2012-02-11 12:57   ` Otavio Salvador
@ 2012-02-12 18:56   ` Martin Jansa
  2012-02-13  5:55     ` Khem Raj
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-02-12 18:56 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2035 bytes --]

On Fri, Feb 10, 2012 at 06:05:27PM -0800, Khem Raj wrote:
> 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 ?
> 

for both

> 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,

> > Signed-off-by: Martin Jansa <Martin.Jansa@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@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
> 
> -- 
> -Khem
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [RFC] zlib: export LDCONFIG = true to disable runnig host's ldconfig
  2012-02-12 18:56   ` Martin Jansa
@ 2012-02-13  5:55     ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2012-02-13  5:55 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Sun, Feb 12, 2012 at 10:56 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
>
> So should I just send patch which removes ldconfig call from install-libs?

i think that would be better



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

end of thread, other threads:[~2012-02-13  6:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-10 15:41 [RFC] zlib: export LDCONFIG = true to disable runnig host's ldconfig Martin Jansa
2012-02-11  2:05 ` Khem Raj
2012-02-11 12:57   ` Otavio Salvador
2012-02-12 18:56   ` Martin Jansa
2012-02-13  5:55     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.