From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 17 08:40:20 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CED7F37B404 for ; Thu, 17 Jul 2003 08:40:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5449B43FCB for ; Thu, 17 Jul 2003 08:40:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6HFeHUp045664 for ; Thu, 17 Jul 2003 08:40:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6HFeHum045663; Thu, 17 Jul 2003 08:40:17 -0700 (PDT) Resent-Date: Thu, 17 Jul 2003 08:40:17 -0700 (PDT) Resent-Message-Id: <200307171540.h6HFeHum045663@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, Paul Mather Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AF9E37B401 for ; Thu, 17 Jul 2003 08:32:00 -0700 (PDT) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.49.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35D5E43FAF for ; Thu, 17 Jul 2003 08:31:59 -0700 (PDT) (envelope-from paul@gromit.dlib.vt.edu) Received: from hawkwind.Chelsea-Ct.Org (h80ad24f1.async.vt.edu [128.173.36.241]) by gromit.dlib.vt.edu (8.12.9/8.12.9) with ESMTP id h6HFVqlV076057 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Thu, 17 Jul 2003 11:31:57 -0400 (EDT) (envelope-from paul@gromit.dlib.vt.edu) Received: from laptop.Chelsea-Ct.Org (laptop [10.0.23.5]) h6HFVlCb023628 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 17 Jul 2003 11:31:49 -0400 (EDT) Received: from laptop.Chelsea-Ct.Org (localhost.Chelsea-Ct.Org [127.0.0.1]) by laptop.Chelsea-Ct.Org (8.12.9/8.12.9) with ESMTP id h6HFVjxw001848 for ; Thu, 17 Jul 2003 11:31:45 -0400 (EDT) (envelope-from paul@laptop.Chelsea-Ct.Org) Received: (from paul@localhost) by laptop.Chelsea-Ct.Org (8.12.9/8.12.9/Submit) id h6HFViwB001847; Thu, 17 Jul 2003 11:31:44 -0400 (EDT) Message-Id: <200307171531.h6HFViwB001847@laptop.Chelsea-Ct.Org> Date: Thu, 17 Jul 2003 11:31:44 -0400 (EDT) From: Paul Mather To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/54588: databases/ruby-bdb WITH_BDB41 actually uses db3, not db41 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Mather List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2003 15:40:20 -0000 >Number: 54588 >Category: ports >Synopsis: databases/ruby-bdb WITH_BDB41 actually uses db3, not db41 >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: Thu Jul 17 08:40:14 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Paul Mather >Release: FreeBSD 5.1-CURRENT i386 >Organization: Virginia Tech, Digital Library Research Laboratory >Environment: System: FreeBSD laptop.Chelsea-Ct.Org 5.1-CURRENT FreeBSD 5.1-CURRENT #6: Mon Jun 23 10:21:20 EDT 2003 paul@laptop.Chelsea-Ct.Org:/usr/obj/usr/src/sys/LAPTOP i386 >Description: The databases/ruby-bdb Makefile includes a "WITH_BDB41" option that pulls in a dependency on the databases/db41 port but does not actually amend the CONFIGURE_ARGS to build the Ruby package so that it uses db41. In fact, it will default to configuring the Ruby package to use db3, which may or may not fail to build depending upon whether the db3 port is already installed. >How-To-Repeat: cd /usr/ports/databases/ruby-bdb make WITH_BDB41=yes install ldd `pkg_info -L ruby-bdb-0.4.4 | grep bdb.so` The ldd will show libdb3.so being used by the Ruby bdb.so library that is built, despite WITH_BDB41 requesting libdb41.so. >Fix: This patch to Makefile seems to fix the problem, or at least build a bdb.so that uses libdb41.so when the package is built with the WITH_BDB41 option defined. --- Makefile Wed Jun 25 23:36:45 2003 +++ /tmp/Makefile Wed Jul 16 17:54:34 2003 @@ -30,7 +30,10 @@ USE_RUBY_EXTCONF= yes USE_RUBY_RDOC= yes -.if defined(WITH_BDB4) +.if defined(WITH_BDB41) +CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db41" \ + --with-db-version=41 +.elif defined(WITH_BDB4) CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db4" \ --with-db-version=4 .else >Release-Note: >Audit-Trail: >Unformatted: