This allows client applications to link to version-specific libraries.
Used by pg-checksums.
Forwarded: No, (somewhat) Debian specific
Gbp-Pq: Name libpgport-pkglibdir
To make the PostgreSQL server packages build reproducibly, we need to remove
the build path from -fdebug-prefix-map and -ffile-prefix-map in CFLAGS.
* The actual server build still uses the original CFLAGS so the build path is
correctly mapped in the object files.
* The information printed by the pg_config binary and the system view is
filtered in src/common/Makefile.
* The build paths stored in Makefile.global are filtered in debian/rules.
(abs_top_builddir, abs_top_srcdir, configure_args, CFLAGS)
* To make PGXS module builds reproducible, pg_buildext copies the environment
CFLAGS to COPT where Makefile.global picks them up, using the prefix maps
from dpkg-buildflags.
Gbp-Pq: Name filter-debug-prefix-map
Forwarded: No, Debian specific configuration with postgresql-common
Using /tmp for sockets allows everyone to spoof a PostgreSQL server. Thus use
/var/run/postgresql/ for "system" clusters which run as 'postgres' (user
clusters will still use /tmp). Since system cluster are by far the common case,
set it as default.
Gbp-Pq: Name 51-default-sockets-in-var.patch
Forwarded: No, Debian specific packaging with postgresql-common
* Install lib files into /usr/lib/postgresql/<version>/lib/
* Install server related header files into /usr/include/postgresql/<version>/server/
* Disable PostgreSQL's automagic path mangling and fix libdir for pg_config,
so that pg_config in /usr/bin and /usr/lib/postgresql/<version>/bin behave
identically.
Bug-Debian: http://bugs.debian.org/462037
Gbp-Pq: Name 50-per-version-dirs.patch