From 3b63bb5b479ef0c7e014d4125bc4cc5317cee14b Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 22 Nov 2022 20:10:40 +0000 Subject: dev-util/valgrind: backport test fix for clang 16 Signed-off-by: Sam James --- .../files/valgrind-3.20.0-tests-clang16.patch | 23 ++++++++++++++++++++++ dev-util/valgrind/valgrind-3.20.0.ebuild | 1 + 2 files changed, 24 insertions(+) create mode 100644 dev-util/valgrind/files/valgrind-3.20.0-tests-clang16.patch (limited to 'dev-util/valgrind') 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 +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() { -- cgit v1.2.3-65-gdbad