Subject: Re: toolchain/36889: MAKEDEV.awk requires gawk
To: None <gnats-bugs@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: netbsd-bugs
Date: 09/03/2007 09:42:38
Note that NetBSD's awk is not gawk, it's nawk, so the subject of thie PR
is misleading.

On Mon, 03 Sep 2007, dogcow@shiny.tokyo.corp.yahoo.com wrote:
> src/etc/MAKEDEV.awk has several constructs in it that do not play nice
> with older versions of awk - in particular, "getline VAR < file", and
> (more of a worry) gsub(), in lines 220 and after, in the "Generated
> from" lines.

Thanks for the report.  I'd prefer to address this by adding awk to the
"tools" rather than by changing the script to work with old awk.

Meanwhile, perhaps your Solaris box has more than one version of
awk, and perhaps changing the PATH before you build will allow it to
find a more modern awk during the build?  For example, try putting
/usr/xpg4/bin early in the PATH.

--apb (Alan Barrett)