1 |
commit: c680482145f31b0e20aae17bb9fbb2984e102aae |
2 |
Author: David Roman <davidroman96 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jul 12 14:18:44 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 8 09:04:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6804821 |
7 |
|
8 |
dev-libs/spdlog: fix tests segfault |
9 |
|
10 |
Closes: https://bugs.gentoo.org/731238 |
11 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
12 |
Signed-off-by: David Roman <davidroman96 <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/16678 |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
dev-libs/spdlog/files/spdlog-1.6.1-tests-fix.patch | 13 +++++++++++++ |
17 |
dev-libs/spdlog/spdlog-1.6.1-r1.ebuild | 1 + |
18 |
2 files changed, 14 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/spdlog/files/spdlog-1.6.1-tests-fix.patch b/dev-libs/spdlog/files/spdlog-1.6.1-tests-fix.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..8a6aa8020f7 |
23 |
--- /dev/null |
24 |
+++ b/dev-libs/spdlog/files/spdlog-1.6.1-tests-fix.patch |
25 |
@@ -0,0 +1,13 @@ |
26 |
+diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h |
27 |
+index e974cf51..5393dcac 100644 |
28 |
+--- a/include/spdlog/fmt/bin_to_hex.h |
29 |
++++ b/include/spdlog/fmt/bin_to_hex.h |
30 |
+@@ -92,7 +92,7 @@ struct formatter<spdlog::details::dump_info<T>> |
31 |
+ auto parse(ParseContext &ctx) -> decltype(ctx.begin()) |
32 |
+ { |
33 |
+ auto it = ctx.begin(); |
34 |
+- while (*it && *it != '}') |
35 |
++ while (it != ctx.end() && *it != '}') |
36 |
+ { |
37 |
+ switch (*it) |
38 |
+ { |
39 |
|
40 |
diff --git a/dev-libs/spdlog/spdlog-1.6.1-r1.ebuild b/dev-libs/spdlog/spdlog-1.6.1-r1.ebuild |
41 |
index 04237834f6c..6d996c6f8ea 100644 |
42 |
--- a/dev-libs/spdlog/spdlog-1.6.1-r1.ebuild |
43 |
+++ b/dev-libs/spdlog/spdlog-1.6.1-r1.ebuild |
44 |
@@ -31,6 +31,7 @@ RDEPEND="${DEPEND}" |
45 |
|
46 |
PATCHES=( |
47 |
"${FILESDIR}/${P}-libfmt-7.0.0.patch" |
48 |
+ "${FILESDIR}/${P}-tests-fix.patch" |
49 |
) |
50 |
|
51 |
src_prepare() { |