Subject: Re: pkg/19494: portable pkgtools/pkg_install won't build with db support
To: Johnny C. Lam <firstname.lastname@example.org>
From: Alistair Crooks <email@example.com>
Date: 12/24/2002 09:54:46
On Mon, Dec 23, 2002 at 09:14:04AM -0800, Johnny C. Lam wrote:
> On Mon, Dec 23, 2002 at 08:42:38AM -0800, Jeremy C. Reed wrote:
> > > When building the portable version of pkg_install, with db support,
> > > the library order is incorrect; it's -ldb1 -linstall. pkgdb.o
> > > (in libinstall.a) can't find dbopen() with that link order.
> > > Fix is simple: use -linstall -ldb1 instead.
> > This caught my attention.
> > Does it really need Berkeley DB version 1?
> > Or will version 2, 3 or 4 work?
> > If it needs db1 (which Sleepycat has deprecated), then we must add a
> > databases/db1 package.
> > Because some operating systems may not have db1. For example, in the past
> > db1 was included by default with glibc, but recent glibc doesn't include
> > db1 by default.
> The databases/db package (DB-2.x) has DB-1.8.5 compatibility headers that
> are installed with the rest of the package. However, I don't know how
> you'd bootstrap pkgsrc since building and installing databases/db would
> require the pkg_* tools to already be installed.
Have a look at othersrc/bootstrap-pkgsrc/pkg.sh - it does a decent attempt
at emulating pkg_create(1) using a shell script. This doesn't address the
file cache (which is a db file), but that should die.
Also, I think seb has an autoconf-ed db1 package which could be of use