Subject: [Fwd: Re: Bekerley DB v1]
To: NetBSD tech-pkg mailing-list <tech-pkg@netbsd.org>
From: pierre bourgin <pierre.bourgin@pcotech.fr>
List: tech-pkg
Date: 03/18/2003 11:10:41
This is a multi-part message in MIME format.
--------------040500030009040704030609
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


--------------040500030009040704030609
Content-Type: message/rfc822;
 name="Re: Bekerley DB v1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Re: Bekerley DB v1"

Message-ID: <3E76E5D5.90407@pcotech.fr>
Date: Tue, 18 Mar 2003 10:24:37 +0100
From: pierre bourgin <pierre.bourgin@pcotech.fr>
User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.1) Gecko/20030117
MIME-Version: 1.0
To: Stoned Elipot <seb@starfleet.univ-paris7.fr>
Subject: Re: Bekerley DB v1
References: <3E76188B.8030403@pcotech.fr> <20030317180421.GZ19714@veracruz.starfleet.univ-paris7.fr>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Stoned Elipot wrote:
> On Mon, Mar 17, 2003 at 07:48:43PM +0100, pierre bourgin wrote:
> 
>>Did I miss something, someone has a clue about it ?
> 
> 
> If the pkg is using the buildink2 framework
> (USE_BUILDLINK2 defined in its Makefile) just add:
> 
> USE_BUILDLINK2=         # defined
> ...
> .include "../../databases/db/buildlink2.mk"
> 
> to the Makefile. If the system provides db1 it will be used otherwise a
> dependency on DB2 will be added. 
> See databases/db/buildlink2.mk for details.

I forgot to tell I already tried it.

Under NetBSD, no problem (DB v1 provided by system), but under Solaris, 
databases/db package will be used (that provides DB v2) and the program 
I (try to) compile will failed: this is DB v1 that is required, not DB v2.

db calls are incompatibles between v1 and v2 :(.

In an other hand, does it easy to "translate" DB v1 calls (functions 
dbopen and so on) into DB v2 ones ?

Pierre Bourgin


--------------040500030009040704030609--