Update to pllua 1.1.0

Switch to using GitHub, using a release plus a couple
post-release dist patches for PostgreSQL 11 support.

OK ajacoutot@
This commit is contained in:
jeremy 2019-02-19 05:10:51 +00:00
parent 35199bb658
commit e24353409e
6 changed files with 35 additions and 59 deletions

View File

@ -1,15 +1,14 @@
# $OpenBSD: Makefile,v 1.12 2018/12/02 13:26:42 ajacoutot Exp $ # $OpenBSD: Makefile,v 1.13 2019/02/19 05:10:51 jeremy Exp $
COMMENT = Lua procedural language support for PostgreSQL COMMENT = Lua procedural language support for PostgreSQL
VERSION = 1.0 VERSION = 1.1.0
DISTNAME = pllua-${VERSION} DISTNAME = v${VERSION}
PKGNAME = postgresql-pllua-${VERSION} PKGNAME = postgresql-pllua-${VERSION}
REVISION = 4
CATEGORIES = databases CATEGORIES = databases
HOMEPAGE = http://pllua.projects.postgresql.org/ HOMEPAGE = https://github.com/pllua/pllua
MAINTAINER = Jeremy Evans <jeremy@openbsd.org> MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
@ -18,15 +17,21 @@ PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c ${MODLUA_WANTLIB} WANTLIB = c ${MODLUA_WANTLIB}
MASTER_SITES = http://pgfoundry.org/frs/download.php/3481/ MASTER_SITES = https://github.com/pllua/pllua/archive/
MASTER_SITES0 = https://github.com/pllua/pllua/commit/
PATCH_DIST_STRIP = -p1
PATCHFILES = 3fcf91f71b8a8a6ceb46b59b132ed8d7cc81eb63.diff:0 \
3d926a6b0117f168e7a29a18bb16110fea2957c2.diff:0
MODULES = lang/lua MODULES = lang/lua
BUILD_DEPENDS = ${RUN_DEPENDS} BUILD_DEPENDS = ${RUN_DEPENDS} \
RUN_DEPENDS = postgresql-server->=10,<11:databases/postgresql,-server postgresql-client->=11,<12:databases/postgresql,-main
RUN_DEPENDS = postgresql-server->=11,<12:databases/postgresql,-server
USE_GMAKE = Yes USE_GMAKE = Yes
WRKDIST = ${WRKDIR}/pllua-0.3.2 WRKDIST = ${WRKDIR}/pllua-1.1.0
SUBST_VARS = MODLUA_INCL_DIR MODLUA_WANTLIB SUBST_VARS = MODLUA_INCL_DIR MODLUA_WANTLIB
pre-configure: pre-configure:

View File

@ -1,2 +1,6 @@
SHA256 (pllua-1.0.tar.gz) = ThEbqnpiwvVXZ6eNMCg67Tj3poWEJGh5NgYiYuC6p0I= SHA256 (3d926a6b0117f168e7a29a18bb16110fea2957c2.diff) = sZaSN8X5qFlXiYse226goM2l46g4af7Ha3wp/Bvuw/k=
SIZE (pllua-1.0.tar.gz) = 31324 SHA256 (3fcf91f71b8a8a6ceb46b59b132ed8d7cc81eb63.diff) = clMmZMUXJ3naJXriZ6CRStRb6L/OFyBxKf3Tqq++WAk=
SHA256 (v1.1.0.tar.gz) = LIpFfG3stYm1ukAp9IanwEZFMPh8y4Ngkh5NdmD+aXE=
SIZE (3d926a6b0117f168e7a29a18bb16110fea2957c2.diff) = 9711
SIZE (3fcf91f71b8a8a6ceb46b59b132ed8d7cc81eb63.diff) = 8005
SIZE (v1.1.0.tar.gz) = 53205

View File

@ -1,14 +1,16 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2012/10/10 10:41:36 jeremy Exp $ $OpenBSD: patch-Makefile,v 1.2 2019/02/19 05:10:51 jeremy Exp $
--- Makefile.orig Tue Oct 9 17:27:48 2012
+++ Makefile Tue Oct 9 17:30:08 2012 Index: Makefile
@@ -4,8 +4,8 @@ --- Makefile.orig
+++ Makefile
@@ -6,8 +6,8 @@ PKG_LIBDIR := $(shell $(PG_CONFIG) --pkglibdir)
# Lua specific # Lua specific
# General # General
-LUAINC = -LUA_INCDIR ?= /usr/include/lua5.1
-LUALIB = -llua -LUALIB ?= -L/usr/local/lib -llua5.1
+LUAINC = -I${MODLUA_INCL_DIR} +LUA_INCDIR ?= ${MODLUA_INCL_DIR}
+LUALIB = -L${LOCALBASE}/lib -l${MODLUA_WANTLIB} +LUALIB ?= -L${LOCALBASE}/lib -l${MODLUA_WANTLIB}
# Debian/Ubuntu # LuaJIT
#LUAINC = -I/usr/include/lua5.1 #LUA_INCDIR = /usr/local/include/luajit-2.0

View File

@ -1,23 +0,0 @@
$OpenBSD: patch-pllua_h,v 1.2 2013/10/15 02:21:13 jeremy Exp $
Recent versions of PostgreSQL require an extra header to get the
Relation struct defintion, and pllua hasn't been updated recently.
--- pllua.h.orig Sun Sep 20 07:22:21 2009
+++ pllua.h Thu Oct 3 13:17:41 2013
@@ -11,6 +11,7 @@
#include <fmgr.h>
#include <funcapi.h>
#include <access/heapam.h>
+#include "access/htup_details.h"
#include <catalog/namespace.h>
#include <catalog/pg_proc.h>
#include <catalog/pg_type.h>
@@ -25,6 +26,7 @@
#include <utils/datum.h>
#include <utils/builtins.h>
#include <utils/array.h>
+#include <utils/rel.h>
/* Lua */
#include <lua.h>
#include <lualib.h>

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-plluaapi_c,v 1.1 2013/10/15 02:21:13 jeremy Exp $
--- plluaapi.c.orig Thu Oct 3 13:09:19 2013
+++ plluaapi.c Thu Oct 3 13:09:56 2013
@@ -22,7 +22,7 @@ typedef struct luaP_Info {
/* extended type info */
typedef struct luaP_Typeinfo {
int oid;
- int2 len;
+ int16 len;
char type;
char align;
bool byval;

View File

@ -1,5 +1,5 @@
@comment $OpenBSD: PLIST,v 1.2 2018/09/04 12:46:10 espie Exp $ @comment $OpenBSD: PLIST,v 1.3 2019/02/19 05:10:51 jeremy Exp $
lib/postgresql/pllua.so lib/postgresql/pllua.so
share/doc/pkg-readmes/${PKGSTEM} share/doc/pkg-readmes/${PKGSTEM}
share/postgresql/contrib/ share/postgresql/extension/pllua--1.0.sql
share/postgresql/contrib/pllua.sql share/postgresql/extension/pllua.control