NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/58220: ./newvers.sh uses platform's awk
>Number: 58220
>Category: toolchain
>Synopsis: ./newvers.sh uses platform's awk
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 01 14:20:00 +0000 2024
>Originator: Kouichi Hashikawa
>Release: NetBSD-current, 10
>Organization:
>Environment:
>Description:
When building kernels, src/sys/conf/newvers.sh uses platform's awk.
>How-To-Repeat:
always.
>Fix:
I think,
(like patch for ./makeobsolete)
--- src/sys/conf/newvers.sh-162 2017-04-09 03:24:09.000000000 +0900
+++ src/sys/conf/newvers.sh 2024-05-01 10:57:34.728825591 +0900
@@ -111,6 +111,8 @@
# The result is stored in the osrelease variable.
#
+: ${AWK:=awk}
+
# FUNCTIONS
# source_lines [input] --
@@ -134,7 +136,7 @@
else
cat
fi \
- | awk '{
+ | ${AWK} '{
# awk does not care about whether or not the last line
# of input ends with a newline.
# Convert <backslash> to <backslash><backslash>.
--- src/sys/conf/newvers.mk-12 2017-04-09 03:24:09.000000000 +0900
+++ src/sys/conf/newvers.mk 2024-05-01 10:59:09.739098278 +0900
@@ -17,7 +17,7 @@
vers.o: ${SYSTEM_OBJ:O} Makefile $S/conf/newvers.sh \
$S/conf/osrelease.sh ${_NETBSD_VERSION_DEPENDS}
${_MKMSG_CREATE} vers.c
- ${HOST_SH} $S/conf/newvers.sh ${_NVFLAGS}
+ AWK=${TOOL_AWK:Q} ${HOST_SH} $S/conf/newvers.sh ${_NVFLAGS}
${_MKTARGET_COMPILE}
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
${COMPILE_CTFCONVERT}
Home |
Main Index |
Thread Index |
Old Index