From e4fd08bcbbae95ea1f1c7a94753227fe8b3e8c65 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 13 Jun 2022 01:58:11 +0200 Subject: [PATCH] build: set expected sysconfdir in libpq shipped with the binary package This affects where the pg_service.conf file is looked for. See https://github.com/psycopg/psycopg2/issues/1365 --- tools/build/build_libpq.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/build_libpq.sh b/tools/build/build_libpq.sh index 21b7f325a..06360117b 100755 --- a/tools/build/build_libpq.sh +++ b/tools/build/build_libpq.sh @@ -110,8 +110,8 @@ if [ ! -d "${postgres_dir}" ]; then export LD_LIBRARY_PATH=/usr/local/lib fi - ./configure --prefix=/usr/local --without-readline \ - --with-gssapi --with-openssl --with-pam --with-ldap + ./configure --prefix=/usr/local --sysconfdir=/etc/postgresql-common \ + --without-readline --with-gssapi --with-openssl --with-pam --with-ldap make -C src/interfaces/libpq make -C src/bin/pg_config make -C src/include -- 2.47.3