From owner-freebsd-ports@FreeBSD.ORG Sun Feb 17 23:58:08 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 72BD5693 for ; Sun, 17 Feb 2013 23:58:08 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 4212FECC for ; Sun, 17 Feb 2013 23:58:08 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id c11so6689951ieb.15 for ; Sun, 17 Feb 2013 15:58:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=4aW7G7zSR18BuQaNJMwlsTr37/zYwsORwAixWU5Thug=; b=wHg33hTv5jVlsAg9WLx4wK9cFc5c0RN+QX2FfkkqnbIIKZo7XT5Jk+ES2t2AUUFA+F rk6z4d3/2ZfZ63MBhjxzUnXKY0B0iN6jgNhHxH6LL0OeYd2hL0fTrUZx+W9AGIza9qmr ClF5BjIkWfASwv2D55DoeuAsLb+psRkGxJfgTfAQ0ARMImv7nOjdMROYJ9oCinV8HfPt BPqqUcEdfMdMVmDHYSwPt4xi4iWKzOG0MGu4xmvGIURcX8Ajk3dGb/97MvOvFARGwt+S DhPlclpBw4BKFR1glLhKJ4oucfjXtSrsc5l6S+dLIfU33QECsvRTurj5HdSiiFEu3/y2 DZnQ== MIME-Version: 1.0 X-Received: by 10.50.45.197 with SMTP id p5mr5645010igm.41.1361145486313; Sun, 17 Feb 2013 15:58:06 -0800 (PST) Received: by 10.50.6.82 with HTTP; Sun, 17 Feb 2013 15:58:06 -0800 (PST) In-Reply-To: <20130208220108.GC4018@ma.sigsys.de> References: <20130208201503.GB4018@ma.sigsys.de> <20130208220108.GC4018@ma.sigsys.de> Date: Sun, 17 Feb 2013 17:58:06 -0600 Message-ID: Subject: Re: mutt vs db44 // Bug in /usr/ports/Mk/bsd.database.mk ? From: Scot Hetzel To: Raphael Eiselstein Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2013 23:58:08 -0000 On Fri, Feb 8, 2013 at 4:01 PM, Raphael Eiselstein wrote: > I took a look on /usr/ports/Mk/bsd.database.mk > > ## > # USE_BDB - Add Berkeley DB library dependency. > # If no version is given (by the > # maintainer via the port or > # by the user via defined variable), try > # to find the > # currently installed version. Fall > # back to default if > # necessary (db41+). > > [=85] > # For specifying [40, 41, ..]+ > _DB_40P=3D 40 ${_DB_41P} > _DB_41P=3D 41 ${_DB_42P} > _DB_42P=3D 42 ${_DB_43P} > _DB_43P=3D 43 ${_DB_44P} > _DB_44P=3D 44 ${_DB_46P} > [=85] > > It seems when USE_BDB=3D42+ it will probe for 43 but I only have 44 > installed here. So USE_BDB=3D42+ results in 42. > > Setting USE_BDB=3D44 in the Makefile results in a dependency on 44 which > is similar to the auto-detection of mutt's autoconf and therefore will > result in a correct dependency, as shown in my QA now: When USE_BDB=3D42+ is set in a ports Makefile, the USE_BDB logic in Mk/bsd.database.mk will select the lowest version of BDB that is installed. So if you have BDB 4.2 and 4.4 installed. It will choose 4.2 as that satisfies the requirement. The problem is that the Mutt's configure script is detecting BDB 4.4 is installed, and using it instead of BDB 4.2. The mutt port should be changed to honor the detected version of BDB by the USE_BDB logic. To set a specific version: # WITH_BDB_VER # - User defined global variable to set Berkeley DB version. # _WITH_BDB_VER # - User defined port specific variable to set Berkeley DB # version. If you want to use the highest version of BDB that is installed then set: # WITH_BDB_HIGHEST # - Use the highest installed version of Berkeley DB. Scot - Author of the USE_BDB logic --=20 DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.