Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2023 09:46:47 GMT
From:      =?utf-8?Q?Dag-Erling=20Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3901be6a14ce - stable/13 - Makefile.inc1: Print the right PATH for missing install tool error
Message-ID:  <202301310946.30V9klA2041273@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=3901be6a14ceff43e502903e56eee98e86a1af0a

commit 3901be6a14ceff43e502903e56eee98e86a1af0a
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2023-01-29 23:45:49 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-01-31 09:44:19 +0000

    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")
    (cherry picked from commit 4ebd18cf357af71941675ff3ae7fb3bf56a37e0e)
---
 Makefile.inc1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.inc1 b/Makefile.inc1
index a3858b25d154..86f59040ac1d 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1376,7 +1376,7 @@ distributeworld installworld stageworld: _installcheck_world .PHONY
 		if progpath=`env PATH=${TMPPATH} 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); \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301310946.30V9klA2041273>