Bug 175813 - [patch] mail/dovecot2 doesn't detect libstemmer or exttextcat
Summary: [patch] mail/dovecot2 doesn't detect libstemmer or exttextcat
Status: Closed Not Enough Information
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 05:20 UTC by Lawrence Chen
Modified: 2014-06-08 09:23 UTC (History)
3 users (show)

See Also:


Attachments
patch-configure (1.45 KB, patch)
2013-02-04 05:20 UTC, Lawrence Chen
no flags Details | Diff
patch-src__plugins__fts-lucene__SnowballFilter.h (371 bytes, patch)
2013-02-04 05:20 UTC, Lawrence Chen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 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 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 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 2014-06-08 09:23:27 UTC
Timeout