]> 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 12:26:06 +0000 (14:26 +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 6c3dd2add0e8ab722747ff4b8b36879c69cab7a5..733a7e308723f01040fd9835ce9c52a6615458be 100644 (file)
@@ -12,8 +12,8 @@ jobs:
     if: true
 
     env:
-      LIBPQ_VERSION: "15.3"
-      OPENSSL_VERSION: "1.1.1v"
+      LIBPQ_VERSION: "16.0"
+      OPENSSL_VERSION: "1.1.1w"
 
     strategy:
       fail-fast: false
@@ -37,7 +37,7 @@ jobs:
         uses: actions/cache@v3
         with:
           path: /tmp/libpq.build
-          key: libpq-${{ env.LIBPQ_VERSION }}-${{ matrix.platform }}-${{ matrix.arch }}-2
+          key: libpq-${{ matrix.platform }}-${{ matrix.arch }}-${{ env.LIBPQ_VERSION }}-${{ env.OPENSSL_VERSION }}
 
       - name: Create the binary package source tree
         run: python3 ./tools/build/copy_to_binary.py
@@ -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 b191ce551ef66db679d83ee9e56643272adcc2d8..b88a7ad7d5e5ee59ed91d5e54935321771f04727 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.4}"
+postgres_version="${LIBPQ_VERSION:-16.0}"
 
 # Latest release: https://www.openssl.org/source/
 openssl_version="${OPENSSL_VERSION:-1.1.1v}"
@@ -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