Subject: CVS commit: pkgsrc/mk/tools
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 05/12/2005 03:57:40
Module Name:	pkgsrc
Committed By:	jlam
Date:		Thu May 12 03:57:40 UTC 2005

Modified Files:
	pkgsrc/mk/tools: defaults.mk replace.mk

Log Message:
Observe the following:

	VAR=	a
	PTR=	VAR
	${PTR}?= b

Given these definitions, ${VAR} == "b" (unintuitively).  We can work
around this by doing:

	VAR=	a
	PTR=	VAR
	.for _v_ in ${PTR}
	${_v_}?= b
	.endfor

In this case, ${VAR} == "a" (as expected).

Use the second form of assignment in this changeset so that the expected
behavior happens for the "TOOL" name variables.  This fixes "recursively
defined" errors for some of the "TOOL" variables when the pkgsrc tool
replaces the system-supplied one.


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 pkgsrc/mk/tools/defaults.mk
cvs rdiff -r1.68 -r1.69 pkgsrc/mk/tools/replace.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.