Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jul 2003 11:31:44 -0400 (EDT)
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/54588: databases/ruby-bdb WITH_BDB41 actually uses db3, not db41
Message-ID:  <200307171531.h6HFViwB001847@laptop.Chelsea-Ct.Org>
Resent-Message-ID: <200307171540.h6HFeHum045663@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307171531.h6HFViwB001847>