Project

General

Profile

Bug #11551

Clean up nawk(1) usage in illumos-gate

Added by Cody Mello 6 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

There are several places in building the gate where nawk(1) is used in a non-standard way that will be broken with newer versions:

- Use of continue outside of a for loop to get the same behaviour as next: i.rbac (it's not used in build, but lib/brand/solaris10/zone/p2v.ksh also does this and should be fixed)
- Using print with no arguments (which is equivalent to print $0) in an END block, and assuming that $0 is always "": lib/libxcurses/src/libc/xcurses/mkkey.awk, lib/libxcurses/src/libc/xcurses/mkterm.awk, lib/libxcurses2/src/libc/xcurses/mkkey.awk, lib/libxcurses2/src/libc/xcurses/mkterm.awk

These will need to be fixed so that they don't break the build on a system with an updated nawk(1).

These changes are based on work done in OS-7569.

Also available in: Atom PDF