Subject: Re: pkgtools -- please do not hard code path
To: None <>
From: Joerg Sonnenberger <>
List: pkgsrc-users
Date: 05/14/2007 14:19:08
On Sun, May 13, 2007 at 08:41:28PM +0200, Tobias Nygren wrote:
> Yes, it should grab PKGSRCDIR from mk.conf. See patch I committed
> recently in pkg_rolling-replace. While we're at it, pkg_chk should
> use ${PREFIX}/etc/mk.conf instead of /usr/pkg/etc/mk.conf.

You can't query PKGSRCDIR from mk.conf without a Makefile. And you
shouldn't do things like that, but instead simply expect the user to set
it in the environment or as argument.