From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 6 19:40:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F3491065672 for ; Sun, 6 Dec 2009 19:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C26E98FC17 for ; Sun, 6 Dec 2009 19:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB6Je3i5027210 for ; Sun, 6 Dec 2009 19:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB6Je3CN027209; Sun, 6 Dec 2009 19:40:03 GMT (envelope-from gnats) Resent-Date: Sun, 6 Dec 2009 19:40:03 GMT Resent-Message-Id: <200912061940.nB6Je3CN027209@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthew Seaman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25FCF10656A9 for ; Sun, 6 Dec 2009 19:34:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5F3728FC17 for ; Sun, 6 Dec 2009 19:34:57 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id nB6JYr0t005558 for ; Sun, 6 Dec 2009 19:34:53 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.14.3/8.14.3/Submit) id nB6JYrKa005557; Sun, 6 Dec 2009 19:34:53 GMT (envelope-from matthew) Message-Id: <200912061934.nB6JYrKa005557@happy-idiot-talk.infracaninophile.co.uk> Date: Sun, 6 Dec 2009 19:34:53 GMT From: Matthew Seaman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/141231: [maintainer] textproc/sphinxsearch -- add unixODBC option X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthew Seaman List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Dec 2009 19:40:04 -0000 >Number: 141231 >Category: ports >Synopsis: [maintainer] textproc/sphinxsearch -- add unixODBC option >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Dec 06 19:40:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Matthew Seaman >Release: FreeBSD 8.0-STABLE i386 >Organization: Infracaninophile >Environment: System: FreeBSD happy-idiot-talk.infracaninophile.co.uk 8.0-STABLE FreeBSD 8.0-STABLE #12: Fri Dec 4 04:01:39 GMT 2009 root@happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/sys/HAPPY-IDIOT-TALK i386 >Description: sphinxsearch-0.9.9 now has the capability to use ODBC drivers for DB access. This was added with 0.9.9 but missed at the time the port was recently updated. Unfortunately it seems sphinxsearch *only* supports compilation with databases/unixODBC and not with databases/libiodbc -- furthermore, if databases/libiodbc is installed its presence is sufficient to fool sphinxsearch's configure autodetection-fu and break compilation. My thanks to Mike Harding for bringing this to my attention. I have now added an OPTION to toggle unixODBC support: it is off by default which will allow sphinxsearch to co-exist with databases/libiodbc (but without any ODBC functionality). Turning it on will add a dependency on unixODBC, and potentially CONFLICTS with libiodbc. >How-To-Repeat: >Fix: --- sphinxsearch.diff begins here --- diff -Nur /usr/ports/textproc/sphinxsearch/Makefile sphinxsearch/Makefile --- /usr/ports/textproc/sphinxsearch/Makefile 2009-12-03 09:07:28.000000000 +0000 +++ sphinxsearch/Makefile 2009-12-06 18:59:31.000000000 +0000 @@ -10,6 +10,7 @@ PORTNAME= sphinxsearch PORTVERSION= 0.9.9 +PORTREVISION= 1 CATEGORIES= textproc databases MASTER_SITES= http://www.sphinxsearch.com/downloads/ DISTNAME= sphinx-${PORTVERSION} @@ -26,7 +27,8 @@ PGSQL "PostgreSQL support" off \ ICONV "Iconv support" on \ OPTIMIZED_CFLAGS "Use compiler optimization (-O3)" off \ - ID64 "use 64-bit document and word IDs" off + ID64 "use 64-bit document and word IDs" off \ + UNIXODBC "unixODBC support" off ## FFR ## LIBSTEMMER "compile with libstemmer support" off @@ -70,6 +72,13 @@ CONFIGURE_ARGS+= --enable-id64 .endif +.if defined(WITH_UNIXODBC) +CONFIGURE_ARGS+= --with-unixodbc +LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC +.else +CONFIGURE_ARGS+= --without-unixodbc +.endif + ## FFR. The snowball project doesn't release numbered versions of it's ## pre-processors. Instead, at arbitrary intervals a snapshot of their ## source repository is turned into a tarball (always the same filename) --- sphinxsearch.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: