1 |
commit: c32b8a80a2f30e79dba6d53ec4da64285139a972 |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Mon Sep 13 07:17:51 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 18 03:04:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c32b8a80 |
7 |
|
8 |
dev-cpp/doctest: fix gcc-11 related compilation error |
9 |
|
10 |
Apply patch in order to fix gcc-11 related compilation error. The patch |
11 |
follows proposed fixes to upstream [1,2]. |
12 |
|
13 |
[1] https://github.com/onqtam/doctest/pull/505 |
14 |
[2] https://github.com/onqtam/doctest/pull/520 |
15 |
|
16 |
Closes: https://bugs.gentoo.org/812077 |
17 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
18 |
Closes: https://github.com/gentoo/gentoo/pull/22280 |
19 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
20 |
|
21 |
dev-cpp/doctest/doctest-2.4.6.ebuild | 2 ++ |
22 |
.../files/doctest-2.4.6-remove-unused-bla2.patch | 23 ++++++++++++++++++++++ |
23 |
2 files changed, 25 insertions(+) |
24 |
|
25 |
diff --git a/dev-cpp/doctest/doctest-2.4.6.ebuild b/dev-cpp/doctest/doctest-2.4.6.ebuild |
26 |
index 09d25151de7..19efed964dd 100644 |
27 |
--- a/dev-cpp/doctest/doctest-2.4.6.ebuild |
28 |
+++ b/dev-cpp/doctest/doctest-2.4.6.ebuild |
29 |
@@ -15,6 +15,8 @@ KEYWORDS="~amd64 ~x86" |
30 |
IUSE="test" |
31 |
RESTRICT="!test? ( test )" |
32 |
|
33 |
+PATCHES=( "${FILESDIR}/${P}-remove-unused-bla2.patch" ) |
34 |
+ |
35 |
src_configure() { |
36 |
local mycmakeargs=( |
37 |
-DDOCTEST_WITH_TESTS=$(usex test) |
38 |
|
39 |
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 |
40 |
new file mode 100644 |
41 |
index 00000000000..69efd40e6a4 |
42 |
--- /dev/null |
43 |
+++ b/dev-cpp/doctest/files/doctest-2.4.6-remove-unused-bla2.patch |
44 |
@@ -0,0 +1,23 @@ |
45 |
+This patch follows proposed fixes to upstream. |
46 |
+ |
47 |
+PR-1: https://github.com/onqtam/doctest/pull/505 |
48 |
+PR-2: https://github.com/onqtam/doctest/pull/520 |
49 |
+ |
50 |
+ |
51 |
+diff --git a/examples/all_features/stringification.cpp b/examples/all_features/stringification.cpp |
52 |
+index a8b5d5b..492e1ec 100644 |
53 |
+--- a/examples/all_features/stringification.cpp |
54 |
++++ b/examples/all_features/stringification.cpp |
55 |
+@@ -103,9 +103,6 @@ TEST_CASE("all asserts should fail and show how the objects get stringified") { |
56 |
+ MyTypeInherited<int> bla1; |
57 |
+ bla1.one = 5; |
58 |
+ bla1.two = 4u; |
59 |
+- MyTypeInherited<int> bla2; |
60 |
+- bla2.one = 5; |
61 |
+- bla2.two = 6u; |
62 |
+ |
63 |
+ Bar::Foo f1; |
64 |
+ Bar::Foo f2; |
65 |
+-- |
66 |
+2.32.0 |
67 |
+ |