Blame SOURCES/postgresql-perl-rpath.patch

13fbc1
We configure Postgres with --disable-rpath because for the most part we
13fbc1
want to leave it to ldconfig to determine where libraries are.  However,
13fbc1
for some reason the Perl package puts libperl.so in a nonstandard place
13fbc1
and doesn't add that place to the ldconfig search path.  I think this
13fbc1
is a Perl packaging bug, myself, but apparently it's not going to change.
13fbc1
So work around it by adding an rpath spec to plperl.so (only).
13fbc1
Per bug #162198.
13fbc1
13fbc1
13fbc1
diff -up postgresql-12beta2/src/pl/plperl/GNUmakefile.p3 postgresql-12beta2/src/pl/plperl/GNUmakefile
13fbc1
--- postgresql-12beta2/src/pl/plperl/GNUmakefile.p3	2019-07-26 15:28:50.210984029 +0200
13fbc1
+++ postgresql-12beta2/src/pl/plperl/GNUmakefile	2019-07-26 15:29:38.504501120 +0200
13fbc1
@@ -55,6 +55,9 @@ endif # win32
13fbc1
 
13fbc1
 SHLIB_LINK = $(perl_embed_ldflags)
13fbc1
 
13fbc1
+# Force rpath to be used even though we disable it everywhere else
13fbc1
+SHLIB_LINK += $(rpath)
13fbc1
+
13fbc1
 REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-extension=plperl  --load-extension=plperlu
13fbc1
 REGRESS = plperl plperl_lc plperl_trigger plperl_shared plperl_elog plperl_util plperl_init plperlu plperl_array plperl_call plperl_transaction
13fbc1
 # if Perl can support two interpreters in one backend,