postgresql/postgresql-perl-rpath.patch
Stephan Kulow fe82c7846e Accepting request 41689 from home:coolo:branches:openSUSE:Factory
Copy from home:coolo:branches:openSUSE:Factory/postgresql via accept of submit request 41689 revision 2.
Request was accepted with message:
self accept

OBS-URL: https://build.opensuse.org/request/show/41689
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=39
2010-06-18 14:11:48 +00:00

24 lines
1.0 KiB
Diff

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.
Index: src/pl/plperl/GNUmakefile
===================================================================
--- src/pl/plperl/GNUmakefile.orig 2010-05-13 18:40:36.000000000 +0200
+++ src/pl/plperl/GNUmakefile 2010-06-18 10:10:04.296498028 +0200
@@ -38,6 +38,9 @@ OBJS = plperl.o spi_internal.o SPI.o
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-language=plperl --load-language=plperlu
REGRESS = plperl plperl_trigger plperl_shared plperl_elog
# if Perl can support two interpreters in one backend,