public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/criterion/files/, dev-libs/criterion/
Date: Tue,  1 Jun 2021 11:44:06 +0000 (UTC)	[thread overview]
Message-ID: <1622547173.ba7438a633bd36de2923db9f48d66b8b452817ee.sam@gentoo> (raw)

commit:     ba7438a633bd36de2923db9f48d66b8b452817ee
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  1 11:32:53 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun  1 11:32:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba7438a6

dev-libs/criterion: add GCC 11 patch

Closes: https://bugs.gentoo.org/791706
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/criterion/criterion-2.4_pre20200110.ebuild          |  4 ++++
 .../criterion/files/criterion-2.4_pre20200110-gcc11.patch    | 12 ++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/dev-libs/criterion/criterion-2.4_pre20200110.ebuild b/dev-libs/criterion/criterion-2.4_pre20200110.ebuild
index e4a1dfa78f3..54b81b96c9d 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 00000000000..c99e03af6f1
--- /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 {
+ 


             reply	other threads:[~2021-06-01 11:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01 11:44 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-05-31 20:22 [gentoo-commits] repo/gentoo:master commit in: dev-libs/criterion/files/, dev-libs/criterion/ Michał Górny
2020-01-05 20:18 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1622547173.ba7438a633bd36de2923db9f48d66b8b452817ee.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox