From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 15 18:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B2919E49 for ; Mon, 15 Jul 2013 18:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 97C67FEB for ; Mon, 15 Jul 2013 18:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6FIo0dI084873 for ; Mon, 15 Jul 2013 18:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6FIo0sE084872; Mon, 15 Jul 2013 18:50:00 GMT (envelope-from gnats) Resent-Date: Mon, 15 Jul 2013 18:50:00 GMT Resent-Message-Id: <201307151850.r6FIo0sE084872@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, Robert Kruus Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 70845DC9 for ; Mon, 15 Jul 2013 18:43:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4949AFA8 for ; Mon, 15 Jul 2013 18:43:41 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6FIhefl029213 for ; Mon, 15 Jul 2013 18:43:40 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6FIheNU029212; Mon, 15 Jul 2013 18:43:40 GMT (envelope-from nobody) Message-Id: <201307151843.r6FIheNU029212@oldred.freebsd.org> Date: Mon, 15 Jul 2013 18:43:40 GMT From: Robert Kruus To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/180580: [maintainer-update] Update to py-odbc port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2013 18:50:00 -0000 >Number: 180580 >Category: ports >Synopsis: [maintainer-update] Update to py-odbc port >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 Jul 15 18:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Robert Kruus >Release: FreeBSD 8.1-RELEASE amd64 >Organization: Government of Saskatchewan >Environment: FreeBSD wfm.gos.ca 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Wed Aug 11 16:42:44 CST 2010 +root@thunder.gos.ca:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Update to py-odbc port. Update version to 3.0.7 and use new PORT_OPTIONS format and Makefile header. Patch deletes undeeded files/patch-src_pyodbc.h >How-To-Repeat: NA >Fix: NA Patch attached with submission follows: --- py-odbc/Makefile 2013-07-15 12:06:07.796223280 -0600 +++ py-odbc/Makefile 2013-07-15 11:43:20.806879005 -0600 @@ -1,48 +1,30 @@ -# New ports collection makefile for: pyodbc -# Date created: April 15 2009 -# Whom: rkruus -# +# Created by: Robert >kruus # $FreeBSD: ports/databases/py-odbc/Makefile,v 1.5 2012/11/17 05:55:22 svnexp Exp $ -# - -# Like they say in the postgres-odbc Makefile (and I quote): -# -# This ODBC driver should work under either unixODBC or iODBC -# driver manager, when compliled against one. (Important: Do not try -# to have both installed -- they have overlapping files). - -# It looks like most people are using unixODBC these days, rather than -# iODBC, so let's make unixODBC the default choice: to select iODBC, -# set WITH_IODBC, without setting WITH_UNIXODBC. When the latter is -# set or when neither is set, we go with WITH_UNIXODBC. -# PORTNAME= pyodbc -PORTVERSION= 3.0.6 +PORTVERSION= 3.0.7 CATEGORIES= databases python MASTER_SITES= GOOGLE_CODE PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= pyodbc-${PORTVERSION} MAINTAINER= rob.kruus@gmail.com COMMENT= ODBC connections for python +OPTIONS_DEFINE= UNIXODBC +OPTIONS_DEFAULT=UNIXODBC + USE_ZIP= yes USE_GMAKE= yes USE_PYTHON= 2.5+ USE_PYDISTUTILS= yes -# again, shamelessly copied from datebase/postgres-odbc -.if !defined(WITH_IODBC) -WITH_UNIXODBC= yes -.endif +.include -.if defined(WITH_UNIXODBC) -# I.e. even if WITH_IODBC is defined -LIB_DEPENDS+= odbc.2:${PORTSDIR}/databases/unixODBC +.if ${PORT_OPTIONS:MUNIXODBC} +LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC BUILD_DEPENDS+= unixODBC>=2.2.14_1:${PORTSDIR}/databases/unixODBC .else -LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc +LIB_DEPENDS+= iodbc:${PORTSDIR}/databases/libiodbc .endif do-build: --- py-odbc/files/patch-src_pyodbc.h 2013-07-15 12:06:07.796223280 -0600 +++ /dev/null 2013-07-15 12:08:14.000000000 -0600 @@ -1,12 +0,0 @@ ---- src/pyodbc.h.orig 2012-01-13 13:10:48.000000000 -0600 -+++ src/pyodbc.h 2012-12-06 10:21:36.527165345 -0600 -@@ -76,7 +76,9 @@ - #include - - #if defined(__SUNPRO_CC) || defined(__SUNPRO_C) || (defined(__GNUC__) && !defined(__MINGW32__)) -+#ifndef __FreeBSD__ - #include -+#endif - #define CDECL cdecl - #define min(X,Y) ((X) < (Y) ? (X) : (Y)) - #define max(X,Y) ((X) > (Y) ? (X) : (Y)) >Release-Note: >Audit-Trail: >Unformatted: