]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: upgrade libpq, OpenSSL versions
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 22 Sep 2023 21:31:46 +0000 (23:31 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 23 Sep 2023 02:02:47 +0000 (04:02 +0200)
.github/workflows/packages-bin.yml
tools/build/build_libpq.sh
tools/build/build_macos_arm64.sh
tools/build/wheel_macos_before_all.sh

index cea42ff96c14865513afc7dc50f1460d456982fd..042b72d9e621c8920f5b5f68c81db3cef30ba2ab 100644 (file)
@@ -121,10 +121,12 @@ jobs:
           CIBW_TEST_COMMAND: >-
             pytest {project}/tests -m 'not slow and not flakey' --color yes
           CIBW_ENVIRONMENT: >-
+            PG_VERSION=16
             PSYCOPG_IMPL=binary
             PSYCOPG_TEST_DSN='dbname=postgres'
-            PSYCOPG_TEST_WANT_LIBPQ_BUILD=">= 14"
-            PSYCOPG_TEST_WANT_LIBPQ_IMPORT=">= 14"
+            PATH="/usr/local/opt/postgresql@${PG_VERSION}/bin:$PATH"
+            PSYCOPG_TEST_WANT_LIBPQ_BUILD=">= $PG_VERSION"
+            PSYCOPG_TEST_WANT_LIBPQ_IMPORT=">= $PG_VERSION"
 
       - uses: actions/upload-artifact@v3
         with:
index 783963530143d9ce3e834b633ce8d688a538cd0d..1fd73434085b715bb619efa973971326ac2261f8 100755 (executable)
@@ -9,7 +9,7 @@ set -x
 
 # Latest release: https://www.postgresql.org/ftp/source/
 # IMPORTANT! Change the cache key in packages.yml when upgrading libraries
-postgres_version="${LIBPQ_VERSION:-15.0}"
+postgres_version="${LIBPQ_VERSION:-16.0}"
 
 # Latest release: https://www.openssl.org/source/
 openssl_version="${OPENSSL_VERSION:-1.1.1r}"
@@ -157,7 +157,8 @@ if [ ! -d "${postgres_dir}" ]; then
     # export LD_LIBRARY_PATH="${LIBPQ_BUILD_PREFIX}/lib"
 
     ./configure --prefix=${LIBPQ_BUILD_PREFIX} --sysconfdir=/etc/postgresql-common \
-        --without-readline --with-gssapi --with-openssl --with-pam --with-ldap \
+        --without-readline --without-icu \
+        --with-gssapi --with-openssl --with-pam --with-ldap \
         CPPFLAGS=-I${LIBPQ_BUILD_PREFIX}/include/ LDFLAGS=-L${LIBPQ_BUILD_PREFIX}/lib
     make -C src/interfaces/libpq
     make -C src/bin/pg_config
index f8c2fd75e1a36f860e6c6b4ec58be5f4527ed384..33dff3c4aae376d1677ccdd9b501bcab906f1bbe 100755 (executable)
@@ -11,7 +11,7 @@ set -euo pipefail
 set -x
 
 python_versions="3.8.10 3.9.13 3.10.5 3.11.0"
-pg_version=15
+pg_version=16
 
 # Move to the root of the project
 dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
index 0ddf4263bb03bf6c542719b0a236ff461476c1fe..d2ba619eb60dad7f53e5f11374bb237883b1360c 100755 (executable)
@@ -2,13 +2,15 @@
 
 # Configure the environment needed to build wheel packages on Mac OS.
 # This script is designed to be used by cibuildwheel as CIBW_BEFORE_ALL_MACOS
+#
+# The PG_VERSION env var must be set to a Postgres major version (e.g. 16).
 
 set -euo pipefail
 set -x
 
 dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
-brew install gnu-sed postgresql@15
+brew install gnu-sed postgresql@${PG_VERSION}
 
 # Start the database for testing
 brew services start postgresql