Subject: DESTDIR and pkgsrc (was Re: Problems with pkg db under 1.6.2_STABLE?)
To: None <tech-pkg@NetBSD.org>
From: Christopher W. Richardson <cwr@nexthop.com>
List: tech-pkg
Date: 06/10/2004 13:49:38
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Jeremy C. Reed" <reed@reedmedia.net> writes:

> Maybe try adding PKG_DEBUG_LEVEL=2 to your make and see what
> "Registering installation for" is really doing.

OK, that let me sort things out. The short answer seems to be
that it's registering in /usr/build/var/db/pkg instead of in
/var/db/pkg.  As seen in previous posts, I don't have PKG_DBDIR
set to anything either in the environment of in /etc/mk.conf.
DESTDIR is set to /usr/build in /etc/mk.conf, but I don't recall
changing this recently (removing that line from /etc/mk.conf
fixes things).

Regardless, it seems odd that having DESTDIR set effectively sets
PKG_DBDIR, but the actually binaries are installed in default
LOCALBASE, doesn't it?

Is this a bug?  Or perhaps just a documentation issue? (Or
perhaps I've just failed to find the appropriate, but existing,
documentation?)

Cheers,
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQFAyJ8wP65RBOOHTzERAm0WAKDFPUYSA7s4arxAn9l5isEplmDg7QCgkRW5
X/jyAIkkwldGJ2HE1JBnvaI=
=UuHT
-----END PGP SIGNATURE-----