[Buildroot] [PATCH 1/1] fix failure during 'make linux-menuconfig' when PATH env var has spaces

Dan Raymond draymond at foxvalley.net
Wed Mar 10 02:16:09 UTC 2021


On 3/3/2021 11:18 AM, Dan Raymond wrote:
> OK, I see why we can't just set an empty path (none of the build tools 
> will be found).  I got the following to work.  You can't quote 
> $(BR_PATH) because it is already quoted and you only need one $.
>
> $(2)_CONFIGURATOR_MAKE_ENV = \
>     $$($(2)_MAKE_ENV) \
>     PATH=$(BR_PATH) \
>     PKG_CONFIG= \
>     PKG_CONFIG_SYSROOT_DIR= \
>     PKG_CONFIG_ALLOW_SYSTEM_CFLAGS= \
>     PKG_CONFIG_ALLOW_SYSTEM_LIBS= \
>     PKG_CONFIG_LIBDIR= \
>     PKG_CONFIG_PATH="$(HOST_PKG_CONFIG_PATH)"
>
> However the result is equivalent to leaving the PATH alone:
>
> $(2)_CONFIGURATOR_MAKE_ENV = \
>     $$($(2)_MAKE_ENV) \
>     PKG_CONFIG= \
>     PKG_CONFIG_SYSROOT_DIR= \
>     PKG_CONFIG_ALLOW_SYSTEM_CFLAGS= \
>     PKG_CONFIG_ALLOW_SYSTEM_LIBS= \
>     PKG_CONFIG_LIBDIR= \
>     PKG_CONFIG_PATH="$(HOST_PKG_CONFIG_PATH)"

My testing would imply that we don't need to strip the PATH at all 
here.  Is there someone more familiar with this area that can clarify?



More information about the buildroot mailing list