1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

security/py-cryptography: fix build on FreeBSD 11

The LibreSSL 3.3.2+ patch does not and was never intended to apply
with older py-cryptography 2.9.2 that we offer for FreeBSD 11 using
base OpenSSL. For now, make the LibreSSL 3.3.2+ patch conditional
on SSL_DEFAULT=libressl* until FreeBSD 11 goes EOL.

Reported by: dvl
Fixes: 6f05c9c07c security/py-cryptography: fix build with LibreSSL 3.3.2+
Pointy hat to: vishwin
Approved by: koobs (maintainer, implicit), fluffly (mentor, implicit)
PR: 255241
This commit is contained in:
Charlie Li 2021-05-21 11:11:07 -04:00
parent bbca650855
commit 58a2c0b4b7
No known key found for this signature in database
GPG Key ID: FEB7852BE29B3E87
2 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,12 @@ EXTRA_PATCHES= ${PATCHDIR}/openssl102u
. endif
.endif
# Apply LibreSSL upstream patch that conflicts with above patch for 2.9.2
# XXX convert back to unconditional when FreeBSD 11 goes EOL
.if ${SSL_DEFAULT:Mlibressl*}
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-Fix-build-with-LibreSSL-3.3.2-5988
.endif
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
post-patch:
@${REINPLACE_CMD} -e 's|"-Wno-error=sign-conversion"||' \