summaryrefslogtreecommitdiff
path: root/databases/postgresql74-plperl
diff options
context:
space:
mode:
authorjlam <jlam>2004-12-18 16:36:29 +0000
committerjlam <jlam>2004-12-18 16:36:29 +0000
commit7186cce46d517b9fc0ff34a0d9f2acf738478944 (patch)
tree9693943fbb93c64c05b1176b4962e723fda33205 /databases/postgresql74-plperl
parent9bebc45095d8c98a7939c57557d253df109e4a8c (diff)
downloadpkgsrc-7186cce46d517b9fc0ff34a0d9f2acf738478944.tar.gz
Fix postgresql74-plperl so that it finds libperl.so at runtime. The
PostgreSQL configure/build infrastructure tries very hard to separate rpath flags from other LDFLAGS, which is completely unnecessary in pkgsrc since the wrapper scripts are smart enough to deal with it on their own. In this case, the GNU configure script was stripping out the rpath to libperl.so when setting perl_embed_ldflags, so modify the configure script to not do this. Also re-enable this package since it's possible to load the plperl.so language module again. I tested this with: createdb foo createlang -d foo plperl
Diffstat (limited to 'databases/postgresql74-plperl')
-rw-r--r--databases/postgresql74-plperl/Makefile18
1 files changed, 2 insertions, 16 deletions
diff --git a/databases/postgresql74-plperl/Makefile b/databases/postgresql74-plperl/Makefile
index 991904f39c6..5491cd98557 100644
--- a/databases/postgresql74-plperl/Makefile
+++ b/databases/postgresql74-plperl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/10/10 12:24:10 jdolecek Exp $
+# $NetBSD: Makefile,v 1.2 2004/12/18 16:36:29 jlam Exp $
PKGNAME= postgresql74-plperl-${BASE_VERS}
COMMENT= PL/Perl procedural language for the PostgreSQL backend
@@ -12,27 +12,13 @@ USE_BUILDLINK3= yes
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
CONFIGURE_ARGS+= --with-perl
-LIBPERL_DIR= ${PREFIX}/${PERL5_SUB_INSTALLARCHLIB}/CORE
-LDFLAGS+= -Wl,-R${LIBPERL_DIR}
-
BUILD_DIRS= ${WRKSRC}/src/pl/plperl
MAKEFILE= GNUmakefile
PERL5_CONFIGURE= NO
-# On my 2.x system perl 5.8.4's perl & libperl.so are linked with libpthread,
-# thus the module would get linked to libpthread too. Since postmaster is not
-# threaded, loading the language will crash the SQL server.
-BROKEN= "crashes PostgreSQL when compiled with threaded Perl"
-
-# XXX this package requires modification of the link flags to add the
-# directory with libperl.so to the runtime library search path. Since
-# this is currently broken anyway, appropriate patch for src/Makefile.global.in
-# has not been included.
-
-.include "../../security/openssl/buildlink3.mk"
-BUILDLINK_DEPMETHOD.libperl+= build
.include "../postgresql74-lib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
.include "../../lang/libperl/buildlink3.mk"
.include "../../lang/perl5/module.mk"