1 |
commit: 2d91b6bad3708adef98f214c82a6b8b5467e6bbe |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 25 17:54:00 2017 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 25 17:54:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d91b6ba |
7 |
|
8 |
dev-python/pyblake2: drop fugly hack, no longer necessary after cpu features fix |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
dev-python/pyblake2/pyblake2-0.9.3.ebuild | 21 --------------------- |
13 |
1 file changed, 21 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pyblake2/pyblake2-0.9.3.ebuild b/dev-python/pyblake2/pyblake2-0.9.3.ebuild |
16 |
index b0c84ac4968..619cb27c3cf 100644 |
17 |
--- a/dev-python/pyblake2/pyblake2-0.9.3.ebuild |
18 |
+++ b/dev-python/pyblake2/pyblake2-0.9.3.ebuild |
19 |
@@ -43,27 +43,6 @@ python_prepare_all() { |
20 |
# uncomment the implementation of choice |
21 |
sed -i -e "/BLAKE2_COMPRESS_$(blake2_impl)/s:^#::" setup.py || die |
22 |
|
23 |
- # avoid segfault due to over(?) optimisation |
24 |
- if [[ ${CHOST} == *86*-darwin* ]] ; then |
25 |
- local march=$(get-flag march) |
26 |
- # expand "native" into the used cpu optmisation |
27 |
- if [[ ${march} == native ]] ; then |
28 |
- # we're always on Clang here |
29 |
- march=$(llc --version | grep "Host CPU:") |
30 |
- march=${march##*: } |
31 |
- fi |
32 |
- # compiling for haswell cpu results in a segfault when used |
33 |
- # with optimisation >O1, since optimisation here benefits more |
34 |
- # than cpu specific instructions, reduce to ivybridge level |
35 |
- case ${march} in |
36 |
- haswell|broadwell|skylake*) |
37 |
- local opt=$(get-flag -O) |
38 |
- [[ ${opt#-O} -gt 1 ]] && \ |
39 |
- replace-flags -march=* -march=ivybridge |
40 |
- ;; |
41 |
- esac |
42 |
- fi |
43 |
- |
44 |
distutils-r1_python_prepare_all |
45 |
} |