NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

xsrc/58104: When building x11, awk (not ${TOOL_AWK}) is used for PACKAGE_VERSION



>Number:         58104
>Category:       xsrc
>Synopsis:       When building x11, awk (not ${TOOL_AWK}) is used for PACKAGE_VERSION
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 02 16:05:00 +0000 2024
>Originator:     Kouichi Hashikawa
>Release:        NetBSD-current, 10
>Organization:
>Environment:
>Description:
When I building 10-release for PPC405 on PPC405, bsd.x11.mk uses platform's awk (on PPC405 awk sometimes dumps core...) not ${TOOL_AWK}.
If I uses ${TOOL_AWK}, more stable (I don't know the reason...).

obj ===> external/mit/xorg/bin/twm
awk: floating point exception: Invalid Floating point operation
 input record number 6141, file /usr/xsrc/external/mit/twm/dist/configure
 source line number 1
nbmake[5]: "/usr/src/external/mit/xorg/bin/twm/Makefile" line 62: warning: "awk '/^PACKAGE_VERSION=/ {			 match($1, "([0-9]+\\.)+[0-9]+");	 version = substr($1, RSTART, RLENGTH);	 } END { print version }' /usr/xsrc/external/mit/twm/dist/configure" returned non-zero status

>How-To-Repeat:
sometimes.
>Fix:
--- src/share/mk/bsd.x11.mk-dist        2023-12-03 23:21:35.911362364 +0900
+++ src/share/mk/bsd.x11.mk     2024-04-03 00:53:24.927565916 +0900
@@ -145,7 +145,7 @@
 XLOCALE.DEFINES=       -DXLOCALEDIR=\"${X11LIBDIR}/locale\" \
                        -DXLOCALELIBDIR=\"${X11LIBDIR}/locale\"
 
-PRINT_PACKAGE_VERSION= awk '/^PACKAGE_VERSION=/ {                      \
+PRINT_PACKAGE_VERSION= ${TOOL_AWK} '/^PACKAGE_VERSION=/ {              \
                                match($$1, "([0-9]+\\.)+[0-9]+");       \
                                version = substr($$1, RSTART, RLENGTH); \
                        } END { print version }'



Home | Main Index | Thread Index | Old Index