From paul@gromit.dlib.vt.edu  Thu Jul 17 08:32:00 2003
Return-Path: <paul@gromit.dlib.vt.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1AF9E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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])
	by hawkwind.Chelsea-Ct.Org (8.12.9/8.12.8) with ESMTP id h6HFVlCb023628
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <paul@gromit.dlib.vt.edu>
Reply-To: Paul Mather <paul@gromit.dlib.vt.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: databases/ruby-bdb WITH_BDB41 actually uses db3, not db41
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54588
>Category:       ports
>Synopsis:       databases/ruby-bdb WITH_BDB41 actually uses db3, not db41
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    knu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 17 08:40:14 PDT 2003
>Closed-Date:    Sat Oct 25 08:18:01 JST 2003
>Last-Modified:  Sat Oct 25 08:18:01 JST 2003
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->knu 
Responsible-Changed-By: arved 
Responsible-Changed-When: Thu Jul 17 12:02:20 PDT 2003 
Responsible-Changed-Why:  
over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54588 
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Sat Oct 25 08:16:07 JST 2003 
State-Changed-Why:  
BDB 4.1 support is already included. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54588 
>Unformatted:
