Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 12:41:04 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r458626 - branches/2018Q1/security/py-cryptography
Message-ID:  <201801101241.w0ACf4Kx096739@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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