]> 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)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 12 Oct 2025 01:08:39 +0000 (03:08 +0200)
* 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/build/build_libpq.sh

index 4d05bd503d2c789116803bbe9d20d8b4712a13fe..7a303d7e26c45d37c68b328957c59e8628ffb409 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