Subject: Re: toolchain/36889: MAKEDEV.awk requires gawk
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Alan Barrett <apb@cequrux.com>
List: netbsd-bugs
Date: 09/03/2007 07:45:02
The following reply was made to PR toolchain/36889; it has been noted by GNATS.

From: Alan Barrett <apb@cequrux.com>
To: gnats-bugs@NetBSD.org
Cc: netbsd-bugs@NetBSD.org
Subject: Re: toolchain/36889: MAKEDEV.awk requires gawk
Date: Mon, 3 Sep 2007 09:42:38 +0200

 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)