]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
build: set expected sysconfdir in libpq shipped with the binary package
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 12 Jun 2022 23:58:11 +0000 (01:58 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 14 Jun 2022 15:21:05 +0000 (17:21 +0200)
This affects where the pg_service.conf file is looked for.

See https://github.com/psycopg/psycopg2/issues/1365

tools/build/build_libpq.sh

index 21b7f325a530099f1ff394455777173161627777..06360117bdacd448413d0777ddd409037db2c9a6 100755 (executable)
@@ -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