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-cpp/doctest/files/, dev-cpp/doctest/
Date: Sat, 18 Sep 2021 03:04:58 +0000 (UTC)	[thread overview]
Message-ID: <1631934287.c32b8a80a2f30e79dba6d53ec4da64285139a972.sam@gentoo> (raw)

commit:     c32b8a80a2f30e79dba6d53ec4da64285139a972
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Mon Sep 13 07:17:51 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 18 03:04:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c32b8a80

dev-cpp/doctest: fix gcc-11 related compilation error

Apply patch in order to fix gcc-11 related compilation error. The patch
follows proposed fixes to upstream [1,2].

[1] https://github.com/onqtam/doctest/pull/505
[2] https://github.com/onqtam/doctest/pull/520

Closes: https://bugs.gentoo.org/812077
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/22280
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-cpp/doctest/doctest-2.4.6.ebuild               |  2 ++
 .../files/doctest-2.4.6-remove-unused-bla2.patch   | 23 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/dev-cpp/doctest/doctest-2.4.6.ebuild b/dev-cpp/doctest/doctest-2.4.6.ebuild
index 09d25151de7..19efed964dd 100644
--- a/dev-cpp/doctest/doctest-2.4.6.ebuild
+++ b/dev-cpp/doctest/doctest-2.4.6.ebuild
@@ -15,6 +15,8 @@ KEYWORDS="~amd64 ~x86"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
+PATCHES=( "${FILESDIR}/${P}-remove-unused-bla2.patch" )
+
 src_configure() {
 	local mycmakeargs=(
 		-DDOCTEST_WITH_TESTS=$(usex test)

diff --git a/dev-cpp/doctest/files/doctest-2.4.6-remove-unused-bla2.patch b/dev-cpp/doctest/files/doctest-2.4.6-remove-unused-bla2.patch
new file mode 100644
index 00000000000..69efd40e6a4
--- /dev/null
+++ b/dev-cpp/doctest/files/doctest-2.4.6-remove-unused-bla2.patch
@@ -0,0 +1,23 @@
+This patch follows proposed fixes to upstream.
+
+PR-1: https://github.com/onqtam/doctest/pull/505
+PR-2: https://github.com/onqtam/doctest/pull/520
+
+
+diff --git a/examples/all_features/stringification.cpp b/examples/all_features/stringification.cpp
+index a8b5d5b..492e1ec 100644
+--- a/examples/all_features/stringification.cpp
++++ b/examples/all_features/stringification.cpp
+@@ -103,9 +103,6 @@ TEST_CASE("all asserts should fail and show how the objects get stringified") {
+     MyTypeInherited<int> bla1;
+     bla1.one = 5;
+     bla1.two = 4u;
+-    MyTypeInherited<int> bla2;
+-    bla2.one = 5;
+-    bla2.two = 6u;
+ 
+     Bar::Foo f1;
+     Bar::Foo f2;
+-- 
+2.32.0
+


             reply	other threads:[~2021-09-18  3:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-18  3:04 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-12  7:33 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/doctest/files/, dev-cpp/doctest/ Joonas Niilola
2022-08-27 11:38 Sam James
2025-03-25 17:10 Petr Vaněk

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=1631934287.c32b8a80a2f30e79dba6d53ec4da64285139a972.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