diff options
author | Sam James <sam@gentoo.org> | 2022-11-22 20:10:40 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-22 20:10:51 +0000 |
commit | 3b63bb5b479ef0c7e014d4125bc4cc5317cee14b (patch) | |
tree | 72e00a2576786f45aec0664afa809459a8bcfdc6 /dev-util/valgrind | |
parent | sys-apps/shadow: fix configure w/ clang 16 (diff) | |
download | gentoo-3b63bb5b479ef0c7e014d4125bc4cc5317cee14b.tar.gz gentoo-3b63bb5b479ef0c7e014d4125bc4cc5317cee14b.tar.bz2 gentoo-3b63bb5b479ef0c7e014d4125bc4cc5317cee14b.zip |
dev-util/valgrind: backport test fix for clang 16
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-tests-clang16.patch | 23 | ||||
-rw-r--r-- | dev-util/valgrind/valgrind-3.20.0.ebuild | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/dev-util/valgrind/files/valgrind-3.20.0-tests-clang16.patch b/dev-util/valgrind/files/valgrind-3.20.0-tests-clang16.patch new file mode 100644 index 000000000000..01d51ba5f9ad --- /dev/null +++ b/dev-util/valgrind/files/valgrind-3.20.0-tests-clang16.patch @@ -0,0 +1,23 @@ +https://bugs.kde.org/show_bug.cgi?id=462007 +https://sourceware.org/git/?p=valgrind.git;a=commit;h=0811a612dd7ce0c02a5dd699b34e660c742df8fe + +From 0811a612dd7ce0c02a5dd699b34e660c742df8fe Mon Sep 17 00:00:00 2001 +From: Mark Wielaard <mark@klomp.org> +Date: Fri, 18 Nov 2022 20:12:06 +0100 +Subject: [PATCH 1/1] Implicit int in none/tests/faultstatus.c + +There is a definition in faultstatus.c that is not accepted by +C99 compilers (implicit ints were removed in that language revision). + +https://bugs.kde.org/show_bug.cgi?id=462007 +--- a/none/tests/faultstatus.c ++++ b/none/tests/faultstatus.c +@@ -190,7 +190,7 @@ int main() + return 0; + } + +-static volatile s_zero; ++static volatile int s_zero; + + static int zero() + { diff --git a/dev-util/valgrind/valgrind-3.20.0.ebuild b/dev-util/valgrind/valgrind-3.20.0.ebuild index aed73f6be21b..6fc8047bd5a3 100644 --- a/dev-util/valgrind/valgrind-3.20.0.ebuild +++ b/dev-util/valgrind/valgrind-3.20.0.ebuild @@ -26,6 +26,7 @@ PATCHES=( # Respect CFLAGS, LDFLAGS "${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 ) src_prepare() { |