summaryrefslogtreecommitdiffstats
path: root/postgresql-perl-rpath.patch
diff options
context:
space:
mode:
authorPavel Kajaba <pkajaba@redhat.com>2015-11-18 10:02:17 +0100
committerPavel Kajaba <pkajaba@redhat.com>2015-11-18 10:02:17 +0100
commitf51c859081bdb81b89293fa7a4d52782ce8429cb (patch)
treee0941f50fe65bcbe241150915e584e868e9a8ae0 /postgresql-perl-rpath.patch
downloadpostgresql-f51c859081bdb81b89293fa7a4d52782ce8429cb.tar.gz
postgresql-f51c859081bdb81b89293fa7a4d52782ce8429cb.tar.xz
postgresql-f51c859081bdb81b89293fa7a4d52782ce8429cb.zip
Added initial files from branch rhscl-2.1-rh-postgresql94-rhel-7
Diffstat (limited to 'postgresql-perl-rpath.patch')
-rw-r--r--postgresql-perl-rpath.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/postgresql-perl-rpath.patch b/postgresql-perl-rpath.patch
new file mode 100644
index 0000000..59c199b
--- /dev/null
+++ b/postgresql-perl-rpath.patch
@@ -0,0 +1,22 @@
+We configure Postgres with --disable-rpath because for the most part we
+want to leave it to ldconfig to determine where libraries are. However,
+for some reason the Perl package puts libperl.so in a nonstandard place
+and doesn't add that place to the ldconfig search path. I think this
+is a Perl packaging bug, myself, but apparently it's not going to change.
+So work around it by adding an rpath spec to plperl.so (only).
+Per bug #162198.
+
+
+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
+@@ -43,6 +43,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) --load-extension=plperl --load-extension=plperlu
+ REGRESS = plperl plperl_lc plperl_trigger plperl_shared plperl_elog plperl_util plperl_init plperlu plperl_array
+ # if Perl can support two interpreters in one backend,