Subject: CVS commit: pkgsrc/pkgtools/pkg_install/files
To: None <pkgsrc-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: pkgsrc-changes
Date: 01/04/2006 23:33:23
Module Name:	pkgsrc
Committed By:	christos
Date:		Wed Jan  4 23:33:23 UTC 2006

Modified Files:
	pkgsrc/pkgtools/pkg_install/files: configure configure.ac
	pkgsrc/pkgtools/pkg_install/files/lib: config.h.in pkgdb.c version.h

Log Message:
Handle newer versions of Berkeley DB. Our algorithm is:

- if you have > db1 the probably you have db_185.h which means
  that dbopen is really __db185_open, and we'll prefer that.
- else if you have db1, then you have db1/db.h and dbopen
- else if you have db.h, then this is either the one from db1 and it will
  work with -ldb having dbopen, or it will not.

Note that the compatibility option on __db185_open() will actually not create
or update db1.85/1.86 files, but it will use the current format of the db
library. This compatibility layer is source code only.


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 pkgsrc/pkgtools/pkg_install/files/configure
cvs rdiff -r1.15 -r1.16 pkgsrc/pkgtools/pkg_install/files/configure.ac
cvs rdiff -r1.10 -r1.11 pkgsrc/pkgtools/pkg_install/files/lib/config.h.in
cvs rdiff -r1.24 -r1.25 pkgsrc/pkgtools/pkg_install/files/lib/pkgdb.c
cvs rdiff -r1.52 -r1.53 pkgsrc/pkgtools/pkg_install/files/lib/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.