Date: Tue, 19 Oct 2021 08:58:47 GMT From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 9013d2fa7dc1 - main - databases/postgresql-plv8js: Update to 3.0.0 Message-ID: <202110190858.19J8wlmv074532@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=9013d2fa7dc122d48f1f3060c2fa80195f8d32cd commit 9013d2fa7dc122d48f1f3060c2fa80195f8d32cd Author: Felix Palmen <felix@palmen-it.de> AuthorDate: 2021-10-19 07:27:06 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2021-10-19 08:58:34 +0000 databases/postgresql-plv8js: Update to 3.0.0 Unbreak the build, needs C++14 and CXXFLAGS passed to the build in a non-standard way. PR: 259262 --- databases/postgresql-plv8js/Makefile | 12 +++--- databases/postgresql-plv8js/distinfo | 6 +-- databases/postgresql-plv8js/files/patch-Makefile | 11 ----- databases/postgresql-plv8js/files/patch-plv8.cc | 27 ------------- .../postgresql-plv8js/files/patch-plv8__type.cc | 47 ++++++++++++++++++++++ .../postgresql-plv8js/files/patch-plv8_func.cc | 26 ------------ .../postgresql-plv8js/files/patch-plv8_type.cc | 26 ------------ databases/postgresql-plv8js/pkg-plist | 26 +++++++++++- 8 files changed, 82 insertions(+), 99 deletions(-) diff --git a/databases/postgresql-plv8js/Makefile b/databases/postgresql-plv8js/Makefile index eda16eb751f4..0784877812f0 100644 --- a/databases/postgresql-plv8js/Makefile +++ b/databases/postgresql-plv8js/Makefile @@ -1,9 +1,8 @@ # Created by: vanilla@ PORTNAME= plv8 -PORTVERSION= 1.4.8 +PORTVERSION= 3.0.0 DISTVERSIONPREFIX= v -PORTREVISION= 6 CATEGORIES= databases PKGNAMEPREFIX= postgresql${PGSQL_VER:S/.//}- PKGNAMESUFFIX= js @@ -13,13 +12,16 @@ COMMENT= PL/v8js procedural language for PostgreSQL database LICENSE= PostgreSQL -BROKEN= fails to build - +BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libv8.so:lang/v8 -USES= compiler:c++11-lang gmake perl5 pgsql:9.6-10 +USES= compiler:c++14-lang gmake perl5 pgsql:9.6-10 USE_PERL5= build USE_GITHUB= yes PLIST_SUB= PORTVERSION="${PORTVERSION}" +CXXFLAGS+= -std=c++14 +MAKEFILE= Makefile.shared +MAKE_ARGS= CUSTOM_CC=${CXX} CCFLAGS="${CXXFLAGS}" + .include <bsd.port.mk> diff --git a/databases/postgresql-plv8js/distinfo b/databases/postgresql-plv8js/distinfo index 3311176877e1..59dc57b65113 100644 --- a/databases/postgresql-plv8js/distinfo +++ b/databases/postgresql-plv8js/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1483464767 -SHA256 (plv8-plv8-v1.4.8_GH0.tar.gz) = 485c4bb02cc4e7300d249d9ec0dc2be8f7f6b69ded0fd91ba4f7a4ed90ad384a -SIZE (plv8-plv8-v1.4.8_GH0.tar.gz) = 155736 +TIMESTAMP = 1634572468 +SHA256 (plv8-plv8-v3.0.0_GH0.tar.gz) = de030f5d6b0439710efa05f4c35ffb8ef36ae754fa0e3c46d334352cf1507661 +SIZE (plv8-plv8-v3.0.0_GH0.tar.gz) = 9312158 diff --git a/databases/postgresql-plv8js/files/patch-Makefile b/databases/postgresql-plv8js/files/patch-Makefile deleted file mode 100644 index 87b4675891c8..000000000000 --- a/databases/postgresql-plv8js/files/patch-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.orig 2015-05-26 17:46:56 UTC -+++ Makefile -@@ -21,7 +21,7 @@ PG_VERSION_NUM := $(shell cat `$(PG_CONF - | perl -ne 'print $$1 and exit if /PG_VERSION_NUM\s+(\d+)/') - - # set your custom C++ compler --CUSTOM_CC = g++ -+CUSTOM_CC := $(CXX) - JSS = coffee-script.js livescript.js - # .cc created from .js - JSCS = $(JSS:.js=.cc) diff --git a/databases/postgresql-plv8js/files/patch-plv8.cc b/databases/postgresql-plv8js/files/patch-plv8.cc deleted file mode 100644 index f58f12fe420f..000000000000 --- a/databases/postgresql-plv8js/files/patch-plv8.cc +++ /dev/null @@ -1,27 +0,0 @@ ---- plv8.cc.orig 2015-05-26 19:46:56.000000000 +0200 -+++ plv8.cc 2016-04-04 17:11:11.340628000 +0200 -@@ -9,11 +9,6 @@ - #include <new> - - extern "C" { --#define delete delete_ --#define namespace namespace_ --#define typeid typeid_ --#define typename typename_ --#define using using_ - - #if PG_VERSION_NUM >= 90300 - #include "access/htup_details.h" -@@ -32,12 +27,6 @@ extern "C" { - #include "utils/rel.h" - #include "utils/syscache.h" - --#undef delete --#undef namespace --#undef typeid --#undef typename --#undef using -- - PG_MODULE_MAGIC; - - PG_FUNCTION_INFO_V1(plv8_call_handler); diff --git a/databases/postgresql-plv8js/files/patch-plv8__type.cc b/databases/postgresql-plv8js/files/patch-plv8__type.cc new file mode 100644 index 000000000000..bcfacda9646a --- /dev/null +++ b/databases/postgresql-plv8js/files/patch-plv8__type.cc @@ -0,0 +1,47 @@ +--- plv8_type.cc.orig 2021-10-19 07:08:47 UTC ++++ plv8_type.cc +@@ -600,7 +600,7 @@ CreateExternalArray(void *data, plv8_external_array_ty + array->SetInternalField(0, External::New(isolate, DatumGetPointer(datum))); + + // needs to be a copy, as the data could go away +- memcpy(buffer->GetContents().Data(), data, byte_size); ++ memcpy(buffer->GetBackingStore()->Data(), data, byte_size); + + return array; + } +@@ -710,7 +710,7 @@ ToScalarDatum(Handle<v8::Value> value, bool *isnull, p + { + if (value->IsUint8Array() || value->IsInt8Array()) { + v8::Handle<v8::Uint8Array> array = v8::Handle<v8::Uint8Array>::Cast(value); +- void *data = array->Buffer()->GetContents().Data(); ++ void *data = array->Buffer()->GetBackingStore()->Data(); + int len = array->Length(); + size_t size = len + VARHDRSZ; + void *result = (void *) palloc(size); +@@ -722,7 +722,7 @@ ToScalarDatum(Handle<v8::Value> value, bool *isnull, p + + if (value->IsUint16Array() || value->IsInt16Array()) { + v8::Handle<v8::Uint16Array> array = v8::Handle<v8::Uint16Array>::Cast(value); +- void *data = array->Buffer()->GetContents().Data(); ++ void *data = array->Buffer()->GetBackingStore()->Data(); + int len = array->Length(); + size_t size = (len * 2) + VARHDRSZ; + void *result = (void *) palloc(size); +@@ -734,7 +734,7 @@ ToScalarDatum(Handle<v8::Value> value, bool *isnull, p + + if (value->IsUint32Array() || value->IsInt32Array()) { + v8::Handle<v8::Uint32Array> array = v8::Handle<v8::Uint32Array>::Cast(value); +- void *data = array->Buffer()->GetContents().Data(); ++ void *data = array->Buffer()->GetBackingStore()->Data(); + int len = array->Length(); + size_t size = (len * 4) + VARHDRSZ; + void *result = (void *) palloc(size); +@@ -746,7 +746,7 @@ ToScalarDatum(Handle<v8::Value> value, bool *isnull, p + + if (value->IsArrayBuffer()) { + v8::Handle<v8::ArrayBuffer> array = v8::Handle<v8::ArrayBuffer>::Cast(value); +- void *data = array->GetContents().Data(); ++ void *data = array->GetBackingStore()->Data(); + int len = array->ByteLength(); + size_t size = len + VARHDRSZ; + void *result = (void *) palloc(size); diff --git a/databases/postgresql-plv8js/files/patch-plv8_func.cc b/databases/postgresql-plv8js/files/patch-plv8_func.cc deleted file mode 100644 index 656f27398989..000000000000 --- a/databases/postgresql-plv8js/files/patch-plv8_func.cc +++ /dev/null @@ -1,26 +0,0 @@ ---- plv8_func.cc.orig 2015-05-26 19:46:56.000000000 +0200 -+++ plv8_func.cc 2016-04-04 17:11:11.341047000 +0200 -@@ -10,11 +10,6 @@ - #include <sstream> - - extern "C" { --#define delete delete_ --#define namespace namespace_ --#define typeid typeid_ --#define typename typename_ --#define using using_ - - #include "access/xact.h" - #include "catalog/pg_type.h" -@@ -23,11 +18,6 @@ extern "C" { - #include "utils/builtins.h" - #include "utils/lsyscache.h" - --#undef delete --#undef namespace --#undef typeid --#undef typename --#undef using - } // extern "C" - - using namespace v8; diff --git a/databases/postgresql-plv8js/files/patch-plv8_type.cc b/databases/postgresql-plv8js/files/patch-plv8_type.cc deleted file mode 100644 index e1713d73e77b..000000000000 --- a/databases/postgresql-plv8js/files/patch-plv8_type.cc +++ /dev/null @@ -1,26 +0,0 @@ ---- plv8_type.cc.orig 2015-05-26 19:46:56.000000000 +0200 -+++ plv8_type.cc 2016-04-04 17:11:11.341361000 +0200 -@@ -8,11 +8,6 @@ - #include "plv8.h" - - extern "C" { --#define delete delete_ --#define namespace namespace_ --#define typeid typeid_ --#define typename typename_ --#define using using_ - - #if PG_VERSION_NUM >= 90300 - #include "access/htup_details.h" -@@ -29,11 +24,6 @@ extern "C" { - #include "utils/syscache.h" - #include "utils/typcache.h" - --#undef delete --#undef namespace --#undef typeid --#undef typename --#undef using - } // extern "C" - - //#define CHECK_INTEGER_OVERFLOW diff --git a/databases/postgresql-plv8js/pkg-plist b/databases/postgresql-plv8js/pkg-plist index 4aa9bc72976d..e019fa5726c1 100644 --- a/databases/postgresql-plv8js/pkg-plist +++ b/databases/postgresql-plv8js/pkg-plist @@ -1,6 +1,30 @@ -lib/postgresql/plv8.so +lib/postgresql/plv8-%%PORTVERSION%%.so share/postgresql/extension/plv8.control share/postgresql/extension/plv8--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--1.5.0--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--1.5.1--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--1.5.2--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--1.5.3--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--1.5.4--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--1.5.5--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--1.5.6--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--1.5.7--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.0.0--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.0.1--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.0.3--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.1.0--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.1.2--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.0--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.1--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.10--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.2--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.3--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.4--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.5--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.6--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.7--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.8--%%PORTVERSION%%.sql +share/postgresql/extension/plv8--2.3.9--%%PORTVERSION%%.sql share/postgresql/extension/plcoffee.control share/postgresql/extension/plcoffee--%%PORTVERSION%%.sql share/postgresql/extension/plls.control
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110190858.19J8wlmv074532>