1 |
commit: b28c7994d243c031ce0ffc19cb05f075fdf31f04 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 08:02:54 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 08:03:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b28c7994 |
7 |
|
8 |
dev-python/cryptography-3.2.1: fix build for macOS using GCC |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
dev-python/cryptography/cryptography-3.2.1.ebuild | 14 ++++++++++++++ |
14 |
1 file changed, 14 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cryptography/cryptography-3.2.1.ebuild b/dev-python/cryptography/cryptography-3.2.1.ebuild |
17 |
index 84171c54122..72bc0fbfd3a 100644 |
18 |
--- a/dev-python/cryptography/cryptography-3.2.1.ebuild |
19 |
+++ b/dev-python/cryptography/cryptography-3.2.1.ebuild |
20 |
@@ -46,6 +46,20 @@ RDEPEND+=${DEPEND} |
21 |
|
22 |
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) |
23 |
|
24 |
+src_prepare() { |
25 |
+ default |
26 |
+ |
27 |
+ # work around availability macros not supported in GCC (yet) |
28 |
+ if [[ ${CHOST} == *-darwin ]] ; then |
29 |
+ local darwinok=0 |
30 |
+ if [[ ${CHOST##*-darwin} -ge 16 ]] ; then |
31 |
+ darwinok=1 |
32 |
+ fi |
33 |
+ sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \ |
34 |
+ src/_cffi_src/openssl/src/osrandom_engine.c |
35 |
+ fi |
36 |
+} |
37 |
+ |
38 |
python_test() { |
39 |
local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P} |
40 |
pytest -vv -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || |