From nobody Tue May 10 02:33:11 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 34D201AE5AFF; Tue, 10 May 2022 02:33:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ky2CD0xkZz4rtB; Tue, 10 May 2022 02:33:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652149992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cRcvWFiholWmWJaQIgAQ/YVdWXsv6r0g7tMfr7jmuII=; b=v9/bqgabvCH6B2JCSJGp0u5SWsXYSbIUDtcI6h6pGbaclpYwx7puOGsgbQclERGOWyVkfE wfhIJPowFhaIIP+XK6hcdyNLoLWWtfYxHRusewq2nwSlG1Q4TLC1wit9elD0mANo1rCXaX 9Vpq8qJxkqd9CphNVdn1DF8ZxhNBedkYNK6BjIGPexQUQIHE7HRHKs2ItOWWr5FxNU4nEg 1/A09Y/03ZI7I43nWMbuAjKSEO7U3LX6J5Am17Ou9L2t7rEiucwslDNeGnSWfyl79XI871 qHP7u1CT/f/6okbd5E+oaeAwA9uTJ8TLnEZyEbhIkNF/Y/ibpYe6/v5jQEb4ww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 006121D11C; Tue, 10 May 2022 02:33:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24A2XB6I083877; Tue, 10 May 2022 02:33:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24A2XBQk083876; Tue, 10 May 2022 02:33:11 GMT (envelope-from git) Date: Tue, 10 May 2022 02:33:11 GMT Message-Id: <202205100233.24A2XBQk083876@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Sergey A. Osokin" Subject: git: 563cab2f328c - main - textproc/redisearch22: repo-copy from textproc/redisearch List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: osa X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 563cab2f328c435da939267cc40c233147bce197 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652149992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cRcvWFiholWmWJaQIgAQ/YVdWXsv6r0g7tMfr7jmuII=; b=iPl+aa52+i3/PFJTsWloWpkilfzfG0CJwnuaAt5RK3RNS1CUzXrMZ/rauqSB40/eVp3EbY ZMezANNc8C/pL6g39vG2aJ2+WS562KxAjYeMryX/p416cp9JnMHlHuvX9U6TkXl8vCB96S 4c/jhx38nzZTnOHAyGwhnC1hm4dPKwv28C0co0DleXsxRBAUwEuvuQqAQ4XRiVpHPVmXPW EerGp1sFacGi2yr6zSKKI9GZ+E8HhMAcVtVEUm+RAelfHzM0bKDLEFwW1augviooqzh/eR b9gVxCog/y1Xdku6dJrx0hEuPjoz31AAFFBpmlMCx8fCY565fEV2v+I12jUv0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652149992; a=rsa-sha256; cv=none; b=CVt1DJaSfevcsfvmHwQhehAGe+R8UdRbnCZPwdG32PN+aParpBSyiykG93uElBENt3zGVf 82CviARAZM6sV/RhJfSpXz1jVR2qR10V03JbHj/2kQhvH8v3U7RSBVAEASWAc8duQR7aPj miaQjpzW07UtJK+zSbAt9e6vbO5aoWOsf+NKYqdeFkLqSNnRp9e/ZyxwUSUEMOfAAfvtsQ JzuvJYY7OMYjSzZY0y76a0xdn0p/Rn9MFRfi8X4hKGnV5/Y0JeFEPEaKkbpU+trjANS5LM b0zm67F4ihvrkh+oM/d9Hmlm/Fh/gjUXD5ujqIc7au5W2nF6nb4K8cfl9UVG9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by osa: URL: https://cgit.FreeBSD.org/ports/commit/?id=563cab2f328c435da939267cc40c233147bce197 commit 563cab2f328c435da939267cc40c233147bce197 Author: Sergey A. Osokin AuthorDate: 2022-05-10 02:32:11 +0000 Commit: Sergey A. Osokin CommitDate: 2022-05-10 02:32:11 +0000 textproc/redisearch22: repo-copy from textproc/redisearch --- textproc/Makefile | 1 + textproc/redisearch22/Makefile | 31 ++++++++++++++++++++++ textproc/redisearch22/distinfo | 3 +++ textproc/redisearch22/files/patch-src_fork__gc.c | 21 +++++++++++++++ .../redisearch22/files/patch-src_numeric__index.c | 11 ++++++++ .../redisearch22/files/patch-src_redis__index.c | 11 ++++++++ textproc/redisearch22/pkg-descr | 12 +++++++++ 7 files changed, 90 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 35af9aa9a71e..9dc91dd3ccb4 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1574,6 +1574,7 @@ SUBDIR += redet SUBDIR += redisearch SUBDIR += redisearch20 + SUBDIR += redisearch22 SUBDIR += redland SUBDIR += redland-bindings SUBDIR += refdb diff --git a/textproc/redisearch22/Makefile b/textproc/redisearch22/Makefile new file mode 100644 index 000000000000..6360cacb9903 --- /dev/null +++ b/textproc/redisearch22/Makefile @@ -0,0 +1,31 @@ +# Created by: Sergey A. Osokin + +PORTNAME= redisearch22 +DISTVERSIONPREFIX= v +DISTVERSION= 2.2.10 +CATEGORIES= textproc + +MAINTAINER= ports@FreeBSD.org +COMMENT= Full-text search over Redis + +LICENSE= UNKNOWN +LICENSE_NAME= Redis Source Available License Agreement +LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_PERMS= dist-mirror pkg-mirror auto-accept + +USES= cmake compiler + +USE_GITHUB= yes +GH_ACCOUNT= RediSearch +GH_PROJECT= RediSearch + +CMAKE_ARGS= -DGIT_DESCRIBE_VERSION:STRING=${PKGVERSION} \ + -DOS=freebsd + +PLIST_FILES= lib/redisearch22.so + +do-install: + ${INSTALL_LIB} ${INSTALL_WRKSRC}/redisearch.so \ + ${STAGEDIR}${PREFIX}/lib/redisearch22.so + +.include diff --git a/textproc/redisearch22/distinfo b/textproc/redisearch22/distinfo new file mode 100644 index 000000000000..3296e55b2d53 --- /dev/null +++ b/textproc/redisearch22/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1652146825 +SHA256 (RediSearch-RediSearch-v2.2.10_GH0.tar.gz) = 4caa907e85e6cec528199ddabb4e718fa06744d594716f6a2d3a3966e8e4f83c +SIZE (RediSearch-RediSearch-v2.2.10_GH0.tar.gz) = 4252203 diff --git a/textproc/redisearch22/files/patch-src_fork__gc.c b/textproc/redisearch22/files/patch-src_fork__gc.c new file mode 100644 index 000000000000..9b067f73f84d --- /dev/null +++ b/textproc/redisearch22/files/patch-src_fork__gc.c @@ -0,0 +1,21 @@ +--- src/fork_gc.c.orig 2020-04-12 11:18:47 UTC ++++ src/fork_gc.c +@@ -282,6 +282,7 @@ done: + } + + static void sendHeaderString(ForkGC *gc, void *arg) { ++ struct iovec { void *iov_base; size_t iov_len; }; + struct iovec *iov = arg; + FGC_sendBuffer(gc, iov->iov_base, iov->iov_len); + } +@@ -298,7 +299,9 @@ static void FGC_childCollectTerms(ForkGC *gc, RedisSea + RedisModuleKey *idxKey = NULL; + InvertedIndex *idx = Redis_OpenInvertedIndexEx(sctx, term, strlen(term), 1, &idxKey); + if (idx) { +- struct iovec iov = {.iov_base = (void *)term, termLen}; ++ struct iovec { void *iov_base; size_t iov_len; } iov; ++ iov.iov_base = term; ++ iov.iov_len = termLen; + FGC_childRepairInvidx(gc, sctx, idx, sendHeaderString, &iov, NULL); + } + if (idxKey) { diff --git a/textproc/redisearch22/files/patch-src_numeric__index.c b/textproc/redisearch22/files/patch-src_numeric__index.c new file mode 100644 index 000000000000..4129442c1498 --- /dev/null +++ b/textproc/redisearch22/files/patch-src_numeric__index.c @@ -0,0 +1,11 @@ +--- src/numeric_index.c.orig 2020-02-29 20:43:50 UTC ++++ src/numeric_index.c +@@ -474,7 +474,7 @@ int NumericIndexType_Register(RedisModuleCtx *ctx) { + .rdb_save = NumericIndexType_RdbSave, + .aof_rewrite = GenericAofRewrite_DisabledHandler, + .free = NumericIndexType_Free, +- .mem_usage = NumericIndexType_MemUsage}; ++ .mem_usage = (const void *)NumericIndexType_MemUsage}; + + NumericIndexType = RedisModule_CreateDataType(ctx, "numericdx", NUMERIC_INDEX_ENCVER, &tm); + if (NumericIndexType == NULL) { diff --git a/textproc/redisearch22/files/patch-src_redis__index.c b/textproc/redisearch22/files/patch-src_redis__index.c new file mode 100644 index 000000000000..36e1bc262208 --- /dev/null +++ b/textproc/redisearch22/files/patch-src_redis__index.c @@ -0,0 +1,11 @@ +--- src/redis_index.c.orig 2020-02-29 20:35:56 UTC ++++ src/redis_index.c +@@ -108,7 +108,7 @@ int InvertedIndex_RegisterType(RedisModuleCtx *ctx) { + .rdb_load = InvertedIndex_RdbLoad, + .rdb_save = InvertedIndex_RdbSave, + .aof_rewrite = GenericAofRewrite_DisabledHandler, +- .mem_usage = InvertedIndex_MemUsage, ++ .mem_usage = (const void *)InvertedIndex_MemUsage, + .free = InvertedIndex_Free}; + + InvertedIndexType = RedisModule_CreateDataType(ctx, "ft_invidx", INVERTED_INDEX_ENCVER, &tm); diff --git a/textproc/redisearch22/pkg-descr b/textproc/redisearch22/pkg-descr new file mode 100644 index 000000000000..ac2a0a714490 --- /dev/null +++ b/textproc/redisearch22/pkg-descr @@ -0,0 +1,12 @@ +RediSearch is a source available Full-Text and Secondary Index +engine over Redis, developed by Redis Labs. + +Redisearch implements a search engine on top of Redis, but +unlike other Redis search libraries, it does not use internal +data structures like sorted sets. + +This also enables more advanced features, like exact phrase +matching and numeric filtering for text queries, that are not +possible or efficient with traditional Redis search approaches. + +WWW: https://oss.redislabs.com/redisearch/