diff options
author | Sam James <sam@gentoo.org> | 2021-06-01 11:32:53 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-06-01 11:32:53 +0000 |
commit | ba7438a633bd36de2923db9f48d66b8b452817ee (patch) | |
tree | d1d20155606883f09c34ff1d35e62c48dc5790ad /dev-libs | |
parent | dev-libs/criterion: add Python 3.9 (diff) | |
download | gentoo-ba7438a633bd36de2923db9f48d66b8b452817ee.tar.gz gentoo-ba7438a633bd36de2923db9f48d66b8b452817ee.tar.bz2 gentoo-ba7438a633bd36de2923db9f48d66b8b452817ee.zip |
dev-libs/criterion: add GCC 11 patch
Closes: https://bugs.gentoo.org/791706
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/criterion/criterion-2.4_pre20200110.ebuild | 4 | ||||
-rw-r--r-- | dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-libs/criterion/criterion-2.4_pre20200110.ebuild b/dev-libs/criterion/criterion-2.4_pre20200110.ebuild index e4a1dfa78f3d..54b81b96c9dc 100644 --- a/dev-libs/criterion/criterion-2.4_pre20200110.ebuild +++ b/dev-libs/criterion/criterion-2.4_pre20200110.ebuild @@ -37,6 +37,10 @@ BDEPEND="virtual/pkgconfig" S="${WORKDIR}/Criterion-${CRITERION_COMMIT}" +PATCHES=( + "${FILESDIR}"/${PN}-2.4_pre20200110-gcc11.patch +) + python_check_deps() { has_version "dev-util/cram[${PYTHON_USEDEP}]" } diff --git a/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch b/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch new file mode 100644 index 000000000000..c99e03af6f19 --- /dev/null +++ b/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch @@ -0,0 +1,12 @@ +diff --git a/include/criterion/internal/assert/ieee.h b/include/criterion/internal/assert/ieee.h +index 3b6de3b..2063d87 100644 +--- a/include/criterion/internal/assert/ieee.h ++++ b/include/criterion/internal/assert/ieee.h +@@ -29,6 +29,7 @@ + #ifdef __cplusplus + + # include <cmath> ++# include <limits> + + namespace criterion { namespace internal { namespace operators { + |