ports/54588: databases/ruby-bdb WITH_BDB41 actually uses db3, not db41
Paul Mather
paul at gromit.dlib.vt.edu
Thu Jul 17 15:40:20 UTC 2003
>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 at 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:
More information about the freebsd-ports-bugs
mailing list