Subject: Unresolved Zlib problems
To: None <pkgsrc-users@netbsd.org>
From: Gary Thorpe <gathorpe79@yahoo.com>
List: pkgsrc-users
Date: 07/10/2007 14:59:15
--- Joerg Sonnenberger <joerg@britannica.bec.de> wrote:
> On Tue, Jul 03, 2007 at 02:02:44PM -0400, Gary Thorpe wrote:
> > It seems libglade depends on both libz.so.1 (which is what the
> software
> > I am building depends on) in pkgsrc _and_ libz.so.0 in base despite
> me
> > rebuilding it with PREFER_PKGSRC = zlib in mk.conf.
>
> It might get that via a dependency.
>
> > Is there any way I can efficiently (not all installed packages
> depend
> > on zlib and pkg_info -R zlib will not show those built against the
> base
> > zlib) update all installed pkgsrc software to now use pkgsrc zlib
> to
> > avoid this in future?
>
> Grep for it in /var/db/pkg/*/+BUILD_INFO. REQUIRES is what you want
> :-)
>
> Joerg
>
I did this it turns out graphics/cairo is among them:
grep -n libz /var/db/pkg/cairo-1.4.8/+BUILD_INFO
40:REQUIRES=/usr/lib/libz.so.0
46:REQUIRES=/usr/pkg/lib/libz.so.1
I took a look at what it depends on:
( cd /usr/pkgsrc/graphics/cairo && make show-depends)
glitz>=0.5.1:../../graphics/glitz
png>=1.2.9nb2:../../graphics/png
Then I looked at their +BUILD_INFO's:
grep -n libz /var/db/pkg/glitz-0.5.6nb2/+BUILD_INFO
grep -n libz /var/db/pkg/png-1.2.18/+BUILD_INFO
35:REQUIRES=/usr/pkg/lib/libz.so.1
So I cannot figure out why /usr/lib/libz.so.0 is being pulled in: none
of the pkgsrc dependencies requires libz.so.0. In the base libraries,
only libssh matches:
grep -n libz /usr/lib/*.so*
Binary file /usr/lib/libssh.so matches
Binary file /usr/lib/libssh.so.1 matches
Binary file /usr/lib/libssh.so.1.0 matches
Binary file /usr/lib/libz.so matches
Binary file /usr/lib/libz.so.0 matches
Binary file /usr/lib/libz.so.0.4 matches
Any suggestions on how to fix this (both libz.so.1 and libz.so.0 are
being linked against in some programs)?
____________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.