Subject: Re: problems with choosing a Berkeley DB
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 01/05/2005 09:27:47
As another example of the Berkeley DB issues ...

I was building pre-requisites for kdebase. I already had openldap
installed, but a new version was needed and a newer Berkeley DB was
needed.

So it built db4. But it was already installed, so I uninstalled it.

So when I started up the kdebase build again, it then built db3 (instead
of db4). But db3 was already installed.

So I uninstalled db3. And restarted the kdebase again:

reed@puget:/usr/pkgsrc/x11/kdebase3$ time bmake package
===> Checking for vulnerabilities in kdebase-3.3.2nb2
=> Checksum OK for kdebase-3.3.2.tar.bz2.
=> Checksum OK for Daemon.png.
=> Checksum OK for Daemon.README.
===> Extracting for kdebase-3.3.2nb2
===> Required installed package xorg-libs>=6.8.1nb2: xorg-libs-6.8.1nb2
found
===> Required package openldap>=2.2.18nb1: NOT found
===> Verifying package for ../../databases/openldap
===> Checking for vulnerabilities in openldap-2.2.19nb1
=> Checksum OK for openldap-2.2.19.tgz.
===> Extracting for openldap-2.2.19nb1
===> Required package db>=2.7.7nb2: NOT found
===> Verifying package for ../../databases/db
===> Checking for vulnerabilities in db-2.7.7nb2
=> Checksum OK for db-2.7.7.tar.gz.


I see that databases/openldap/options.mk has:

.if !empty(PKG_OPTIONS:Mbdb)
BDB_ACCEPTED=           db4 # db3?
.  include "../../mk/bdb.buildlink3.mk"
.endif

I don't why it is now trying db-2. Any ideas?

reed@puget:/usr/pkgsrc/databases/openldap$ bmake show-var VARNAME=PKG_OPTIONS
 bdb

reed@puget:/usr/pkgsrc/databases/openldap$ bmake show-var VARNAME=BDB_ACCEPTED
db4

reed@puget:/usr/pkgsrc/databases/openldap$ bmake show-var VARNAME=BDB_TYPE
db4

reed@puget:/usr/pkgsrc/databases/openldap$ cd -
/usr/pkgsrc/x11/kdebase3

reed@puget:/usr/pkgsrc/x11/kdebase3$ bmake show-var VARNAME=BDB_TYPE
db2


 Jeremy C. Reed

 	  	 	 open source, Unix, *BSD, Linux training
	  	 	 http://www.pugetsoundtechnology.com/