Subject: Re: pkg_filecheck under darwin
To: None <pkgsrc-users@NetBSD.org>
From: Antoine Reilles <tonio@NetBSD.org>
Date: 02/16/2007 23:58:33
Content-Type: text/plain; charset=us-ascii
On Fri, Feb 16, 2007 at 11:21:02PM +0100, Dieter Baron wrote:
> > I encountered some problems when building pkgtools/pkg_filecheck under
> > darwin.
> > I get build errors with incorrect db4 uses:
> > That is, .include "../../mk/bdb.buildlink3.mk" gets the db4-4.4.20nb1
> > package, so pkg_filecheck should use its api.
> Actually, it should use its DB 1.85 compatibility API.
> > However, pkg_filecheck builds fine under netbsd, and will fail with the
> > attached patch. db4 pkg is installed, but bdb.buildlink3.mk do not
> > require it, and pkg_filecheck uses /usr/include/db.h.
> > What is the correct way to fix this problem ?
> Include the correct file to get the compatibility API, probably
> db4/db_185.h or db_185.h.
> The cleanest solution is probably to have mk/bdb.buildlink3.mk
> provide this in some way. How do other DB 1.85 using package handle
> this? (I'm sorry, I don't have time to look into this at the moment.
> Perhaps raise this issue on tech-pkg? Feel free to quote this message.)
Actually, db1.builtin.mk, which is included by bdb.blk3 already do this
job, so that we simply need to include db_185.h instead of db.h
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
-----END PGP SIGNATURE-----