[SCM] PostGIS branch master updated. 3.6.0rc2-378-g7af31bf2c
git at osgeo.org
git at osgeo.org
Sun Mar 8 15:48:30 PDT 2026
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 7af31bf2cb1968d7f9f3a275e9723702788b8615 (commit)
from 9025206e69f7e8865b26d61ff771eee8d236d614 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7af31bf2cb1968d7f9f3a275e9723702788b8615
Author: Darafei Praliaskouski <me at komzpa.net>
Date: Mon Mar 9 02:46:35 2026 +0400
#5973: Respect pg_config bindir for utility installs
Closes #5973
diff --git a/NEWS b/NEWS
index 6ed876e0c..df835634c 100644
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,9 @@ This version requires GEOS 3.10 or higher
* Bug Fixes *
+ - #5973, Install PostGIS utilities under `pg_config --bindir` by default
+ and document `pg_config`-derived install paths more accurately
+ (Darafei Praliaskouski)
- #5948, [topology] Prevent MakeTopologyPrecise from erasing edges when
grid size exceeds their extent (Darafei Praliaskouski)
- #5959, Prevent histogram target overflow when analysing massive tables (Darafei Praliaskouski)
diff --git a/README.postgis b/README.postgis
index 21faf6dbf..ed38b126f 100644
--- a/README.postgis
+++ b/README.postgis
@@ -247,11 +247,9 @@ Installation paths will typically be derived by ``pg_config``:
- Lib in ``pg_config --pkglibdir``
- Binaries (loader/dumper) in ``pg_config --bindir``
- - Important support files in ``[prefix]/share/contrib``
- - Manual pages in ``[prefix]/man``
- - Documentation in in ``[prefix]/share/doc``
-
-Where `[prefix]` above is extracted from ``pg_config --configure``.
+ - Important support files in ``pg_config --sharedir``/contrib
+ - Manual pages in ``pg_config --mandir``
+ - Documentation in ``pg_config --docdir``
You can change them using ``./configure`` switches. See CONFIGURATION section.
diff --git a/configure.ac b/configure.ac
index d5fb6cc1b..ce0e97a11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -622,6 +622,15 @@ if test "x$SUPPORT_POSTGRESQL" = "xyes"; then dnl {
AC_SUBST([PGSQL_BINDIR])
+ dnl Keep explicit --bindir, --exec-prefix, and --prefix overrides, but
+ dnl default utilities to the PostgreSQL bindir when the autoconf install
+ dnl directories were left entirely untouched.
+ if test "x$bindir" = 'x${exec_prefix}/bin' \
+ && test "x$exec_prefix" = xNONE \
+ && test "x$prefix" = xNONE; then
+ bindir="$PGSQL_BINDIR"
+ fi
+
dnl Extract the share directory
PGSQL_SHAREDIR=`"$PG_CONFIG" --sharedir`
@@ -670,6 +679,7 @@ if test "$prefix" != "NONE" -a "x$PG_CONFIG" != "xno"; then
AC_MSG_RESULT([ ignore the --prefix. For your info, using the values determined from ])
AC_MSG_RESULT([ $PG_CONFIG we will be installing: ])
AC_MSG_RESULT([ * postgis shared library in $PGSQL_LIBDIR ])
+ AC_MSG_RESULT([ * postgis utilities in $bindir ])
AC_MSG_RESULT([ * postgis SQL files in $PGSQL_SHAREDIR/contrib/postgis-$POSTGIS_MAJOR_VERSION.$POSTGIS_MINOR_VERSION ])
AC_MSG_RESULT([------------------------------------------------------------------------])
fi
@@ -2023,6 +2033,8 @@ fi
if test "x$SUPPORT_POSTGRESQL" = "xyes"; then
AC_MSG_RESULT([ PostgreSQL config: ${PG_CONFIG}])
AC_MSG_RESULT([ PostgreSQL version: ${PGSQL_FULL_VERSION}])
+ AC_MSG_RESULT([ PostgreSQL bindir: ${PGSQL_BINDIR}])
+ AC_MSG_RESULT([ PostGIS utilities: ${bindir}])
else
AC_MSG_RESULT([ PostgreSQL support: DISABLED])
fi
-----------------------------------------------------------------------
Summary of changes:
NEWS | 3 +++
README.postgis | 8 +++-----
configure.ac | 12 ++++++++++++
3 files changed, 18 insertions(+), 5 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list