Subject: Re: hardcoded prefix path in pkgtools/pkg_install
To: grant beattie <grant@NetBSD.org>
From: Douwe Kiela <virtus@wanadoo.nl>
List: tech-pkg
Date: 09/28/2003 14:47:03
Hey,

> On Sat, Sep 27, 2003 at 08:52:04PM +0200, Douwe Kiela wrote:
>
> > /usr/pkg/sbin/pkg_admin: not found
> > /usr/pkg/sbin/pkg_admin: not found
> > ===> Checking for vulnerabilities in pkg_install-20030923
> > /usr/pkg/sbin/pkg_admin: not found
>
> what does your /etc/mk.conf contain?
>
> if you pass --prefix=/usr/blah to 'bootstrap', the generated
> mk.conf.example should contain the line:
>
> LOCALBASE=/usr/blah
>
> if LOCALBASE is not defined, it defaults to /usr/pkg. is it
> possible you are missing LOCALBASE?
Yes, that's it! You're right.. I didn't copy the mk.conf.example but
used one I made myself and I forgot that. Thanks..

But that still doesn't solve the hardcoded, /usr/pkg is hardcoded in all the
Makefiles
in pkgtools/pkg_install and also in linkfarm.sh. Am I overlooking something
again? :P