From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1F825139694 for ; Sun, 26 Feb 2017 16:44:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7734E0C0C; Sun, 26 Feb 2017 16:44:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B024BE0C0C for ; Sun, 26 Feb 2017 16:44:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 606B0340EF6 for ; Sun, 26 Feb 2017 16:44:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BEE4A556D for ; Sun, 26 Feb 2017 16:44:17 +0000 (UTC) From: "Luca Barbato" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Luca Barbato" Message-ID: <1488127436.7cb9bf4b1803801f4670546a08e56a1a2b3b9756.lu_zero@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cryptography/, dev-python/cryptography/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cryptography/cryptography-1.7.2.ebuild dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch X-VCS-Directories: dev-python/cryptography/ dev-python/cryptography/files/ X-VCS-Committer: lu_zero X-VCS-Committer-Name: Luca Barbato X-VCS-Revision: 7cb9bf4b1803801f4670546a08e56a1a2b3b9756 X-VCS-Branch: master Date: Sun, 26 Feb 2017 16:44:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6f6597bc-93d3-4f3f-8272-02d5d024140d X-Archives-Hash: 125c84d57ca8574e3dbe2d548074dcc7 commit: 7cb9bf4b1803801f4670546a08e56a1a2b3b9756 Author: Luca Barbato gentoo org> AuthorDate: Sun Feb 26 16:43:28 2017 +0000 Commit: Luca Barbato gentoo org> CommitDate: Sun Feb 26 16:43:56 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb9bf4b dev-python/cryptography: Fix libressl support Package-Manager: portage-2.3.3 dev-python/cryptography/cryptography-1.7.2.ebuild | 1 + .../files/cryptography-1.7.2-libressl-2.5.1.patch | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/dev-python/cryptography/cryptography-1.7.2.ebuild b/dev-python/cryptography/cryptography-1.7.2.ebuild index c8c7f9b25d..85f516caaf 100644 --- a/dev-python/cryptography/cryptography-1.7.2.ebuild +++ b/dev-python/cryptography/cryptography-1.7.2.ebuild @@ -43,6 +43,7 @@ DEPEND="${RDEPEND} )" DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) +PATCHES=( "${FILESDIR}"/${P}-libressl-2.5.1.patch ) python_test() { distutils_install_for_testing diff --git a/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch b/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch new file mode 100644 index 0000000000..38fce99a5e --- /dev/null +++ b/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch @@ -0,0 +1,16 @@ +diff -urN cryptography-1.7.2.orig/src/_cffi_src/openssl/x509_vfy.py cryptography-1.7.2/src/_cffi_src/openssl/x509_vfy.py +--- cryptography-1.7.2.orig/src/_cffi_src/openssl/x509_vfy.py 2017-01-27 15:09:52.000000000 +0000 ++++ cryptography-1.7.2/src/_cffi_src/openssl/x509_vfy.py 2017-02-26 15:15:09.889855740 +0000 +@@ -221,10 +221,12 @@ + 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; ++#ifndef X509_V_ERR_HOSTNAME_MISMATCH + 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 ++#endif + + /* OpenSSL 1.0.2beta2+ verification parameters */ + #if CRYPTOGRAPHY_OPENSSL_102BETA2_OR_GREATER && \