diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2019-06-16 10:34:23 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2019-06-16 10:34:23 +0000 |
commit | cad61f5f361d7328d09c82d5aca85d25e0a6274e (patch) | |
tree | 7c1eadf7cbeb4a5b8664f863742e4e59cd33ce7d | |
parent | 77ed2dc6244ab9adb3f7f3fe9f942954f65ed87f (diff) |
Notes
-rw-r--r-- | databases/tarantool/Makefile | 12 | ||||
-rw-r--r-- | databases/tarantool/distinfo | 22 | ||||
-rw-r--r-- | databases/tarantool/files/patch-src-box-tuple_format.c | 36 | ||||
-rw-r--r-- | databases/tarantool/files/patch-src-box-vy_stmt.c | 28 | ||||
-rw-r--r-- | databases/tarantool/files/patch-src-lib-swim-swim_io.h | 12 | ||||
-rw-r--r-- | databases/tarantool/files/patch-src-lib-swim-swim_proto.c | 12 | ||||
-rw-r--r-- | databases/tarantool/files/patch-src-lib-swim-swim_proto.h | 13 | ||||
-rw-r--r-- | databases/tarantool/files/patch-src-lib-swim-swim_transport.h | 15 | ||||
-rw-r--r-- | databases/tarantool/files/patch-test-unit-swim_test_transport.c | 12 |
9 files changed, 145 insertions, 17 deletions
diff --git a/databases/tarantool/Makefile b/databases/tarantool/Makefile index c1b466ff4113..506edd5b65f3 100644 --- a/databases/tarantool/Makefile +++ b/databases/tarantool/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= tarantool -PORTVERSION= 1.10.3 -PORTREVISION= 1 +PORTVERSION= 2.1.2 CATEGORIES= databases MAINTAINER= sunpoet@FreeBSD.org @@ -37,11 +36,11 @@ PLIST_SUB= TT_DATADIR=${TT_DATADIR} \ TT_LOGDIR=${TT_LOGDIR} SUB_FILES= pkg-message -GH_TUPLE= rtsisyk:luafun:e248e00:luafun/third_party/luafun \ - tarantool:luajit:d92380f:luajit/third_party/luajit \ +GH_TUPLE= luafun:luafun:e248e00:luafun/third_party/luafun \ + tarantool:luajit:5f0a43a:luajit/third_party/luajit \ tarantool:luarocks:05312b5:luarocks/third_party/luarocks \ - tarantool:small:cdf7d4a:small/src/lib/small \ - tarantool:test-run:8ed7445:test_run/test-run + tarantool:small:020716d:small/src/lib/small \ + tarantool:test-run:27aebd9:test_run/test-run USE_GITHUB= yes USERS= tarantool @@ -58,6 +57,7 @@ DEBUG_CMAKE_BOOL= ENABLE_BACKTRACE post-patch: @${ECHO_CMD} ${PORTVERSION}-0 > ${WRKSRC}/VERSION @${GREP} -lr 'msgpuck/msgpuck.h' ${WRKSRC}/ | ${XARGS} ${REINPLACE_CMD} -e 's|msgpuck/msgpuck.h|msgpuck.h|' + @${REINPLACE_CMD} -e 's|libmsgpuck.a|libmsgpuck.so|' ${WRKSRC}/cmake/FindMsgPuck.cmake post-install: @${RMDIR} ${STAGEDIR}${PREFIX}/lib/tarantool/ diff --git a/databases/tarantool/distinfo b/databases/tarantool/distinfo index 8761db2c0dd4..014cc6fd9c19 100644 --- a/databases/tarantool/distinfo +++ b/databases/tarantool/distinfo @@ -1,13 +1,13 @@ -TIMESTAMP = 1554489603 -SHA256 (tarantool-tarantool-1.10.3_GH0.tar.gz) = f07448e8f06e40370ef0d9c3681121e39769299e4b6afad3cefdc956c1f7d50e -SIZE (tarantool-tarantool-1.10.3_GH0.tar.gz) = 2542792 -SHA256 (rtsisyk-luafun-e248e00_GH0.tar.gz) = 9978dd21c0688d5c6206846697be17363a4be446851c1c1d60e2427fe200b7f2 -SIZE (rtsisyk-luafun-e248e00_GH0.tar.gz) = 67323 -SHA256 (tarantool-luajit-d92380f_GH0.tar.gz) = 41597564b3fc11ce96f3f49044fc39745d39b80abd33ad72483614566a3bad74 -SIZE (tarantool-luajit-d92380f_GH0.tar.gz) = 1027807 +TIMESTAMP = 1560671633 +SHA256 (tarantool-tarantool-2.1.2_GH0.tar.gz) = bc8ec0e3e060ca620159179fff169a505aaa0eec5942bf86999897e2087f9596 +SIZE (tarantool-tarantool-2.1.2_GH0.tar.gz) = 4206520 +SHA256 (luafun-luafun-e248e00_GH0.tar.gz) = 9978dd21c0688d5c6206846697be17363a4be446851c1c1d60e2427fe200b7f2 +SIZE (luafun-luafun-e248e00_GH0.tar.gz) = 67323 +SHA256 (tarantool-luajit-5f0a43a_GH0.tar.gz) = 4b0bb2b8c1c87defbef24664c784d98b8aa531263d461117271f2f4adf38329d +SIZE (tarantool-luajit-5f0a43a_GH0.tar.gz) = 1028458 SHA256 (tarantool-luarocks-05312b5_GH0.tar.gz) = 4ee5ef77b67f2e5eed41aba8e4682aa7dd2516618c1d38caf781d38a7e19818f SIZE (tarantool-luarocks-05312b5_GH0.tar.gz) = 4027574 -SHA256 (tarantool-small-cdf7d4a_GH0.tar.gz) = 7b3e37d2bcc4dfbc4924785cc27bc2bddaa81393044826956470ff8eebd5c7bf -SIZE (tarantool-small-cdf7d4a_GH0.tar.gz) = 108844 -SHA256 (tarantool-test-run-8ed7445_GH0.tar.gz) = 501e84dd15e2d00910a5f95488cf6c96981cce1f4a45b642be04dd6cf57e8cc4 -SIZE (tarantool-test-run-8ed7445_GH0.tar.gz) = 60641 +SHA256 (tarantool-small-020716d_GH0.tar.gz) = f30115f7d07f0f333f6b933aa635aad9795586a7adcbc37ef851eab70907f750 +SIZE (tarantool-small-020716d_GH0.tar.gz) = 113841 +SHA256 (tarantool-test-run-27aebd9_GH0.tar.gz) = 19a41fce7120106b7c91b27eee7f99fb605ec11f16b0669bda5604bd23b9ebbe +SIZE (tarantool-test-run-27aebd9_GH0.tar.gz) = 62051 diff --git a/databases/tarantool/files/patch-src-box-tuple_format.c b/databases/tarantool/files/patch-src-box-tuple_format.c new file mode 100644 index 000000000000..0635d1ce7f70 --- /dev/null +++ b/databases/tarantool/files/patch-src-box-tuple_format.c @@ -0,0 +1,36 @@ +Obtained from: https://github.com/tarantool/tarantool/commit/518557963250fd30b22005376feb4e0e2a6786a1 + +--- src/box/tuple_format.c.orig ++++ src/box/tuple_format.c +@@ -850,8 +850,8 @@ tuple_field_map_create(struct tuple_format *format, const char *tuple, + struct tuple_field *field; + struct json_token *parent = &format->fields.root; + while (true) { +- int idx; +- while ((idx = mp_stack_advance(&stack)) == -1) { ++ struct mp_frame *frame = mp_stack_top(&stack); ++ while (!mp_frame_advance(frame)) { + /* + * If the elements of the current frame + * are over, pop this frame out of stack +@@ -863,6 +863,7 @@ tuple_field_map_create(struct tuple_format *format, const char *tuple, + mp_stack_pop(&stack); + if (mp_stack_is_empty(&stack)) + goto finish; ++ frame = mp_stack_top(&stack); + parent = parent->parent; + } + /* +@@ -871,10 +872,10 @@ tuple_field_map_create(struct tuple_format *format, const char *tuple, + * for the subsequent format::fields lookup. + */ + struct json_token token; +- switch (mp_stack_type(&stack)) { ++ switch (frame->type) { + case MP_ARRAY: + token.type = JSON_TOKEN_NUM; +- token.num = idx; ++ token.num = frame->idx; + break; + case MP_MAP: + if (mp_typeof(*pos) != MP_STR) { diff --git a/databases/tarantool/files/patch-src-box-vy_stmt.c b/databases/tarantool/files/patch-src-box-vy_stmt.c new file mode 100644 index 000000000000..6a1c08fdf21e --- /dev/null +++ b/databases/tarantool/files/patch-src-box-vy_stmt.c @@ -0,0 +1,28 @@ +Obtained from: https://github.com/tarantool/tarantool/commit/518557963250fd30b22005376feb4e0e2a6786a1 + +--- src/box/vy_stmt.c.orig ++++ src/box/vy_stmt.c +@@ -447,18 +447,19 @@ vy_stmt_new_surrogate_delete_raw(struct tuple_format *format, + struct tuple_field *field; + struct json_token *parent = &format->fields.root; + while (true) { +- int idx; +- while ((idx = mp_stack_advance(&stack)) == -1) { ++ struct mp_frame *frame = mp_stack_top(&stack); ++ while (!mp_frame_advance(frame)) { + mp_stack_pop(&stack); + if (mp_stack_is_empty(&stack)) + goto finish; ++ frame = mp_stack_top(&stack); + parent = parent->parent; + } + struct json_token token; +- switch (mp_stack_type(&stack)) { ++ switch (frame->type) { + case MP_ARRAY: + token.type = JSON_TOKEN_NUM; +- token.num = idx; ++ token.num = frame->idx; + break; + case MP_MAP: + if (mp_typeof(*src_pos) != MP_STR) { diff --git a/databases/tarantool/files/patch-src-lib-swim-swim_io.h b/databases/tarantool/files/patch-src-lib-swim-swim_io.h new file mode 100644 index 000000000000..301779ffe7e3 --- /dev/null +++ b/databases/tarantool/files/patch-src-lib-swim-swim_io.h @@ -0,0 +1,12 @@ +Obtained from: https://github.com/tarantool/tarantool/commit/67d33761ceaf07564a156dc8252b5edb857808ed + +--- src/lib/swim/swim_io.h.orig ++++ src/lib/swim/swim_io.h +@@ -37,6 +37,7 @@ + #include "tarantool_ev.h" + #include <stdbool.h> + #include <arpa/inet.h> ++#include <netinet/in.h> + + /** + * SWIM protocol transport level. diff --git a/databases/tarantool/files/patch-src-lib-swim-swim_proto.c b/databases/tarantool/files/patch-src-lib-swim-swim_proto.c new file mode 100644 index 000000000000..5ab781cb278c --- /dev/null +++ b/databases/tarantool/files/patch-src-lib-swim-swim_proto.c @@ -0,0 +1,12 @@ +Obtained from: https://github.com/tarantool/tarantool/commit/67d33761ceaf07564a156dc8252b5edb857808ed + +--- src/lib/swim/swim_proto.c.orig ++++ src/lib/swim/swim_proto.c +@@ -33,6 +33,7 @@ + #include "say.h" + #include "version.h" + #include "diag.h" ++#include <sys/socket.h> /* AF_INET for FreeBSD. */ + + const char *swim_member_status_strs[] = { + "alive", diff --git a/databases/tarantool/files/patch-src-lib-swim-swim_proto.h b/databases/tarantool/files/patch-src-lib-swim-swim_proto.h new file mode 100644 index 000000000000..cf0aca124ef1 --- /dev/null +++ b/databases/tarantool/files/patch-src-lib-swim-swim_proto.h @@ -0,0 +1,13 @@ +Obtained from: https://github.com/tarantool/tarantool/commit/67d33761ceaf07564a156dc8252b5edb857808ed + +--- src/lib/swim/swim_proto.h.orig 2019-04-05 11:27:32 UTC ++++ src/lib/swim/swim_proto.h +@@ -33,6 +33,8 @@ + #include "trivia/util.h" + #include "uuid/tt_uuid.h" + #include <arpa/inet.h> ++#include <netinet/in.h> ++#include <sys/socket.h> + #include <stdbool.h> + + /** diff --git a/databases/tarantool/files/patch-src-lib-swim-swim_transport.h b/databases/tarantool/files/patch-src-lib-swim-swim_transport.h new file mode 100644 index 000000000000..a15aaa88a19e --- /dev/null +++ b/databases/tarantool/files/patch-src-lib-swim-swim_transport.h @@ -0,0 +1,15 @@ +Obtained from: https://github.com/tarantool/tarantool/commit/67d33761ceaf07564a156dc8252b5edb857808ed + https://github.com/tarantool/tarantool/commit/03e114b91a55dbb89ea9b0b5f134dd6a19ea6a81 + +--- src/lib/swim/swim_transport.h.orig 2019-04-05 11:27:32 UTC ++++ src/lib/swim/swim_transport.h +@@ -31,7 +31,9 @@ + * SUCH DAMAGE. + */ + #include "trivia/util.h" ++#include <netinet/in.h> + #include <arpa/inet.h> ++#include <unistd.h> + + /** Transport implementation. */ + struct swim_transport { diff --git a/databases/tarantool/files/patch-test-unit-swim_test_transport.c b/databases/tarantool/files/patch-test-unit-swim_test_transport.c new file mode 100644 index 000000000000..3b6948deca01 --- /dev/null +++ b/databases/tarantool/files/patch-test-unit-swim_test_transport.c @@ -0,0 +1,12 @@ +Obtained from: https://github.com/tarantool/tarantool/commit/67d33761ceaf07564a156dc8252b5edb857808ed + +--- test/unit/swim_test_transport.c.orig ++++ test/unit/swim_test_transport.c +@@ -33,6 +33,7 @@ + #include "swim/swim_io.h" + #include "fiber.h" + #include <errno.h> ++#include <sys/socket.h> + + enum { + /** |