Bug 175813

Summary: [patch] mail/dovecot2 doesn't detect libstemmer or exttextcat
Product: Ports & Packages Reporter: Lawrence Chen <lchen>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Not Enough Information    
Severity: Affects Only Me CC: bapt, beastie_t, miwi
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-configure
none
patch-src__plugins__fts-lucene__SnowballFilter.h none

Description Lawrence Chen 2013-02-04 05:20:00 UTC
	Building dovecot2 with Lucene Full Text Search Indexing, doesn't
        find stemming support and doesn't see that libexttextcat may already
        be installed.

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.

--- 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 ---
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-04 05:20:08 UTC
Maintainer of mail/dovecot2,

Please note that PR ports/175813 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/175813

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-04 05:20:09 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2014-06-04 12:11:33 UTC
Hi,

this patch is still needed for the current version in the ports tree?
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2014-06-08 09:23:27 UTC
Timeout