Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Apr 1999 10:40:54 +0800
From:      Yusuf Goolamabbas <yusufg@outblaze.com>
To:        freebsd-ports@freebsd.org
Subject:   [Kurt@OpenLDAP.org: Re: configure fails when DB-2.7.3 installed via FreeBSD ports mech]
Message-ID:  <19990409104054.A22751@outblaze.com>

next in thread | raw e-mail | index | archive | help
Hi, The FreeBSD Berkeleley DB port breaks all configure scripts which
try to detect BerkeleyDB 2. This is what the lead OpenLDAP
(http://www.openldap.org) developer wrote to me about this

----- Forwarded message from "Kurt D. Zeilenga" <Kurt@OpenLDAP.org> -----

Message-Id: <3.0.5.32.19990408075809.009a1140@localhost>
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
Date: Thu, 08 Apr 1999 07:58:09 -0700
To: Yusuf Goolamabbas <yusufg@outblaze.com>
From: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
Subject: Re: configure fails when DB-2.7.3 installed via FreeBSD ports
  mech
Cc: openldap-devel@OpenLDAP.org

I recommend using the BerkeleyDB software as distributed
by Sleepycat.  The current FreeBSD "port" is not well
packaged as it requires special handling by dependent
applications.  I sent a note to the port maintainer suggesting
he repackage the port to either 1) install per Sleepycat's
default, 2) per the old 2.3.16 port, 3) or other mechanism
which does not change the header names (as used in source)
or library name (as used in linking).

You can install the BerkeleyDB as packaged with the default prefix
(/usr/local/BerkeleyDB) or other prefix.  Just be sure to
modify the include/lib paths appropriately.  


>CPPFLAGS="-I/usr/local/include/db2" \ LDFLAGS="-L/usr/local/lib" \
>LIBS="-ldb2" \ ./configure --prefix=/usr/local/site/ldap --with-ldbm \
>--with-ldbm-api=db2

Sorry... short of hacking configure (or playing symlink games),
our configure will not detect this (or other) oddball packaging.

You can REPLACE the port's patch to install DB per the old 2.3.16
port.  Install patch below as /usr/ports/databases/db/patches/patch-aa,
then cd /usr/ports/databases/db; make deinstall, make clean, make install.

--- ../dist/Makefile.in.orig    Mon Dec  7 22:05:59 1998
+++ ../dist/Makefile.in Mon Mar 29 00:59:52 1999
@@ -141,11 +141,11 @@
    $(rm) -f confdefs.h db.h db_int.h db_185.h include.tcl

 prefix=    @prefix@
-bindir=    $(prefix)/BerkeleyDB/bin
-datadir=$(prefix)/BerkeleyDB/share
-includedir=$(prefix)/BerkeleyDB/include
-libdir=    $(prefix)/BerkeleyDB/lib
-mandir=    $(prefix)/BerkeleyDB/docs
+bindir= $(prefix)/bin
+datadir=$(prefix)/share/db
+includedir=$(prefix)/include
+libdir= $(prefix)/lib
+mandir= $(prefix)/share/doc/db

 dmode= 755
 emode= 555

Kurt

----- End forwarded message -----

-- 
Yusuf Goolamabbas
yusufg@outblaze.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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