1 |
commit: 51d418d15538531b3c3d5c5ab48fd9bb1731ee9f |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 14:31:07 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 14:31:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d418d1 |
7 |
|
8 |
dev-cpp/catch: add patch for brittle output test |
9 |
|
10 |
Closes: https://bugs.gentoo.org/834066 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
dev-cpp/catch/catch-2.13.8.ebuild | 2 ++ |
14 |
dev-cpp/catch/files/catch-2.13.8-musl-tests.patch | 24 +++++++++++++++++++++++ |
15 |
2 files changed, 26 insertions(+) |
16 |
|
17 |
diff --git a/dev-cpp/catch/catch-2.13.8.ebuild b/dev-cpp/catch/catch-2.13.8.ebuild |
18 |
index a57a9d4e9d0f..9711bc919ca8 100644 |
19 |
--- a/dev-cpp/catch/catch-2.13.8.ebuild |
20 |
+++ b/dev-cpp/catch/catch-2.13.8.ebuild |
21 |
@@ -28,6 +28,8 @@ RESTRICT="!test? ( test )" |
22 |
|
23 |
BDEPEND="test? ( ${PYTHON_DEPS} )" |
24 |
|
25 |
+PATCHES=( "${FILESDIR}"/${P}-musl-tests.patch ) |
26 |
+ |
27 |
pkg_setup() { |
28 |
use test && python-any-r1_pkg_setup |
29 |
} |
30 |
|
31 |
diff --git a/dev-cpp/catch/files/catch-2.13.8-musl-tests.patch b/dev-cpp/catch/files/catch-2.13.8-musl-tests.patch |
32 |
new file mode 100644 |
33 |
index 000000000000..86c60c15f34d |
34 |
--- /dev/null |
35 |
+++ b/dev-cpp/catch/files/catch-2.13.8-musl-tests.patch |
36 |
@@ -0,0 +1,24 @@ |
37 |
+From 3e88ccff3ba573fb6d1ab746596411eebe310a6b Mon Sep 17 00:00:00 2001 |
38 |
+From: John Zimmermann <me@×××××××××××.dev> |
39 |
+Date: Thu, 31 Dec 2020 16:24:16 +0100 |
40 |
+Subject: [PATCH] Do not match exact amount of spaces for errno macro expansion |
41 |
+ in approvalTests.py |
42 |
+ |
43 |
+E.g. musl libc expands errno() to __errno_location() without a space between, glibc has 1 space. |
44 |
+--- |
45 |
+ scripts/approvalTests.py | 2 +- |
46 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
47 |
+ |
48 |
+diff --git a/scripts/approvalTests.py b/scripts/approvalTests.py |
49 |
+index f8b9425c7c..73e9b83239 100755 |
50 |
+--- a/scripts/approvalTests.py |
51 |
++++ b/scripts/approvalTests.py |
52 |
+@@ -44,7 +44,7 @@ |
53 |
+ |
54 |
+ # errno macro expands into various names depending on platform, so we need to fix them up as well |
55 |
+ errnoParser = re.compile(r''' |
56 |
+- \(\*__errno_location\ \(\)\) |
57 |
++ \(\*__errno_location\s*\(\)\) |
58 |
+ | |
59 |
+ \(\*__error\(\)\) |
60 |
+ | |