Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 2009 19:34:53 GMT
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/141231: [maintainer] textproc/sphinxsearch -- add unixODBC option
Message-ID:  <200912061934.nB6JYrKa005557@happy-idiot-talk.infracaninophile.co.uk>
Resent-Message-ID: <200912061940.nB6Je3CN027209@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912061934.nB6JYrKa005557>