svn commit: r458626 - branches/2018Q1/security/py-cryptography

Dmitry Marakasov amdmi3 at FreeBSD.org
Wed Jan 10 12:41:05 UTC 2018


Author: amdmi3
Date: Wed Jan 10 12:41:04 2018
New Revision: 458626
URL: https://svnweb.freebsd.org/changeset/ports/458626

Log:
  MFH: r458625
  
  - Fix build on mips by disabling unknown warning flag
  
  Approved by:	portmgr blanket
  With hat:	ports-secteam

Modified:
  branches/2018Q1/security/py-cryptography/Makefile
Directory Properties:
  branches/2018Q1/   (props changed)

Modified: branches/2018Q1/security/py-cryptography/Makefile
==============================================================================
--- branches/2018Q1/security/py-cryptography/Makefile	Wed Jan 10 12:35:02 2018	(r458625)
+++ branches/2018Q1/security/py-cryptography/Makefile	Wed Jan 10 12:41:04 2018	(r458626)
@@ -25,16 +25,24 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=2.9.0:dev
 		${PYTHON_PKGNAMEPREFIX}iso8601>0:devel/py-iso8601@${FLAVOR}
 
 # Python 2.7, 3.4-3.6
-USES=		python ssl
+USES=		compiler:env python ssl
 USE_PYTHON=	autoplist concurrent distutils
 
 CFLAGS+=	-I${OPENSSLINC}
 LDFLAGS+=	-L${OPENSSLLIB}
 
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
+post-patch:
+	@${REINPLACE_CMD} -e 's|"-Wno-error=sign-conversion"||' \
+		${WRKSRC}/src/_cffi_src/build_openssl.py
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cryptography/hazmat/bindings/*.so
 
 do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-branches mailing list