Subject: Re: Changes to the NetBSD Packages Collection in September 2001
To: Ian Fry <Ian.Fry@sophos.com>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 10/01/2001 17:19:32
On Mon, Oct 01, 2001 at 04:13:34PM +0100, Ian Fry wrote:
> On Mon, Oct 01, 2001 at 04:57:14PM +0200, Alistair Crooks wrote:
> > 	bsd.pkg.mk:  added a bsd.pkg.defaults.mk file which is sourced
> > 		just after /etc/mk.conf, allowing /etc/mk.conf to just specify
> > 		values which differ from the defaults.  [agc 2001-09-18]
> 
> Wouldn't it have been easier to source bsd.pkg.defaults.mk before
> /etc/mk.conf? Then, you wouldn't have to use '?=' to set values if they
> haven't been overriden. This way, /etc/mk.conf overrides the setting in
> bsd.pkg.defaults.mk.
> 
> Ian.

Initially, we sourced bsd.pkg.defaults.mk before /etc/mk.conf to
set the defaults.  Unfortunately, if you have any ?= settings in
your /etc/mk.conf, this doesn't DTRT. And so it was changed to
source it afterwards.

Please note that you need the "?=" settings in bsd.pkg.defaults.mk
anyway to honour environment variable settings/overrides.

Regards,
Alistair