Require collocatordb 1.5.0
1.5.0 fixes the two leaks in the collocator lookup, which leaked 3.6 kB per
uncached getClassicCollocators or getCollocationAssociation request, and builds
against the rocksdb of the distribution.
The version check refuses anything older, verified against both: with the
installed 1.3.2 Makefile.PL stops with "Installed collocatordb version 1.3.2 is
too low", with 1.5.0 it passes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Change-Id: I35ef6cf0a5fb179c5caf811c98cc5a2cde054417
diff --git a/Changelog.md b/Changelog.md
index f2c549f..75594f1 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -2,6 +2,9 @@
## [0.94] - 2026-07-30
+- requires collocatordb >= 1.5.0, which fixes the leaks in the collocator
+ lookup and builds against the rocksdb of the distribution, so that no
+ rocksdb 5.11 has to be built from source anymore
- fixed a crash on out of range word ranks: a single request with a `w`
parameter beyond the vocabulary size, or a `getVecsByRanks` request with such
a rank, killed the worker process
diff --git a/Makefile.PL b/Makefile.PL
index 2f5d85a..08fa3a6 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -9,7 +9,7 @@
check_lib_or_exit(
cflags => '-Wall -Wno-unused-result -fno-rtti -O4 -I/usr/local/include',
header => ['unistd.h', 'stdio.h', 'stdlib.h', 'string.h', 'collocatordb.h'],
- function => 'char *min_v = "1.3.2"; char *v = get_version(); if(strcmp(min_v, v) <= 0) { return 0; } else { fprintf(stderr, "Installed collocatordb version %s is too low. Minimally %s is required.\n", v, min_v); return(1); }',
+ function => 'char *min_v = "1.5.0"; char *v = get_version(); if(strcmp(min_v, v) <= 0) { return 0; } else { fprintf(stderr, "Installed collocatordb version %s is too low. Minimally %s is required.\n", v, min_v); return(1); }',
libpath => ['/usr/lib', '/usr/local/lib64', '/usr/local/lib'],
incpath => ['/usr/include', '/usr/local/include'],
# debug => 1,
diff --git a/README.md b/README.md
index c13535c..b6e0af3 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
### Dependencies
-* [libcollocaltordb](https://korap.ids-mannheim.de/gerrit/plugins/gitiles/ids-kl/collocatordb) >= v1.3.2
+* [libcollocatordb](https://korap.ids-mannheim.de/gerrit/plugins/gitiles/ids-kl/collocatordb) >= v1.5.0 (which builds against the rocksdb of the distribution, no rocksdb 5.11 from source needed)
### Build and install