Subject: Re: pkg/19494: portable pkgtools/pkg_install won't build with db support
To: Jeremy C. Reed <firstname.lastname@example.org>
From: Johnny C. Lam <email@example.com>
Date: 12/23/2002 09:14:04
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.
-- Johnny Lam <firstname.lastname@example.org>