From 4ebd18cf357af71941675ff3ae7fb3bf56a37e0e Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Sun, 29 Jan 2023 23:45:49 +0000 Subject: [PATCH] Makefile.inc1: Print the right PATH for missing install tool error We override PATH for which but then go and print the non-overridden PATH, which leads to rather confusing messages. Fixes: 5bb9250e0af4 ("Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD") --- Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index ae50cdda508f..dfc9cb8d07fc 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1371,7 +1371,7 @@ distributeworld installworld stageworld: _installcheck_world .PHONY if progpath=`env PATH=${TMPPATH:Q} which $$prog`; then \ echo $$progpath; \ else \ - echo "Required tool $$prog not found in PATH ($$PATH)." >&2; \ + echo "Required tool $$prog not found in PATH ("${TMPPATH:Q}")." >&2; \ exit 1; \ fi; \ done); \