From owner-freebsd-ports@FreeBSD.ORG Tue Feb 27 00:44:47 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 E4EA516A404 for ; Tue, 27 Feb 2007 00:44:47 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 7936713C467 for ; Tue, 27 Feb 2007 00:44:43 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so1700814nfc for ; Mon, 26 Feb 2007 16:44:42 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c7+NVBSPKykQi9UYv+AOy8rFsGBGLXykcD2dd8+OfISNS/T7QIUD8AZxxPGpKkSHxIfY1DwdjmER8Cwj1SK40HUYHNAxHE/MESLrwJ16U3rwF62dXwOrILxZ6CkWPZbQVK2mukpYVwhrQyhYDQ28R2B/j5D8+POqRi5y/ufhncE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=U5w51qlcgpSibS3m04A8hjzFmX4LgdCneJObzMFfcBVZStx4EwSDoLv+5oDnGylicGBuHDAUDTXQOim2bnbANmcHye9DdV42yTN6MiEQgYf8H/pDhtCV1PinpfUwtgRH3lj64XB7FWMNiRcuXOnnly5USnweTDNXH+IMwb8BQgA= Received: by 10.82.186.5 with SMTP id j5mr2061393buf.1172537081756; Mon, 26 Feb 2007 16:44:41 -0800 (PST) Received: by 10.82.186.2 with HTTP; Mon, 26 Feb 2007 16:44:41 -0800 (PST) Message-ID: <790a9fff0702261644r2f616971u89f7b1458be05479@mail.gmail.com> Date: Mon, 26 Feb 2007 18:44:41 -0600 From: "Scot Hetzel" To: "Chuck Swiger" In-Reply-To: <45E18F69.8080009@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070223232142.11fe263f@devil.troback.com> <6669CD12-8C90-4CB4-92B8-CB673B8A502E@mac.com> <20070224083317.79ebd5fa@devil.troback.com> <45E18F69.8080009@mac.com> Cc: FreeBSD , Anders Troback 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: Tue, 27 Feb 2007 00:44:48 -0000 On 2/25/07, 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=db42 > >> WITH_BDB_VER=42 > >> > >> ...or choose some other recent 4.x version, and then try > >> reinstalling /usr/ports/databases/py-bsddb. > > > > Yes, thanks that did it! > > Ah, very good. You're welcome. > > > How do I reflect this in my port? > > Many ports do something like check whether WITH_BDB_VER is defined to > 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.... > All you need to do is add the following to the port: USE_BDB= 42+ INVALID_BDB_VER= 2 3 40 41 And it will give an error if WITH_BDB_VER is set to a value lower than 42. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.