Subject: Re: Package registration
To: None <current-users@netbsd.org>
From: Alistair Crooks <agc@pkgsrc.org>
List: current-users
Date: 12/30/2001 13:52:27
On Fri, Dec 28, 2001 at 09:08:14PM +0100, Julio Merino wrote:
> On Fri, Dec 28, 2001 at 09:00:46PM +0100, Alistair Crooks wrote:
> > On Fri, Dec 28, 2001 at 08:31:53PM +0100, Julio Merino wrote:
> > > Hi all
> > > 
> > > I've noticed a problem with pkgsrc that I don't know if it is -current
> > > related or not.
> > > 
> > > I go to /usr/pkgsrc/chat/gaim (for example) and when issuing the make
> > > build, it compiles some of dependancies. Fine. But after installing this
> > > package I issue a: pkg_info and all compiled dependencies are not there!
> > > They are installed as I see the libraries in their place, but packages
> > > are not registered... What happens??
> > 
> > Perhaps your value of PKG_DBDIR is set in /etc/mk.conf, but not in your
> > environment, so that when you issue a "pkg_info" command, it's not looking
> > in the right directory.
> 
> That variable is unset... And /var/db/pkg contains some package information.
> Some programs are registered but some others don't. Should I set that
> variable explicetly in /etc/mk.conf?
> PKG_DBDIR=/var/db/pkg <- Should I put this?

No, /var/db/pkg is the default value for PKG_DBDIR - you don't need
to set it explicitly.

Without more information, it's difficult to tell why you're observing
packages being installed, but that registration isn't taking place.

Regards,
Alistair