Subject: Re: Berkeley DB selection
To: Mike M. Volokhov <mishka@apk.od.ua>
From: Johnny C. Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 08/19/2004 16:48:40
On Thu, Aug 19, 2004 at 02:38:21PM +0300, Mike M. Volokhov wrote:
> Greetings!
>
> I've found that BDB_TYPE may not match any value from BDB_ACCEPTED (see
> pkgsrc/mk/bdb.buildlink.mk file). This looks incorrect. For example, in
> package Makefile we put:
>
> BDB_ACCEPTED= db3 db4
>
> And then it is possible to build this package against db2 (!):
>
> make BDB_TYPE=db2
You're simply not supposed to set BDB_TYPE; it should be treated as a
read-only variable. If you want to default to a particular Berkeley
DB implementation, then you should be setting BDB_DEFAULT in your
/etc/mk.conf.
Cheers,
-- Johnny Lam <jlam@NetBSD.org>