USE_BDB inconsistency

Scot Hetzel swhetzel at gmail.com
Wed Feb 1 08:45:48 PST 2006


On 2/1/06, Vivek Khera <vivek at khera.org> wrote:
> On Jan 31, 2006, at 8:21 AM, Stijn Hoop wrote:
> > I ran into this today. At the very least create a WITH_BDB=42+ instead
> > of the USE_BDB=42+ that it is now, because I'm still not sure that I
> > should set a USE_* variable myself; I think this is the only one for
> > which that is allowed.
>
> There are several ports that already use a "WITH_BDB_VERSION=NN"
> flag.  I'd like to see something like that be formalized in
> bsd.database.mk too.  Right now it is up to the port author to decide
> which version gets used, which is not always desirable.
>
I had submitted PR 89023 (Jan 12th) which fixes Mk/bsd.database.mk so
that it will provide the library name, and include path for Berkeley
DB.

http://www.freebsd.org/cgi/query-pr.cgi?pr=89023

The patch also updates most of the ports that use Berkeley DB.

With the patch in the PR applied, to select a version of Berkeley DB
(supported by the port), all you need to specify is WITH_BDB_VER or
<UNIQUENAME>_WITH_BDB_VER on the command line, in /etc/make.conf, or
the pkg management tools conf file.

cd dns/bind9-dlz
make WITH_BDB_VER=43 build

Currently, the PR is waiting for approval from the various port
maintainers and a commiter to commit it.  I have received approvals
from about 75% of the maintainers.

Scot

PS.  The patch also warns if obsolete variables are being used to
select a version of Berkeley DB.


--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.


More information about the freebsd-ports mailing list