Commit 0a452b0b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

component/groonga: version up groonga 13.0.9.

parent f6c1b145
......@@ -15,12 +15,12 @@ extends =
[groonga]
recipe = slapos.recipe.cmmi
shared = true
url = https://packages.groonga.org/source/groonga/groonga-13.0.1.tar.gz
md5sum = d17d154c2ceffbf8b21d8ef6d3afa644
url = https://packages.groonga.org/source/groonga/groonga-13.0.9.tar.gz
md5sum = d5a8f9df940df4a95cdcc25d3c9981c4
groonga-plugin-dir = @@LOCATION@@/lib/groonga/plugins/
# temporary patch to respect more tokens in natural language mode.
patches =
${:_profile_base_location_}/groonga.patch#cc6a678acd478fc074e678c7b7dd09d8
${:_profile_base_location_}/groonga.patch#4734d6fc490ba7e39d80801283f0ca82
patch-options = -p1
configure-options =
--disable-static
......
--- a/lib/ii.c
+++ b/lib/ii.c
@@ -10874,7 +10874,9 @@
diff -ur groonga-13.0.9.orig/lib/ii.c groonga-13.0.9/lib/ii.c
--- groonga-13.0.9.orig/lib/ii.c 2023-10-31 02:29:55.456449897 +0000
+++ groonga-13.0.9/lib/ii.c 2023-11-27 18:30:18.279938482 +0000
@@ -12761,7 +12761,8 @@
? ((uint32_t)(data->optarg->similarity_threshold) > GRN_HASH_SIZE(h)
? GRN_HASH_SIZE(h)
:(uint32_t)(data->optarg->similarity_threshold))
: (uint32_t)(data->optarg->similarity_threshold))
- : (GRN_HASH_SIZE(h) >> 3) + 1;
+ : (GRN_HASH_SIZE(h) < 8
+ ? GRN_HASH_SIZE(h)
+ : (GRN_HASH_SIZE(h) < 8 ? GRN_HASH_SIZE(h)
+ : ((GRN_HASH_SIZE(h) - 8) >> 3) + 8);
if (GRN_HASH_SIZE(h)) {
grn_id j, id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment