From: ubifred <93384039+ubifred@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:35:35 +0000 (+0200) Subject: ci: fix bad expansion of an array variable in build_libpq.sh X-Git-Tag: 3.3.0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9320a6cda60dc799fab092a411451f2e322c394f;p=thirdparty%2Fpsycopg.git ci: fix bad expansion of an array variable in build_libpq.sh * ci: fix bad expansion of an array variable in build_libpq.sh The `options` array variable have been introduced in `adb8336a392a71a3cb2ddf18bd9b17238a01a06e` but is used with `$options` which only expand the 1st value (for bash). The full expansion have to be done with `${options[*]}` Note that `-shared` and `-fPIC` options are still used as they are enabled by default by `./Configure`, but the `zlib` option is not taken into account (disabled by default) * ci: fix wrong command `./configure` does not exists Fix #1178 --- diff --git a/tools/ci/build_libpq.sh b/tools/ci/build_libpq.sh index b6c60caae..543718a4a 100755 --- a/tools/ci/build_libpq.sh +++ b/tools/ci/build_libpq.sh @@ -116,9 +116,9 @@ if [ "$ID" == "centos" ] || [ "$ID" == "macos" ]; then options=(--prefix=${LIBPQ_BUILD_PREFIX} --openssldir=${LIBPQ_BUILD_PREFIX} \ zlib -fPIC shared) if [ -z "${MACOSX_ARCHITECTURE:-}" ]; then - ./config $options + ./config ${options[*]} else - ./configure "darwin64-$MACOSX_ARCHITECTURE-cc" $options + ./config "darwin64-$MACOSX_ARCHITECTURE-cc" ${options[*]} fi make -s depend