Subject: toolchain/36889: MAKEDEV.awk requires gawk
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dogcow@shiny.tokyo.corp.yahoo.com>
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
>Organization:
>Environment:
System: NetBSD shiny.tokyo.corp.yahoo.com 4.99.30 NetBSD 4.99.30 (SHINY) #0: Sat Sep 1 17:10:42 JST 2007 dogcow@shiny.babymeat.com:/usr/obj/obj/usr/src/sys/arch/i386/compile/SHINY i386
Architecture: i386
Machine: i386
>Description:
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:
build.sh release (on an ancient solaris box or similar machine with a
hoary awk.)
>Fix:
Instead of using gsub, just match against the various fields and use those,
or reset the record delimiter to $, or other silly user tricks.
>Unformatted: