Opened 7 years ago

Last modified 7 months ago

#56401 assigned defect

py27-cryptography fails to build with libressl-devel 2.7.2

Reported by: bK4gYuRo Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: py-cryptography

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Errors start with this

:info:build /opt/local/include/openssl/x509.h:919:6: note: previous declaration is here
:info:build void X509_get0_signature(const ASN1_BIT_STRING **psig,
:info:build      ^
:info:build build/temp.macosx-10.13-x86_64-2.7/_openssl.c:2472:7: error: redefinition of 'X509_VERIFY_PARAM_set1_host' as different kind of symbol
:info:build int (*X509_VERIFY_PARAM_set1_host)(X509_VERIFY_PARAM *, const char *,
:info:build       ^
:info:build /opt/local/include/openssl/x509_vfy.h:564:5: note: previous definition is here
:info:build int X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param, const char *name,
:info:build     ^
:info:build build/temp.macosx-10.13-x86_64-2.7/_openssl.c:2474:7: error: redefinition of 'X509_VERIFY_PARAM_set1_email' as different kind of symbol

and many more follow

Attachments (1)

main.log (48.1 KB) - added by bK4gYuRo 7 years ago.

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by bK4gYuRo

Attachment: main.log added

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign removed
Description: modified (diff)
Keywords: py27-cryptography libressl-devel removed
Owner: set to stromnov
Port: py-cryptography added; py27-crytpography removed
Status: newassigned

comment:2 Changed 7 years ago by pmetzger (Perry E. Metzger)

Do py27-cryptography's upstream maintainers claim to support libressl? If not, why should this be a supported configuration for MacPorts?

comment:3 Changed 7 years ago by bK4gYuRo

What makes you think it is not supported? libevent is a dependency of tmux, and tmux (and libevent) builds and works fine on OpenBSD which has libressl only. If, following your logic, it's not supported, then it would not work on OpenBSD

comment:4 Changed 7 years ago by bK4gYuRo

Sorry, the comment above was meant for ticket 56400

comment:5 Changed 7 years ago by bK4gYuRo

Regarding upstream support for libressl in py-cryptography, please see this pull request: https://github.com/pyca/cryptography/pull/4169

comment:6 Changed 7 years ago by bK4gYuRo

And this patch is specifically for libressl 2.7.2: https://github.com/pyca/cryptography/pull/4210

I wonder how we can get it into macports

comment:7 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.