From owner-freebsd-ports Thu Apr 8 19:33:27 1999 Delivered-To: freebsd-ports@freebsd.org Received: from ns1.portal2.com (ns1.portal2.com [203.85.226.193]) by hub.freebsd.org (Postfix) with SMTP id C590C15599 for ; Thu, 8 Apr 1999 19:33:19 -0700 (PDT) (envelope-from yusufg@outblaze.com) Received: (qmail 13146 invoked from network); 9 Apr 1999 02:46:56 -0000 Received: from yusufg.portal2.com (203.85.226.249) by ns1.portal2.com with SMTP; 9 Apr 1999 02:46:56 -0000 Received: (qmail 22831 invoked by uid 500); 9 Apr 1999 02:40:54 -0000 Date: Fri, 9 Apr 1999 10:40:54 +0800 From: Yusuf Goolamabbas 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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" ----- 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 From: "Kurt D. Zeilenga" 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