Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2006 10:45:41 -0600
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Vivek Khera <vivek@khera.org>, Stijn Hoop <stijn@win.tue.nl>
Cc:        ports@freebsd.org
Subject:   Re: USE_BDB inconsistency
Message-ID:  <790a9fff0602010845m21b6ace4n4c373ff10cfae464@mail.gmail.com>
In-Reply-To: <A2D00695-D60B-4A74-A459-F57856CF490F@khera.org>
References:  <200511111029.jABATMW9087903@repoman.freebsd.org> <20051111133654.53679f43@it.buh.tecnik93.com> <20060131132103.GC91568@pcwin002.win.tue.nl> <A2D00695-D60B-4A74-A459-F57856CF490F@khera.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/1/06, Vivek Khera <vivek@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=3D42+ instea=
d
> > of the USE_BDB=3D42+ 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=3DNN"
> 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=3D89023

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=3D43 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0602010845m21b6ace4n4c373ff10cfae464>