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 9FC3C1382C5 for ; Mon, 30 Nov 2020 08:03:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C624FE077A; Mon, 30 Nov 2020 08:03:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 99E8DE077A for ; Mon, 30 Nov 2020 08:03:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 343F93414B2 for ; Mon, 30 Nov 2020 08:03:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 72E7A3A6 for ; Mon, 30 Nov 2020 08:03:11 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1606723386.b28c7994d243c031ce0ffc19cb05f075fdf31f04.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cryptography/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cryptography/cryptography-3.2.1.ebuild X-VCS-Directories: dev-python/cryptography/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: b28c7994d243c031ce0ffc19cb05f075fdf31f04 X-VCS-Branch: master Date: Mon, 30 Nov 2020 08:03:11 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dd8afc1f-5d2b-480c-9a4e-44dfa7cb8c1d X-Archives-Hash: e8b385d18918cc507f2d6005485812a1 commit: b28c7994d243c031ce0ffc19cb05f075fdf31f04 Author: Fabian Groffen gentoo org> AuthorDate: Mon Nov 30 08:02:54 2020 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Mon Nov 30 08:03:06 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b28c7994 dev-python/cryptography-3.2.1: fix build for macOS using GCC Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Fabian Groffen gentoo.org> dev-python/cryptography/cryptography-3.2.1.ebuild | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dev-python/cryptography/cryptography-3.2.1.ebuild b/dev-python/cryptography/cryptography-3.2.1.ebuild index 84171c54122..72bc0fbfd3a 100644 --- a/dev-python/cryptography/cryptography-3.2.1.ebuild +++ b/dev-python/cryptography/cryptography-3.2.1.ebuild @@ -46,6 +46,20 @@ RDEPEND+=${DEPEND} DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) +src_prepare() { + default + + # work around availability macros not supported in GCC (yet) + if [[ ${CHOST} == *-darwin ]] ; then + local darwinok=0 + if [[ ${CHOST##*-darwin} -ge 16 ]] ; then + darwinok=1 + fi + sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \ + src/_cffi_src/openssl/src/osrandom_engine.c + fi +} + python_test() { local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P} pytest -vv -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||