From: Daniele Varrazzo Date: Sun, 12 Jun 2022 23:58:11 +0000 (+0200) Subject: build: set expected sysconfdir in libpq shipped with the binary package X-Git-Tag: 3.1~57^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4fd08bcbbae95ea1f1c7a94753227fe8b3e8c65;p=thirdparty%2Fpsycopg.git 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 --- 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