From: Renato Botelho do Couto Date: Thu, 2 Jan 2025 17:54:15 +0000 (+0000) Subject: build: Fix PATH shell export X-Git-Tag: v25.06-rc0~58 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F42085%2F2;p=vpp.git build: Fix PATH shell export When $(wildcard /usr/lib*/ccache) returns more than one directory, they are separated by space and it ends up setting only first one to PATH variable while the rest of the string is just throwed to bash and it ends up breaking the build. This change replaces space by colon to keep desired PATH string syntax. Type: fix Change-Id: I94ba3465a46fa3c4fbb50c9668f0afd97e8c4f91 Signed-off-by: Renato Botelho do Couto --- diff --git a/build-root/Makefile b/build-root/Makefile index df4434d7629..b62a671d58f 100644 --- a/build-root/Makefile +++ b/build-root/Makefile @@ -317,7 +317,7 @@ endif BUILD_ENV = \ export CCACHE_DIR=$(CCACHE_DIR) ; \ - export PATH=$(wildcard /usr/lib*/ccache):$(TOOL_INSTALL_DIR)/bin:$${PATH} ; \ + export PATH=$$(echo $(wildcard /usr/lib*/ccache) | tr ' ' ':'):$(TOOL_INSTALL_DIR)/bin:$${PATH} ; \ $(if $(call configure_var_fn,PATH), export PATH=$${PATH}:$(call configure_var_fn,PATH);,) \ export PATH="`echo $${PATH} | sed -e s/[.]://`" ; \ $(if $(not_native),export CONFIG_SITE=$(MU_BUILD_ROOT_DIR)/config.site ;,) \