Skip to content

Commit 4756114

Browse files
maakualfonsoromanz
authored andcommitted
[depends] Allow PATH with spaces in directory names.
added test and update code based on feedback
1 parent 4baa162 commit 4756114

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ci/test/02_run_container.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if [ "$CI_OS_NAME" == "macos" ]; then
7070
fi
7171

7272
CI_EXEC () {
73-
$CI_EXEC_CMD_PREFIX bash -c "export PATH=${BINS_SCRATCH_DIR}:${BASE_ROOT_DIR}/ci/retry:\$PATH && cd \"${BASE_ROOT_DIR}\" && $*"
73+
$CI_EXEC_CMD_PREFIX bash -c "export PATH=\"/path_with space:${BINS_SCRATCH_DIR}:${BASE_ROOT_DIR}/ci/retry:\$PATH\" && cd \"${BASE_ROOT_DIR}\" && $*"
7474
}
7575
export -f CI_EXEC
7676

depends/funcs.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ $(1)_config_env+=PKG_CONFIG_LIBDIR=$($($(1)_type)_prefix)/lib/pkgconfig
139139
$(1)_config_env+=PKG_CONFIG_PATH=$($($(1)_type)_prefix)/share/pkgconfig
140140
$(1)_config_env+=PKG_CONFIG_SYSROOT_DIR=/
141141
$(1)_config_env+=CMAKE_MODULE_PATH=$($($(1)_type)_prefix)/lib/cmake
142-
$(1)_config_env+=PATH=$(build_prefix)/bin:$(PATH)
143-
$(1)_build_env+=PATH=$(build_prefix)/bin:$(PATH)
144-
$(1)_stage_env+=PATH=$(build_prefix)/bin:$(PATH)
142+
$(1)_config_env+=PATH="$(build_prefix)/bin:$(PATH)"
143+
$(1)_build_env+=PATH="$(build_prefix)/bin:$(PATH)"
144+
$(1)_stage_env+=PATH="$(build_prefix)/bin:$(PATH)"
145145

146146
# Setting a --build type that differs from --host will explicitly enable
147147
# cross-compilation mode. Note that --build defaults to the output of

0 commit comments

Comments
 (0)