^~~~~~~ /var/tmp/portage/dev-python/cryptography-2.1.4/work/cryptography-2.1.4-python2_7/temp.linux-x86_64-2.7/_openssl.c: At top level: /var/tmp/portage/dev-python/cryptography-2.1.4/work/cryptography-2.1.4-python2_7/temp.linux-x86_64-2.7/_openssl.c:2345:6: error: conflicting types for ‘X509_get0_signature’ void X509_get0_signature(ASN1_BIT_STRING **psig, X509_ALGOR **palg, ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/engine.h:96:0, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop_libressl_20180320-184243 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.0 * Available Python interpreters, in order of preference: [1] python3.5 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby22 (with Rubygems) [2] ruby23 (with Rubygems) * emerge -qpv dev-python/cryptography [ebuild R ] dev-python/cryptography-2.1.4 USE="libressl {-test}" PYTHON_TARGETS="python2_7 python3_5 -pypy -pypy3 -python3_4 -python3_6"
Created attachment 524870 [details] emerge-info.txt
Created attachment 524872 [details] dev-python:cryptography-2.1.4:20180322-165835.log
Created attachment 524874 [details] emerge-history.txt
Created attachment 524876 [details] environment
Created attachment 524878 [details] etc.portage.tbz2
Created attachment 524880 [details] temp.tbz2
Both these patches are fixing this issue: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/security/py-cryptography/patches/patch-src__cffi_src_openssl_x509_vfy_py?rev=1.7&content-type=text/x-cvsweb-markup This one does not apply as-is: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/security/py-cryptography/patches/patch-src__cffi_src_openssl_x509_py?rev=1.1&content-type=text/x-cvsweb-markup so I made a working patch to apply OpenBSD changes: https://ptpb.pw/XlWm
(In reply to Quentin R. from comment #7) I added the missing last change on gentoo mirror sources from OpenBSD patch but it does not seem to be necessary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=079600f41f80b96f77ca942cd2e270c022330deb commit 079600f41f80b96f77ca942cd2e270c022330deb Author: Aaron Bauman <bman@gentoo.org> AuthorDate: 2018-04-13 01:07:11 +0000 Commit: Aaron Bauman <bman@gentoo.org> CommitDate: 2018-04-13 01:07:27 +0000 dev-python/cryptography: fix building with LibreSSL These patches fix building against >dev-libs/libressl-2.5 for all versions of dev-python/cryptography. Closes: https://bugs.gentoo.org/651168 Package-Manager: Portage-2.3.28, Repoman-2.3.9 .../cryptography/cryptography-1.7.1-r1.ebuild | 52 +++++++++++++++ .../cryptography/cryptography-2.0.2-r1.ebuild | 4 +- .../cryptography/cryptography-2.1.4-r1.ebuild | 68 ++++++++++++++++++++ .../files/cryptography-1.7.1-libressl251.patch | 17 +++++ .../cryptography-2.1.4-libressl-2.7-x509.patch | 23 +++++++ .../cryptography-2.1.4-libressl-2.7-x509_vfy.patch | 73 ++++++++++++++++++++++ 6 files changed, 235 insertions(+), 2 deletions(-)