Subject: Berkeley DB and DB_File perl module (was: Re: [Fwd: Re: Bekerley DB v1])
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.maer.drei@onlinehome.de>
List: tech-pkg
Date: 03/19/2003 02:13:03
grant beattie wrote:

> The right way to fix this is to create a db1 package and statically
> link with libdb. I think Johnny Lam was working on this.

I am also wrestling with some db1/ndbm problems and have observed,
that perl5 on NetBSD has different DB modules

  /usr/pkg/lib/perl5//5.6.1/sparc-netbsd/DB_File.pm
  /usr/pkg/lib/perl5//5.6.1/sparc-netbsd/NDBM_File.pm
  /usr/pkg/lib/perl5//5.6.1/sparc-netbsd/SDBM_File.pm

than perl5 on Solaris8

  /home/klaus/usr/pkg/lib/perl5/5.6.1/sparc-solaris/NDBM_File.pm
  /home/klaus/usr/pkg/lib/perl5/5.6.1/sparc-solaris/ODBM_File.pm
  /home/klaus/usr/pkg/lib/perl5/5.6.1/sparc-solaris/SDBM_File.pm

IMO, we should either have a common base perl installation on all
supported systems or at least have a way to upgrade it to a common
base.

What's more, on NetBSD (and FreeBSD probably as well) DB_File and
NDBM both seem to use Berkeley db as the underlying database
according to file(1) (the created files are different), while
on Solaris the 'real' NDBM database is used (*.pag, *.dir).

Anyway, I think I will need DB_File for Solaris (and maybe other
systems supported by pkgsrc) and we haven't got a package for that, yet.

ciao
     Klaus