dev-db/postgresql: Hardcode install

Rely on $PATH being in the proper order so that the correct install
program is used for modules utilizing PGXS in both hardened and
non-hardened environments.

Bug: 528786

Package-Manager: portage-2.2.20.1
This commit is contained in:
Aaron W. Swenson
2015-12-15 16:39:51 -05:00
parent 0ef2a66801
commit 17eb751add
4 changed files with 1270 additions and 0 deletions
+5
View File
@@ -112,6 +112,11 @@ src_prepare() {
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
-i src/include/pg_config_manual.h || die
# Rely on $PATH being in the proper order so that the correct
# install program is used for modules utilizing PGXS in both
# hardened and non-hardened environments. (Bug #528786)
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
if use pam ; then
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
-i src/backend/libpq/auth.c || \