summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2022-10-06 03:49:25 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2022-10-06 03:49:25 +0100
commitbc82c8f9cc42d8f9313e9c78abdbeee82ec9e052 (patch)
treec43b76e1e0dc194a8d8a1d699a71c7e5a94e358b
parentc38aa27d7dcd16ec65e76df0e40f7a9b6cb863cd (diff)
downloadpsycopg2-bc82c8f9cc42d8f9313e9c78abdbeee82ec9e052.tar.gz
fix: set default SYSCONFDIR to the quasi-standard /etc/postgresql-common2_9_4
Fix #1365.
-rw-r--r--NEWS2
-rwxr-xr-xscripts/build/build_libpq.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2c3a5f8..b606063 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,8 @@ What's new in psycopg 2.9.4
`~psycopg2.extras.register_range()` with customized search_path
(:ticket:`#1487`).
- Handle correctly composite types with names or in schemas requiring escape.
+- Find ``pg_service.conf file in the ``/etc/postgresql-common`` in binary
+ packages (:ticket:`1365`).
- `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
PostgreSQL 15.
- Wheel package compiled against OpenSSL 1.1.1q and PostgreSQL 14.4
diff --git a/scripts/build/build_libpq.sh b/scripts/build/build_libpq.sh
index 938b524..3b04072 100755
--- a/scripts/build/build_libpq.sh
+++ b/scripts/build/build_libpq.sh
@@ -117,7 +117,8 @@ if [ ! -d "${postgres_dir}" ]; then
fi
./configure --prefix=/usr/local --without-readline \
- --with-gssapi --with-openssl --with-pam --with-ldap
+ --with-gssapi --with-openssl --with-pam --with-ldap \
+ --sysconfdir=/etc/postgresql-common
make -C src/interfaces/libpq
make -C src/bin/pg_config
make -C src/include