Remove the gawk dependency.

This reverts commit 1814251453.

Demote the gawk call back to awk and ensure that stderr is attached.  GNU gawk
tolerates a missing stderr handle, but many utilities do not, which could be
why a regular awk call was unexplainably failing on some systems.

Use argv[0] instead of sh_path for consistency internally and with other Linux
drivers.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Darik Horn
2011-04-14 14:01:22 -05:00
committed by Brian Behlendorf
parent fa6f7d8f9d
commit ad35b6a6e9
3 changed files with 18 additions and 59 deletions
Vendored
+2 -32
View File
@@ -15719,22 +15719,7 @@ fi
;;
user)
if test "x$AWK" != xgawk; then
{ { $as_echo "$as_me:$LINENO: error:
*** Required util gawk missing. Please install the required
*** gawk package for your distribution and try again." >&5
$as_echo "$as_me: error:
*** Required util gawk missing. Please install the required
*** gawk package for your distribution and try again." >&2;}
{ (exit 1); exit 1; }; }
fi
;;
user) ;;
all)
@@ -19797,22 +19782,7 @@ fi
if test "x$AWK" != xgawk; then
{ { $as_echo "$as_me:$LINENO: error:
*** Required util gawk missing. Please install the required
*** gawk package for your distribution and try again." >&5
$as_echo "$as_me: error:
*** Required util gawk missing. Please install the required
*** gawk package for your distribution and try again." >&2;}
{ (exit 1); exit 1; }; }
fi
;;
;;
srpm) ;;
*)
{ $as_echo "$as_me:$LINENO: result: Error!" >&5