Date: Tue, 19 Oct 2010 14:35:55 GMT From: Lucius Windschuh <lwindschuh@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/151579: [patch] Unbreak databases/p5-Search-Xapian Message-ID: <201010191435.o9JEZtGB090423@www.freebsd.org> Resent-Message-ID: <201010191440.o9JEe8Pl078674@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 151579 >Category: ports >Synopsis: [patch] Unbreak databases/p5-Search-Xapian >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: Tue Oct 19 14:40:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Lucius Windschuh >Release: 9.0-CURRENT r213041 >Organization: >Environment: FreeBSD t400 9.0-CURRENT FreeBSD 9.0-CURRENT #6 r213567MP: Fri Oct 8 13:43:35 CEST 2010 root@t400:/usr/obj/usr/src/sys/CURRENT i386 >Description: Xapian removed the add_boolean_term() function, but the Search::Xapian plugin does not reflect this change. We should update Search::Xapian to a newer version, I suppose. But as a quick fix, we may inline the definition of add_boolean_term from http://xapian.org/docs/sourcedoc/html/include_2xapian_2document_8h-source.html . This is what the attached patch does, effectively unbreaking the build. >How-To-Repeat: >Fix: Put the attached file into files/ Patch attached with submission follows: --- XS/Document.xs-orig 2010-10-19 16:20:44.000000000 +0200 +++ XS/Document.xs 2010-10-19 16:21:58.000000000 +0200 @@ -104,7 +104,7 @@ string tname CODE: try { - THIS->add_boolean_term(tname); + THIS->add_term(tname, 0); } catch (const Error &error) { croak("Exception: %s", error.get_msg().c_str()); } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010191435.o9JEZtGB090423>