From owner-freebsd-ports@FreeBSD.ORG Sun Feb 25 21:25:56 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7D0416A400 for ; Sun, 25 Feb 2007 21:25:56 +0000 (UTC) (envelope-from freebsd@troback.com) Received: from mail.gelita.se (212-162-182-244.skbbip.com [212.162.182.244]) by mx1.freebsd.org (Postfix) with ESMTP id 964D413C481 for ; Sun, 25 Feb 2007 21:25:56 +0000 (UTC) (envelope-from freebsd@troback.com) Received: from devil.troback.com (c-195-216-040-156.cust.thalamus.net [195.216.40.156]) by mail.gelita.se (Postfix) with ESMTP id 9D43010F90B; Sun, 25 Feb 2007 22:25:48 +0100 (CET) Date: Sun, 25 Feb 2007 22:25:47 +0100 From: Anders Troback To: Chuck Swiger 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> X-Mailer: Claws Mail 2.7.2 (GTK+ 2.10.9; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Troback-MailScanner-Information: Please contact the ISP for more information X-Troback-MailScanner: Found to be clean X-Troback-MailScanner-From: freebsd@troback.com X-Spam-Status: No Cc: FreeBSD Subject: Re: Python and gramps... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 21:25:57 -0000 On Sun, 25 Feb 2007 08:30:17 -0500 Chuck Swiger wrote: > Anders Troback wrote: > > On Fri, 23 Feb 2007 14:58:21 -0800 > > Chuck Swiger 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/ -