From 5c128f8e4d76431f8c6fb3632e291d52f4e3e930 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 17 Apr 2024 15:04:49 +0200 Subject: [PATCH] build-system: BUGFIX: arguments to CMake/autotools must be quoted --- CHANGELOG.md | 4 ++-- Pmodules/libpbuild.bash | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 365121c..d95ca37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,8 +15,8 @@ * Option '--clean-install' added. If this option is set, the module is removed before building, if the module already exist. (issue #247) -* Required patches can now be defined in the YAML configuration - file (issue #249) +* Arguments to CMake/autotools and required patches can now + be defined in the YAML configuration file (issues #249, #256) * Check added whether all required group dependencies are specified and also not more than required. (issue #251) * The number of directory components to be removed while diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index 02a0567..41a2d1d 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -782,7 +782,7 @@ pbuild::configure() { local -a config_args=() local -- arg='' for arg in "${CONFIGURE_ARGS[@]}"; do - config_args+=( $(envsubst <<<"${arg}") ) + config_args+=( "$(envsubst <<<"${arg}")" ) done if [[ -r "${SRC_DIR}/configure" ]] && \ [[ "${configure_with}" == 'auto' ]] || \