Subject: Re: pkg/19494: portable pkgtools/pkg_install won't build with db
To: Johnny C. Lam <jlam@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/23/2002 09:58:57
On Mon, 23 Dec 2002, Johnny C. Lam wrote:

> > 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

I see I have it installed. No "libdb1.so" or just "libdb.so" in
PLIST/+CONTENTS.

-ldb1 won't work.

So db package should create symlinks or something for libdb1 and libdb
(which I need to try).

Also, I think I misunderstood and it may have been only
related to --enable-dump185 which needs version 1 already installed.
  db_dump185.o(.text+0xbe): undefined reference to `dbopen'

Also, pkgtools/pkg_install/Makefile should include
.include "../../databases/db/buildlink2.mk"

> you'd bootstrap pkgsrc since building and installing databases/db would
> require the pkg_* tools to already be installed.

I'll just have to start with a pkg_install binary (built on another
system). But it does need to be able to build for when updated pkgsrc
forces a new pkg_install.

   Jeremy C. Reed
   http://bsd.reedmedia.net/