]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: fix bad expansion of an array variable in build_libpq.sh
authorubifred <93384039+ubifred@users.noreply.github.com>
Fri, 10 Oct 2025 11:35:35 +0000 (13:35 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 11:35:35 +0000 (12:35 +0100)
* 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

tools/ci/build_libpq.sh

index b6c60caae8d0f94047d6ff47241efab7992fbf4c..543718a4a6f3358bc0a4eaf1809cae5b369d6ea7 100755 (executable)
@@ -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