[MacPorts] #53964: py27-cryptography fails to build with libressl 2.5.3_0
MacPorts
noreply at macports.org
Tue Apr 11 22:00:25 UTC 2017
#53964: py27-cryptography fails to build with libressl 2.5.3_0
----------------------+-------------------------------
Reporter: bK4gYuRo | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py27-cryptography
----------------------+-------------------------------
Apparently, in libressl 2.5.3 the following macros are defined:
{{{
/* Host, email and IP check errors */
#define X509_V_ERR_HOSTNAME_MISMATCH 62
#define X509_V_ERR_EMAIL_MISMATCH 63
#define X509_V_ERR_IP_ADDRESS_MISMATCH 64
}}}
This conflicts with last 3 lines in this block in _openssl.c in
py27-cryptography:
{{{
/* OpenSSL 1.0.2beta2+ verification error codes */
#if CRYPTOGRAPHY_OPENSSL_102BETA2_OR_GREATER &&
!defined(LIBRESSL_VERSION_NUMBER)
static const long Cryptography_HAS_102_VERIFICATION_ERROR_CODES = 1;
#else
static const long Cryptography_HAS_102_VERIFICATION_ERROR_CODES = 0;
static const long X509_V_ERR_SUITE_B_INVALID_VERSION = 0;
static const long X509_V_ERR_SUITE_B_INVALID_ALGORITHM = 0;
static const long X509_V_ERR_SUITE_B_INVALID_CURVE = 0;
static const long X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM = 0;
static const long X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED = 0;
static const long X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 = 0;
static const long X509_V_ERR_HOSTNAME_MISMATCH = 0;
static const long X509_V_ERR_EMAIL_MISMATCH = 0;
static const long X509_V_ERR_IP_ADDRESS_MISMATCH = 0;
#endif
}}}
If I comment out these 3 lines in _openssl.c, it compiles, but I am not
sure if it is the right fix.
Log is attached
--
Ticket URL: <https://trac.macports.org/ticket/53964>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list