[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-pkg
Subject:    Re: How to make packages use built in zlib?
From:       David Holland <dholland-pkgtech () netbsd ! org>
Date:       2014-01-18 6:54:52
Message-ID: 20140118065452.GC29658 () netbsd ! org
[Download RAW message or body]

On Tue, Jan 14, 2014 at 06:38:06PM +0000, Jonathan Perkin wrote:
 > > I noticed that the MirBSD bulk build logs contain several instances of zlib
 > > version errors. This is because there is a built-in libz.so.5.4 while
 > > pkgsrc installs a slightly newer version as libz.so.1.0.
 > > 
 > > Linking against libz from pkgsrc is dangerous because many binaries link
 > > against the built-in libcrypto, which pulls in the built-in libz. Thus I
 > > would like to always use the built-in zlib, which happens to be new enough
 > > for the ABI_DEPENDS in its builtin.mk.
 > > 
 > > What is the right incantation to achieve this? Can I do it in a platform
 > > defaults file?
 > 
 > _OPSYS_PREFER.zlib?=native in mk/platform/MirBSD.mk

You shouldn't have to do that though (AIUI) -- instead, it's probably
better to find out why devel/zlib/builtin.mk isn't accepting (or isn't
finding, also possible) the builtin version.

-- 
David A. Holland
dholland@netbsd.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic