Subject: Re: pkg_filecheck under darwin
To: None <pkgsrc-users@NetBSD.org>
From: Antoine Reilles <tonio@NetBSD.org>
List: pkgsrc-users
Date: 02/16/2007 23:58:33
--XOIedfhf+7KOe/yw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 16, 2007 at 11:21:02PM +0100, Dieter Baron wrote:
> > I encountered some problems when building pkgtools/pkg_filecheck under
> > darwin.
> >=20
> > I get build errors with incorrect db4 uses:
> >=20
> > That is, .include "../../mk/bdb.buildlink3.mk" gets the db4-4.4.20nb1
> > package, so pkg_filecheck should use its api.
>=20
>   Actually, it should use its DB 1.85 compatibility API.
yes

> > 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.
> >=20
> > What is the correct way to fix this problem ?
>=20
>   Include the correct file to get the compatibility API, probably
> db4/db_185.h or db_185.h.
>=20
>   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

Thanks,
antoine

--XOIedfhf+7KOe/yw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFF1jcZ4VqmoGDE/mwRAlYDAJ4ogSgHXSqctx9ma5Gcr9LgO6raSwCffZWG
zCGm6b2TZiBOK2BayuaPr5U=
=u8eq
-----END PGP SIGNATURE-----

--XOIedfhf+7KOe/yw--