Subject: wrong setting of AWK in replace.mk?
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 01/29/2006 19:40:29
When adding gawk to USE_TOOLS on IRIX AWK is nonetheless set to
/usr/bin/nawk, not gawk, as I would have expected. I think this is
because of the following line in mk/tools/replace.mk:

# For each tool that pkgsrc requires, make sure that the "TOOL" name
# points to the real command, e.g., AWK, SED, etc., provided that
# "TOOL" has been associated with <tool>.
#
.for _t_ in ${USE_TOOLS:M*\:pkgsrc:C/:.*//:O:u}


should't it read like this:

.for _t_ in ${_USE_TOOLS:M*\:pkgsrc:C/:.*//:O:u}

(awk is part of USE_TOOLS but is cancelled from _USE_TOOLS if gawk is
part of USE_TOOLS)

To be honest I don't have an idea what the M*\:pkgsrc:C/:.*//:O:u part
is for....

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de  +49 178 8545053