Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2014 19:40:45 GMT
From:      Rainer Hurling <rhurlin@gwdg.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/189382: [PATCH] databases/mdbtools: fix build after r353029
Message-ID:  <201405051940.s45Jejt4005462@cgiserv.freebsd.org>
Resent-Message-ID: <201405051950.s45Jo0C9067034@freefall.freebsd.org>

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

>Number:         189382
>Category:       ports
>Synopsis:       [PATCH] databases/mdbtools: fix build after r353029
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 05 19:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Rainer Hurling
>Release:        11.0-CURRENT amd64 (clang)
>Organization:
>Environment:
FreeBSD xxx.xxx.xxx 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r265310: Sun May  4 08:39:23 CEST 2014     xxx@xxx.xxx.xxx:/usr/obj/usr/src/sys/XXX  amd64
>Description:
After 'fixing unixODBC vs libiodbc conflicts' by bapt@ [1], databases/mdbtools does not build anymore. It tries to find include/sql.h from databases/libiodbc, which does not exist any more.

As a quick fix I changed the dependency from databases/libiodbc to databases/unixODBC. This builds and works fine, but on some boxes it now could be necessary to change the configuration file for odbc connections.


The plan for the near future will be to find a solution to also get libiodbc to work again with mdbtools. On success, I would like to make a knob to choose between the both database lib dependencies.



[1] http://svnweb.freebsd.org/ports?view=revision&revision=353029
>How-To-Repeat:
Try to build databases/mdbtools 0.7.1_1
>Fix:


Patch attached with submission follows:

diff -ur mdbtools.orig/Makefile mdbtools/Makefile
--- mdbtools.orig/Makefile	2014-05-05 18:47:42.000000000 +0200
+++ mdbtools/Makefile	2014-05-05 21:06:59.000000000 +0200
@@ -3,7 +3,7 @@
 
 PORTNAME=	mdbtools
 PORTVERSION=	0.7.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases
 MASTER_SITES=	https://github.com/brianb/mdbtools/archive/
 DISTNAME=	${PORTVERSION}
@@ -16,7 +16,7 @@
 # To build man-pages
 BUILD_DEPENDS=	gawk:${PORTSDIR}/lang/gawk \
 		txt2man:${PORTSDIR}/textproc/txt2man
-LIB_DEPENDS=	libiodbc.so:${PORTSDIR}/databases/libiodbc
+LIB_DEPENDS=	libodbc.so:${PORTSDIR}/databases/unixODBC
 
 USES=		bison pkgconfig iconv
 USE_AUTOTOOLS=	libtool autoconf automake
@@ -25,7 +25,7 @@
 WANT_GNOME=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-libiconv-prefix=${LOCALBASE} \
-		--with-iodbc=${LOCALBASE}
+		--with-unixodbc=${LOCALBASE}
 
 DOCS=		AUTHORS ChangeLog HACKING NEWS README TODO
 


>Release-Note:
>Audit-Trail:
>Unformatted:



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