pkgsrc-Users archive

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

Re: Pkgsrc zlib vs. base zlib, NetBSD

On Wed, Jun 06, 2007 at 11:48:13PM -0400, Gary Thorpe wrote:
> ld: warning:, needed by /usr/pkg/lib/, may conflict
> with
> rm -f version.o
> The zlib version in pkgsrc conflicts with the version used to build the
> PNG library (the base version). I just did 'make update' for libpng and
> it still uses the version in the base although it has this in the
> Makefile (with full output for clarity):
> .include "../../devel/zlib/"
> .include "../../mk/"
> I.e. it should use and depend on the pkgsrc zlib, but it doesn't:

No, the above line just means that the png package uses zlib, but it
doesn't specify from where.  By default, pkgsrc will satisfy dependencies
using the base system provided that it understands how to do it.  In
general, if a file exists in a particular package's directory,
e.g. pkgsrc/devel/zlib/, then pkgsrc knows how to do it.

If you want to build a system where pkgsrc always uses pkgsrc to resolve
dependencies, then you should take a look at PREFER_PKGSRC in
pkgsrc/mk/defaults/mk.conf.  For example, the following lines could
be added to your /etc/mk.conf file:

# The following forces using pkgsrc for everything except a few
# key packages:
PREFER_NATIVE=  skey pam tcp_wrappers


        -- Johnny Lam <>

Home | Main Index | Thread Index | Old Index