Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2007 22:25:47 +0100
From:      Anders Troback <freebsd@troback.com>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        FreeBSD <freebsd-ports@freebsd.org>
Subject:   Re: Python and gramps...
Message-ID:  <20070225222547.4214d91c@devil.troback.com>
In-Reply-To: <45E18F69.8080009@mac.com>
References:  <20070223232142.11fe263f@devil.troback.com> <6669CD12-8C90-4CB4-92B8-CB673B8A502E@mac.com> <20070224083317.79ebd5fa@devil.troback.com> <45E18F69.8080009@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 Feb 2007 08:30:17 -0500
Chuck Swiger <cswiger@mac.com> wrote:

> Anders Troback wrote:
> > On Fri, 23 Feb 2007 14:58:21 -0800
> > Chuck Swiger <cswiger@mac.com> wrote:
> [ ... ]
> >> I think you need to choose a particular flavor of BDB which is
> >> recent enough to support these log capabilities; try setting
> >> something like these in /etc/make.conf:
> >>
> >> WITH_BERKELEYDB=3Ddb42
> >> WITH_BDB_VER=3D42
> >>
> >> ...or choose some other recent 4.x version, and then try =20
> >> reinstalling /usr/ports/databases/py-bsddb.
> >=20
> > Yes, thanks that did it!
>=20
> Ah, very good.  You're welcome.
>=20
> > How do I reflect this in my port?
>=20
> Many ports do something like check whether WITH_BDB_VER is defined to=20
> something in order to register a properly dependency.  If you can
> figure out which versions of BDB are supported with your software,
> then you error with a warning if too old a version is chosen, or you
> can do something like choose a reasonable default value if none is
> already set....
>=20

I can check the version like this (I think):

.    if !defined(WITH_BDB_VER)=20
WITH_BDB_VER=3D 42
.    endif
.    if (${WITH_BDB_VER} < 42)
BROKEN=3D   Does not run with less than db42
.    endif

But how do I know if the dependency ports are compiled with the right
version? Is this the right way of doing this or is there a better way?

--=20

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
How many Microsoft employees does it take to screw in a light bulb?
None, they declare darkness a new standard.
----------------------------------------------------------------
Anders Trob=E4ck
http://www.troback.com/
-



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