Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651168 - dev-python/cryptography-2.1.4 with libressl /.../_openssl.c:2345:6: error: conflicting types for X509_get0_signature
Summary: dev-python/cryptography-2.1.4 with libressl /.../_openssl.c:2345:6: error: co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-22 17:01 UTC by Toralf Förster
Modified: 2018-04-13 01:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.74 KB, text/plain)
2018-03-22 17:01 UTC, Toralf Förster
Details
dev-python:cryptography-2.1.4:20180322-165835.log (dev-python:cryptography-2.1.4:20180322-165835.log,43.28 KB, text/plain)
2018-03-22 17:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,65.39 KB, text/plain)
2018-03-22 17:01 UTC, Toralf Förster
Details
environment (environment,156.53 KB, text/plain)
2018-03-22 17:01 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.36 KB, application/x-bzip)
2018-03-22 17:01 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,35.99 KB, application/x-bzip)
2018-03-22 17:01 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-03-22 17:01:41 UTC
                  ^~~~~~~
/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"
Comment 1 Toralf Förster gentoo-dev 2018-03-22 17:01:44 UTC
Created attachment 524870 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-03-22 17:01:47 UTC
Created attachment 524872 [details]
dev-python:cryptography-2.1.4:20180322-165835.log
Comment 3 Toralf Förster gentoo-dev 2018-03-22 17:01:50 UTC
Created attachment 524874 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-03-22 17:01:53 UTC
Created attachment 524876 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-03-22 17:01:56 UTC
Created attachment 524878 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-03-22 17:01:59 UTC
Created attachment 524880 [details]
temp.tbz2
Comment 8 Quentin Retornaz 2018-03-23 09:53:18 UTC
(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.
Comment 9 Larry the Git Cow gentoo-dev 2018-04-13 01:07:39 UTC
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(-)