1
0
forked from ports/contrib

[notify] postgresql: fixed rpath for perl, moved post-install script to pre-install, you might need to readd the postgres user/group

This commit is contained in:
Tim Biermann 2021-08-15 11:14:35 +02:00
parent a50ada63c1
commit c7ffa45ab1
Signed by: tb
GPG Key ID: 42F8B4E30B673606
4 changed files with 19 additions and 4 deletions

View File

@ -1,8 +1,9 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3xUHVuSrPhSkH+WmhC6OeFjrCL6FKjATiaWg1NCA1q8JcZHPiQwh9D+mlS8uVoEX6IxAV9XFLkQUiPkCRH+CWw0=
SHA256 (Pkgfile) = 631691a46c8f39aae222c8cfee0af38c8846674c59fe086ffd907446e1cef612
RWSagIOpLGJF37mExMAqU/y2U51Ud+ksRgxm7YWbeoyRGusGtHWcriMyxtDILV97XQtLhjpQzXop4KhSol4BHw0rBZ3DtDEcVAk=
SHA256 (Pkgfile) = eaac922639fdfb3452251318f6a7bd349dbaeae0dd98dfd1fb5a3e2344f7d8b9
SHA256 (.footprint) = fa3fd0484cb523c505cfe747b2b369242e68e6f61168b86b2b6ba1850bdc44e0
SHA256 (postgresql-13.4.tar.bz2) = ea93e10390245f1ce461a54eb5f99a48d8cabd3a08ce4d652ec2169a357bc0cd
SHA256 (postgresql-run-socket.patch) = 02ffb53b0a5049233f665c873b96264db77daab30e5a2194d038202d815a8e6a
SHA256 (postgresql-perl-rpath.patch) = af6186d40128e043f333da4591455bf62b7c96e80214835f5c8c60b635ea9afb
SHA256 (postgresql.rc) = 95ada4267034cf5d33340b8411a18f8cbd0428b5714afac16990b5c3a144f347
SHA256 (postgresql.pam) = 978a2542078a1216b0c23756f49e79ac5a99c905e5ec1e57867d0941a505668a

View File

@ -6,15 +6,16 @@
name=postgresql
version=13.4
release=1
release=2
source=(https://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2
postgresql-run-socket.patch
postgresql-run-socket.patch postgresql-perl-rpath.patch
postgresql.rc postgresql.pam)
build() {
cd $name-$version
patch -Np1 -i $SRC/postgresql-run-socket.patch
patch -Np1 -i $SRC/postgresql-perl-rpath.patch
# optionals {{{
prt-get isinst clang && PKGMK_PGSQL+=' --with-llvm'

View File

@ -0,0 +1,13 @@
diff -Naur postgresql-9.1.5.orig/src/pl/plperl/GNUmakefile postgresql-9.1.5/src/pl/plperl/GNUmakefile
--- postgresql-9.1.5.orig/src/pl/plperl/GNUmakefile 2012-08-14 18:41:04.000000000 -0400
+++ postgresql-9.1.5/src/pl/plperl/GNUmakefile 2012-08-17 11:15:09.457116708 -0400
@@ -55,6 +55,9 @@
SHLIB_LINK = $(perl_embed_ldflags)
+# Force rpath to be used even though we disable it everywhere else
+SHLIB_LINK += $(rpath)
+
REGRESS_OPTS = --dbname=$(PL_TESTDB)
REGRESS = plperl_setup plperl plperl_lc plperl_trigger plperl_shared \
plperl_elog plperl_util plperl_init plperlu plperl_array \