I had to apply the attached patch to compile Lucy 0.3.2 with perl 5.18.0
compiled with -DNO_MATHOMS. I see in the repository that CaseFolder.c no
longer uses perl’s case-folding functions. I don’t know what the policy is for
patches on maintenance branches, but you might want to consider this.
Father Chrysostomos
diff -rup Lucy-0.3.2-s33zlQ/xs/Lucy/Analysis/CaseFolder.c
Lucy-0.3.2-s33zlQ-copy/xs/Lucy/Analysis/CaseFolder.c
--- Lucy-0.3.2-s33zlQ/xs/Lucy/Analysis/CaseFolder.c 2012-07-10
08:06:40.000000000 -0600
+++ Lucy-0.3.2-s33zlQ-copy/xs/Lucy/Analysis/CaseFolder.c 2013-07-17
23:21:59.000000000 -0600
@@ -38,12 +38,7 @@ S_lc_to_work_buf(lucy_CaseFolder *self,
while (source < end) {
STRLEN buf_utf8_len;
- #if (PERL_VERSION == 15 && PERL_SUBVERSION >= 6)
- Perl__to_utf8_lower_flags(aTHX_ source, utf8_buf, &buf_utf8_len,
- 0, NULL);
- #else
- Perl_to_utf8_lower(aTHX_ source, utf8_buf, &buf_utf8_len);
- #endif
+ to_utf8_lower(aTHX_ source, utf8_buf, &buf_utf8_len);
// Grow if necessary.
if (((STRLEN)(*limit - dest)) < buf_utf8_len) {