NetBSD-Bugs archive

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

toolchain/59468: tools/mandoc with non-trivial HOST_CC fails



>Number:         59468
>Category:       toolchain
>Synopsis:       tools/mandoc with non-trivial HOST_CC fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 17 07:05:00 +0000 2025
>Originator:     Sotiris Lamprinidis
>Release:        current@20250616
>Organization:
>Environment:
NetBSD arm64-vm 10.1_STABLE NetBSD 10.1_STABLE (GENERIC64) #0: Sat Jun  7 15:53:24 UTC 2025  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
Building tools/mandoc fails when using a non-trivial HOST_CC (e.g. using ccache as described [here:https://wiki.netbsd.org/tutorials/using_ccache_with_build_sh]).
>How-To-Repeat:
HOST_CC="env VAR=yes cc" make -C /usr/src/tools/mandoc dependall
>Fix:
Quote HOST_CC

lenovo$ cvs diff tools/mandoc/Makefile
Index: tools/mandoc/Makefile
===================================================================
RCS file: /export/cvsroot/netbsd/tools/mandoc/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- tools/mandoc/Makefile       16 Jun 2025 06:38:34 -0000      1.1.1.1
+++ tools/mandoc/Makefile       17 Jun 2025 07:02:01 -0000
@@ -15,6 +15,6 @@
 CLEANFILES+=   config.log config.h Makefile.local
 
 config.h: configure 
-       SRCDIR=${DISTDIR} CC=${HOST_CC} ${HOST_SH} ${DISTDIR}/configure
+       SRCDIR=${DISTDIR} CC=${HOST_CC:Q} ${HOST_SH} ${DISTDIR}/configure
 
 .include "${.CURDIR}/../Makefile.host"



Home | Main Index | Thread Index | Old Index