Index: head/net/py-eventlet/Makefile =================================================================== --- head/net/py-eventlet/Makefile (revision 437241) +++ head/net/py-eventlet/Makefile (revision 437242) @@ -1,26 +1,27 @@ # Created by: Gea-Suan Lin # $FreeBSD$ PORTNAME= eventlet PORTVERSION= 0.20.1 +PORTREVISION= 1 CATEGORIES= net python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= cs@FreeBSD.org COMMENT= Concurrent networking library for Python LICENSE= MIT RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}greenlet>=0.3:devel/py-greenlet \ ${PYTHON_PKGNAMEPREFIX}enum-compat>=0.0.2:devel/py-enum-compat \ ${PYTHON_PKGNAMEPREFIX}enum34>=1.1.6:devel/py-enum34 TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose USES= python USE_PYTHON= distutils autoplist regression-test: build @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test .include Index: head/net/py-eventlet/files/patch-eventlet_support_greendns.py =================================================================== --- head/net/py-eventlet/files/patch-eventlet_support_greendns.py (nonexistent) +++ head/net/py-eventlet/files/patch-eventlet_support_greendns.py (revision 437242) @@ -0,0 +1,27 @@ +--- eventlet/support/greendns.py.orig 2017-03-29 21:00:19 UTC ++++ eventlet/support/greendns.py +@@ -79,8 +79,14 @@ DNS_QUERY_TIMEOUT = 10.0 + HOSTS_TTL = 10.0 + + EAI_EAGAIN_ERROR = socket.gaierror(socket.EAI_AGAIN, 'Lookup timed out') +-EAI_NODATA_ERROR = socket.gaierror(socket.EAI_NODATA, 'No address associated with hostname') + EAI_NONAME_ERROR = socket.gaierror(socket.EAI_NONAME, 'Name or service not known') ++# EAI_NODATA was removed from RFC3493, it's now replaced with EAI_NONAME ++# socket.EAI_NODATA is not defined on FreeBSD, probably on some other platforms too. ++# https://lists.freebsd.org/pipermail/freebsd-ports/2003-October/005757.html ++EAI_NODATA_ERROR = EAI_NONAME_ERROR ++if (os.environ.get('EVENTLET_DEPRECATED_EAI_NODATA', '').lower() in ('1', 'y', 'yes') ++ and hasattr(socket, 'EAI_NODATA')): ++ EAI_NODATA_ERROR = socket.gaierror(socket.EAI_NODATA, 'No address associated with hostname') + + + def is_ipv4_addr(host): +@@ -448,7 +454,7 @@ def _getaddrinfo_lookup(host, family, fl + try: + answer = resolve(host, qfamily, False) + except socket.gaierror as e: +- if e.errno not in (socket.EAI_AGAIN, socket.EAI_NODATA): ++ if e.errno not in (socket.EAI_AGAIN, EAI_NONAME_ERROR.errno, EAI_NODATA_ERROR.errno): + raise + err = e + else: Property changes on: head/net/py-eventlet/files/patch-eventlet_support_greendns.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property