Update to plr 8.4 to work with PostgreSQL 12

This commit is contained in:
jeremy 2020-02-06 00:36:58 +00:00
parent f37542820a
commit b5569af452
4 changed files with 9 additions and 29 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.5 2019/07/12 20:43:59 sthen Exp $
# $OpenBSD: Makefile,v 1.6 2020/02/06 00:36:58 jeremy Exp $
COMMENT = R procedural language for PostgreSQL
VERSION = 8.3.0.18
DISTNAME = REL8_3_0_18
VERSION = 8.4
DISTNAME = REL8_4
PKGNAME = postgresql-plr-${VERSION}
CATEGORIES = databases

View File

@ -1,2 +1,2 @@
SHA256 (REL8_3_0_18.tar.gz) = 4toAY7xQKsh5ts9UyT55Hv9JmYaRs9Q8SBId160Ryu0=
SIZE (REL8_3_0_18.tar.gz) = 263146
SHA256 (REL8_4.tar.gz) = v5w4IeY+IDsl8vrlzbdhBBb0q8y8ZSu3jp5oAHE4FjA=
SIZE (REL8_4.tar.gz) = 264511

View File

@ -1,17 +0,0 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2017/11/01 21:51:22 jeremy Exp $
Add RPATH to the ELF header for libR, since it is installed in a location
outside the default ld.so search path.
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -21,7 +21,7 @@ MODULE_big = plr
PG_CPPFLAGS += $(r_includespec)
SRCS += plr.c pg_conversion.c pg_backend_support.c pg_userfuncs.c pg_rsupport.c
OBJS := $(SRCS:.c=.o)
-SHLIB_LINK += -L$(r_libdir1x) -L$(r_libdir2x) -lR
+SHLIB_LINK += -L$(r_libdir1x) -L$(r_libdir2x) -Wl,-R$(r_libdir1x) -lR
DATA_built = plr.sql
DATA = plr--8.3.0.17.sql plr--unpackaged--8.3.0.17.sql
DOCS = README.plr

View File

@ -1,9 +1,6 @@
@comment $OpenBSD: PLIST,v 1.2 2019/02/19 05:11:15 jeremy Exp $
@comment $OpenBSD: PLIST,v 1.3 2020/02/06 00:36:59 jeremy Exp $
lib/postgresql/plr.so
share/doc/postgresql/
share/doc/postgresql/extension/
share/doc/postgresql/extension/README.plr
share/postgresql/extension/plr--8.3.0.18.sql
share/postgresql/extension/plr--unpackaged--8.3.0.18.sql
share/postgresql/extension/plr--8.3.0.18--8.4.sql
share/postgresql/extension/plr--8.4.sql
share/postgresql/extension/plr--unpackaged--8.4.sql
share/postgresql/extension/plr.control
share/postgresql/extension/plr.sql