From 4a95491d669ef0a95bc8a8c705aea5149e2f0148 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 20 Nov 2024 22:44:46 +0100 Subject: [PATCH] sci-mathematics/why3: Fix sa_handler signature Closes: https://bugs.gentoo.org/944186 Signed-off-by: Alfredo Tupone --- sci-mathematics/why3/files/why3-1.7.2-signum.patch | 11 +++++++++++ sci-mathematics/why3/why3-1.7.2.ebuild | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 sci-mathematics/why3/files/why3-1.7.2-signum.patch diff --git a/sci-mathematics/why3/files/why3-1.7.2-signum.patch b/sci-mathematics/why3/files/why3-1.7.2-signum.patch new file mode 100644 index 0000000000000..97c014df8b91e --- /dev/null +++ b/sci-mathematics/why3/files/why3-1.7.2-signum.patch @@ -0,0 +1,11 @@ +--- a/src/server/cpulimit-unix.c 2024-11-20 22:37:00.519645455 +0100 ++++ b/src/server/cpulimit-unix.c 2024-11-20 22:39:55.096447774 +0100 +@@ -42,7 +42,7 @@ + } + } + +-void wallclock_timelimit_reached() { ++void wallclock_timelimit_reached(__attribute__((unused)) int signum) { + fprintf(stderr, + "Why3cpulimit: wallclock timelimit %d reached, killing command\n", + wallclock_timelimit); diff --git a/sci-mathematics/why3/why3-1.7.2.ebuild b/sci-mathematics/why3/why3-1.7.2.ebuild index 7517d54b1b674..888c5c48f865b 100644 --- a/sci-mathematics/why3/why3-1.7.2.ebuild +++ b/sci-mathematics/why3/why3-1.7.2.ebuild @@ -46,6 +46,8 @@ BDEPEND=" DOCS=( CHANGES.md README.md ) +PATCHES=( "${FILESDIR}"/${P}-signum.patch ) + src_prepare() { mv configure.in configure.ac || die