Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2016 21:06:53 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r418751 - in head/databases/py-pymssql: . files
Message-ID:  <201607182106.u6IL6rlj028057@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Jul 18 21:06:53 2016
New Revision: 418751
URL: https://svnweb.freebsd.org/changeset/ports/418751

Log:
  - Fix build after FreeTDS update by porting upstream commit ec46fea
  
  PR:		210363
  Reported by:	ports@thelanman.net (maintainer), pkg-fallout
  Approved by:	portmgr blanket

Added:
  head/databases/py-pymssql/files/patch-__mssql.pyx   (contents, props changed)
  head/databases/py-pymssql/files/patch-sqlfront.pxd   (contents, props changed)
Modified:
  head/databases/py-pymssql/Makefile

Modified: head/databases/py-pymssql/Makefile
==============================================================================
--- head/databases/py-pymssql/Makefile	Mon Jul 18 21:01:10 2016	(r418750)
+++ head/databases/py-pymssql/Makefile	Mon Jul 18 21:06:53 2016	(r418751)
@@ -19,8 +19,11 @@ LIB_DEPENDS=	libsybdb.so:databases/freet
 USES=		python
 USE_PYTHON=	autoplist distutils
 
+post-extract:
+	@${RM} -f ${WRKSRC}/_mssql.c
+
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_mssql.so \
+	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_mssql.so \
 		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pymssql.so
 
 .include <bsd.port.mk>

Added: head/databases/py-pymssql/files/patch-__mssql.pyx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-pymssql/files/patch-__mssql.pyx	Mon Jul 18 21:06:53 2016	(r418751)
@@ -0,0 +1,16 @@
+--- _mssql.pyx.orig	2014-10-24 22:03:00 UTC
++++ _mssql.pyx
+@@ -1677,12 +1677,10 @@ cdef int _tds_ver_str_to_constant(verstr
+         return DBVERSION_42
+     if verstr == u'7.0':
+         return DBVERSION_70
+-    if verstr == u'7.1':
++    if verstr in (u'7.1', u'8.0'):
+         return DBVERSION_71
+     if verstr == u'7.2':
+         return DBVERSION_72
+-    if verstr == u'8.0':
+-        return DBVERSION_80
+     raise MSSQLException('unrecognized tds version: %s' % verstr)
+ 
+ #######################

Added: head/databases/py-pymssql/files/patch-sqlfront.pxd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-pymssql/files/patch-sqlfront.pxd	Mon Jul 18 21:06:53 2016	(r418751)
@@ -0,0 +1,10 @@
+--- sqlfront.pxd.orig	2014-08-29 22:32:11 UTC
++++ sqlfront.pxd
+@@ -106,7 +106,6 @@ cdef extern from "sqlfront.h":
+     int DBVERSION_70
+     int DBVERSION_71
+     int DBVERSION_72
+-    int DBVERSION_80
+ 
+     ## Type Constants ##
+     cdef enum:



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