From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 10 19:50:11 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 235551065673 for ; Wed, 10 Aug 2011 19:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DCB0C8FC1A for ; Wed, 10 Aug 2011 19:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7AJoAoW008240 for ; Wed, 10 Aug 2011 19:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7AJoAOZ008239; Wed, 10 Aug 2011 19:50:10 GMT (envelope-from gnats) Resent-Date: Wed, 10 Aug 2011 19:50:10 GMT Resent-Message-Id: <201108101950.p7AJoAOZ008239@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kurt Lidl Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B0C8106566B for ; Wed, 10 Aug 2011 19:48:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 033198FC0C for ; Wed, 10 Aug 2011 19:48:26 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7AJmPla062686 for ; Wed, 10 Aug 2011 19:48:25 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p7AJmPra062685; Wed, 10 Aug 2011 19:48:25 GMT (envelope-from nobody) Message-Id: <201108101948.p7AJmPra062685@red.freebsd.org> Date: Wed, 10 Aug 2011 19:48:25 GMT From: Kurt Lidl To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/159656: bsd.database.mk fails to locate installed bdb51 library X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2011 19:50:11 -0000 >Number: 159656 >Category: ports >Synopsis: bsd.database.mk fails to locate installed bdb51 library >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 10 19:50:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Kurt Lidl >Release: 8.2-RELEASE >Organization: Cello Software, LLC >Environment: FreeBSD dev00.cello.com 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0: Fri May 20 10:05:52 EDT 2011 lidl@dev00.cello.com:/usr/obj/usr/src/sys/CELLO i386 >Description: On a freshly installed machine, with an up-to-date version of the ports tree (fetched via "portsnap fetch && portsnap extract", with a previously empty filesystem mounted as /usr/ports, I see the following. I install /usr/ports/databases/db51: cd /usr/ports/databases/db51 make WITH_SQL=yes && make WITH_SQL=yes install clean When I build software that needs a bdb library, the software fails to locate the installed bdb51 library, and then attempts to install something else, like bdb41 or bdb42. I think the code in /usr/ports/Mk/bsd.database.mk isn't figuring out that I have bdb51 installed on the machine: This has been happening for several weeks now, I had assumed it was a temporary failure in the ports tree, but it's pretty clear that the problem isn't widely known. >How-To-Repeat: On a freshly installed machine: portsnap fetch && portsnap extract cd /usr/ports/databases/db51 make WITH_SQL=yes && make WITH_SQL=yes install clean cd /usr/ports/devel/subversion make Notice that bdb42 is downloaded and installed. If the "make" line is given as "make WITH_BDB_VER=51", the installed bdb51 libraries will used. >Fix: >Release-Note: >Audit-Trail: >Unformatted: