diff options
author | Sam James <sam@gentoo.org> | 2023-01-30 02:14:31 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-30 03:24:44 +0000 |
commit | 47e9795efeaedaf611cc959b1f8acaa51bb2f1f5 (patch) | |
tree | f867a2b93775d8e5ab106b8b256249167c5bbe16 /dev-util/valgrind | |
parent | sys-apps/systemd: disable sysvinit compat again (diff) | |
download | gentoo-47e9795efeaedaf611cc959b1f8acaa51bb2f1f5.tar.gz gentoo-47e9795efeaedaf611cc959b1f8acaa51bb2f1f5.tar.bz2 gentoo-47e9795efeaedaf611cc959b1f8acaa51bb2f1f5.zip |
dev-util/valgrind: fix tests w/ gcc 13
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/valgrind')
-rw-r--r-- | dev-util/valgrind/files/valgrind-3.20.0-gcc-13.patch | 44 | ||||
-rw-r--r-- | dev-util/valgrind/valgrind-3.20.0-r2.ebuild | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-util/valgrind/files/valgrind-3.20.0-gcc-13.patch b/dev-util/valgrind/files/valgrind-3.20.0-gcc-13.patch new file mode 100644 index 000000000000..3d3644f85fc1 --- /dev/null +++ b/dev-util/valgrind/files/valgrind-3.20.0-gcc-13.patch @@ -0,0 +1,44 @@ +https://sourceware.org/git/?p=valgrind.git;a=commit;h=dee222c6e818ca43ac45952fc8a020f445d98781 +https://sourceware.org/git/?p=valgrind.git;a=commit;h=3155bacf26237beb65edb4a572402492b2f1b050 + +From dee222c6e818ca43ac45952fc8a020f445d98781 Mon Sep 17 00:00:00 2001 +From: Paul Floyd <pjfloyd@wanadoo.fr> +Date: Fri, 27 Jan 2023 08:30:41 +0100 +Subject: [PATCH] Bug 464859 - Build failures with GCC-13 (drd tsan_unittest) + +Patch submitted by + Khem Raj <raj.khem@gmail.com> +--- a/drd/tests/tsan_thread_wrappers_pthread.h ++++ b/drd/tests/tsan_thread_wrappers_pthread.h +@@ -55,6 +55,7 @@ + #define NO_TLS + #endif + ++#include <cstdint> + #include <string> + using namespace std; + +-- +2.31.1 + +From 3155bacf26237beb65edb4a572402492b2f1b050 Mon Sep 17 00:00:00 2001 +From: Mark Wielaard <mark@klomp.org> +Date: Sat, 28 Jan 2023 21:53:44 +0100 +Subject: [PATCH] tsan_thread_wrappers_pthread.h: Only include cstdint for + C++11 + +Fixes build on older g++. +--- a/drd/tests/tsan_thread_wrappers_pthread.h ++++ b/drd/tests/tsan_thread_wrappers_pthread.h +@@ -55,7 +55,9 @@ + #define NO_TLS + #endif + ++#if __cplusplus >= 201103L + #include <cstdint> ++#endif + #include <string> + using namespace std; + +-- +2.31.1 diff --git a/dev-util/valgrind/valgrind-3.20.0-r2.ebuild b/dev-util/valgrind/valgrind-3.20.0-r2.ebuild index 4c27c1d3c9b1..131bcaad0a1a 100644 --- a/dev-util/valgrind/valgrind-3.20.0-r2.ebuild +++ b/dev-util/valgrind/valgrind-3.20.0-r2.ebuild @@ -33,6 +33,7 @@ PATCHES=( "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch "${FILESDIR}"/${P}-tests-clang16.patch + "${FILESDIR}"/${P}-gcc-13.patch ) src_prepare() { |