1 |
commit: ba7438a633bd36de2923db9f48d66b8b452817ee |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 1 11:32:53 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 1 11:32:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba7438a6 |
7 |
|
8 |
dev-libs/criterion: add GCC 11 patch |
9 |
|
10 |
Closes: https://bugs.gentoo.org/791706 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-libs/criterion/criterion-2.4_pre20200110.ebuild | 4 ++++ |
14 |
.../criterion/files/criterion-2.4_pre20200110-gcc11.patch | 12 ++++++++++++ |
15 |
2 files changed, 16 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/criterion/criterion-2.4_pre20200110.ebuild b/dev-libs/criterion/criterion-2.4_pre20200110.ebuild |
18 |
index e4a1dfa78f3..54b81b96c9d 100644 |
19 |
--- a/dev-libs/criterion/criterion-2.4_pre20200110.ebuild |
20 |
+++ b/dev-libs/criterion/criterion-2.4_pre20200110.ebuild |
21 |
@@ -37,6 +37,10 @@ BDEPEND="virtual/pkgconfig" |
22 |
|
23 |
S="${WORKDIR}/Criterion-${CRITERION_COMMIT}" |
24 |
|
25 |
+PATCHES=( |
26 |
+ "${FILESDIR}"/${PN}-2.4_pre20200110-gcc11.patch |
27 |
+) |
28 |
+ |
29 |
python_check_deps() { |
30 |
has_version "dev-util/cram[${PYTHON_USEDEP}]" |
31 |
} |
32 |
|
33 |
diff --git a/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch b/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch |
34 |
new file mode 100644 |
35 |
index 00000000000..c99e03af6f1 |
36 |
--- /dev/null |
37 |
+++ b/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch |
38 |
@@ -0,0 +1,12 @@ |
39 |
+diff --git a/include/criterion/internal/assert/ieee.h b/include/criterion/internal/assert/ieee.h |
40 |
+index 3b6de3b..2063d87 100644 |
41 |
+--- a/include/criterion/internal/assert/ieee.h |
42 |
++++ b/include/criterion/internal/assert/ieee.h |
43 |
+@@ -29,6 +29,7 @@ |
44 |
+ #ifdef __cplusplus |
45 |
+ |
46 |
+ # include <cmath> |
47 |
++# include <limits> |
48 |
+ |
49 |
+ namespace criterion { namespace internal { namespace operators { |
50 |
+ |