Blame SOURCES/postgresql-perl-rpath.patch

62d2ae
We configure Postgres with --disable-rpath because for the most part we
62d2ae
want to leave it to ldconfig to determine where libraries are.  However,
62d2ae
for some reason the Perl package puts libperl.so in a nonstandard place
62d2ae
and doesn't add that place to the ldconfig search path.  I think this
62d2ae
is a Perl packaging bug, myself, but apparently it's not going to change.
62d2ae
So work around it by adding an rpath spec to plperl.so (only).
62d2ae
Per bug #162198.
62d2ae
62d2ae
diff -up postgresql-13.1/src/pl/plperl/GNUmakefile.patch3 postgresql-13.1/src/pl/plperl/GNUmakefile
62d2ae
--- postgresql-13.1/src/pl/plperl/GNUmakefile.patch3	2020-12-09 21:29:47.269556344 +0100
62d2ae
+++ postgresql-13.1/src/pl/plperl/GNUmakefile	2020-12-09 21:31:06.100395606 +0100
62d2ae
@@ -55,6 +55,9 @@ endif # win32
62d2ae
 
62d2ae
 SHLIB_LINK = $(perl_embed_ldflags)
62d2ae
 
62d2ae
+# Force rpath to be used even though we disable it everywhere else
62d2ae
+SHLIB_LINK += $(rpath)
62d2ae
+
62d2ae
 REGRESS_OPTS = --dbname=$(PL_TESTDB)
62d2ae
 REGRESS = plperl_setup plperl plperl_lc plperl_trigger plperl_shared \
62d2ae
 	plperl_elog plperl_util plperl_init plperlu plperl_array \