Subject: toolchain/36889: MAKEDEV.awk requires gawk
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 09/03/2007 06:55:00
>Number:         36889
>Category:       toolchain
>Synopsis:       MAKEDEV.awk requires gawk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 03 06:55:00 +0000 2007
>Originator:     moof
>Release:        NetBSD 4.99.30
System: NetBSD 4.99.30 NetBSD 4.99.30 (SHINY) #0: Sat Sep 1 17:10:42 JST 2007 i386
Architecture: i386
Machine: i386
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.
>How-To-Repeat: release (on an ancient solaris box or similar machine with a
hoary awk.)
Instead of using gsub, just match against the various fields and use those,
or reset the record delimiter to $, or other silly user tricks.