Date: Sun, 3 Feb 2013 22:44:26 -0600 (CST) From: Lawrence Chen <lchen@lhaven.homeip.net> To: FreeBSD-gnats-submit@freebsd.org Cc: beastie_t@lhaven.homeip.net Subject: ports/175813: [patch] mail/dovecot2 doesn't detect libstemmer or exttextcat Message-ID: <201302040444.r144iQT0079804@zen.lhaven.homeip.net> Resent-Message-ID: <201302040520.r145K0Ma059431@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 175813 >Category: ports >Synopsis: [patch] mail/dovecot2 doesn't detect libstemmer or exttextcat >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 04 05:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Lawrence Chen >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD zen.lhaven.homeip.net 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Building dovecot2 with Lucene Full Text Search Indexing, doesn't find stemming support and doesn't see that libexttextcat may already be installed. >How-To-Repeat: make config - select LUCENE make configure - check config.h if textproc/libexttextcat is already installed, should see #define HAVE_LUCENE_EXTTEXTCAT Also, since textproc/clucene includes libstemmer, should also see #define HAVE_LUCENE_STEMMER >Fix: with each update of textproc/libexttextcat, the library name has changed from libexttextcat.so to libexttextcat-1.0.so to (present) libexttextcat-2.0.so the libstemmer that is included with textproc/clucene is in libclucene-contribs-lib.so patch configure, src/plugins/fts-lucene/Makefile.in, and src/plugins/fts-lucene/SnowballFilter.h to find these. --- patch-configure begins here --- --- configure.orig 2012-11-29 19:33:27.000000000 -0600 +++ configure 2013-02-03 11:38:52.827137584 -0600 @@ -24345,13 +24345,13 @@ have_lucene=no if test "$want_lucene" = "yes"; then if test $want_stemmer != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sb_stemmer_new in -lstemmer" >&5 -$as_echo_n "checking for sb_stemmer_new in -lstemmer... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sb_stemmer_new in -lclucene-contribs-lib" >&5 +$as_echo_n "checking for sb_stemmer_new in -lclucene-contribs-lib... " >&6; } if ${ac_cv_lib_stemmer_sb_stemmer_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lstemmer $LIBS" +LIBS="-lclucene-contribs-lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -24432,13 +24432,13 @@ else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special_textcat_Init in -lexttextcat" >&5 -$as_echo_n "checking for special_textcat_Init in -lexttextcat... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special_textcat_Init in -lexttextcat-2.0" >&5 +$as_echo_n "checking for special_textcat_Init in -lexttextcat-2.0... " >&6; } if ${ac_cv_lib_exttextcat_special_textcat_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lexttextcat $LIBS" +LIBS="-lexttextcat-2.0 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ --- patch-configure ends here --- --- patch-src__plugins__fts-lucene__Makefile.in begins here --- --- src/plugins/fts-lucene/Makefile.in.orig 2012-11-29 19:33:30.000000000 -0600 +++ src/plugins/fts-lucene/Makefile.in 2013-02-03 11:49:29.324136436 -0600 @@ -320,9 +320,9 @@ module_LTLIBRARIES = \ lib21_fts_lucene_plugin.la -@BUILD_LUCENE_STEMMER_TRUE@STEMMER_LIBS = -lstemmer +@BUILD_LUCENE_STEMMER_TRUE@STEMMER_LIBS = -lclucene-contribs-lib @BUILD_LUCENE_STEMMER_TRUE@SHOWBALL_SOURCES = Snowball.cc -@BUILD_LUCENE_EXTTEXTCAT_TRUE@@BUILD_LUCENE_TEXTCAT_FALSE@TEXTCAT_LIBS = -lexttextcat +@BUILD_LUCENE_EXTTEXTCAT_TRUE@@BUILD_LUCENE_TEXTCAT_FALSE@TEXTCAT_LIBS = -lexttextcat-2.0 @BUILD_LUCENE_TEXTCAT_TRUE@TEXTCAT_LIBS = -ltextcat lib21_fts_lucene_plugin_la_LIBADD = \ -lclucene-shared -lclucene-core $(TEXTCAT_LIBS) $(STEMMER_LIBS) --- patch-src__plugins__fts-lucene__Makefile.in ends here --- --- patch-src__plugins__fts-lucene__SnowballFilter.h begins here --- --- src/plugins/fts-lucene/SnowballFilter.h.orig 2012-09-24 15:21:29.000000000 -0500 +++ src/plugins/fts-lucene/SnowballFilter.h 2013-02-03 11:24:06.647137581 -0600 @@ -8,7 +8,7 @@ #define _lucene_analysis_snowball_filter_ #include "CLucene/analysis/AnalysisHeader.h" -#include "libstemmer.h" +#include "CLucene/snowball/libstemmer.h" CL_NS_DEF2(analysis,snowball) --- patch-src__plugins__fts-lucene__SnowballFilter.h ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302040444.r144iQT0079804>