pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

who decides native vs. pkgsrc dependency?



Hi!

I just finished installing a complete selection of packages on both
Solaris/sparc and Solaris/x86. I used the same setup (Solaris 10, same
compiler version, identical source tree) and installed via pkg_chk
from a list of packages. Then I diffed the result of "pkg_info", and
to my surprise, on Solaris/x86, devel/zlib was installed, but on
Solaris/sparc, the native version in /usr/lib was used instead. How is
this possible?

BTW: On x86 I noticed this:

$ ldd /usr/pkgsrc/20090129/bin/wireshark
...
        libz.so.1 =>     /usr/pkgsrc/20090129/lib/libz.so.1
...
        libz.so.1 (SUNW_1.1) =>  (version not found)
        libz.so.1 (SUNW_1.1) =>  (version not found)
        libz.so.1 (SUNW_1.1) =>  (version not found)
        libaio.so.1 =>   /lib/libaio.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libz.so.1 (SUNW_1.1) =>  (version not found)
...

The binary seems to work fine. The multiple "(version not found)" are
the result of indirect dependencies, e.g. libfreetype.so.6 is used by
wireshark and has itself this double dependency on libz from pkgsrc
and an unresolved version. Hmmm, which is not really accounted for:

$ pkg_info -R zlib
Information for zlib-1.2.3:

Required by:
wireshark-1.0.4nb1
p5-Compress-Raw-Zlib-2.015nb1

$ pkg_info -n freetype2
Information for freetype2-2.3.8:

although graphics/freetype2/Makefile clearly has a dependency on
../../devel/zlib/buildlink3.mk.

-- 
Joern Clausen
joernc%gmail.com@localhost
http://www.oe-files.de/oefiles/
http://thebloeg.blogspot.com/


Home | Main Index | Thread Index | Old Index