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

crux at crux.nu crux at crux.nu
Sun Aug 15 09:14:45 UTC 2021


commit c7ffa45ab1e23abe8ef500957f44c41b30a59138
Author: Tim Biermann <tbier at posteo.de>
Date:   Sun Aug 15 11:14:35 2021 +0200

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

diff --git a/postgresql/.signature b/postgresql/.signature
index 177098de2..e5228215c 100644
--- a/postgresql/.signature
+++ b/postgresql/.signature
@@ -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
diff --git a/postgresql/Pkgfile b/postgresql/Pkgfile
index aea4e8661..fe80b2904 100644
--- a/postgresql/Pkgfile
+++ b/postgresql/Pkgfile
@@ -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'
diff --git a/postgresql/postgresql-perl-rpath.patch b/postgresql/postgresql-perl-rpath.patch
new file mode 100644
index 000000000..1eff65da4
--- /dev/null
+++ b/postgresql/postgresql-perl-rpath.patch
@@ -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 \
diff --git a/postgresql/post-install b/postgresql/pre-install
similarity index 100%
rename from postgresql/post-install
rename to postgresql/pre-install


More information about the CRUX mailing list