Skip to content

Commit

Permalink
sci-mathematics/why3: Fix sa_handler signature
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/944186
Signed-off-by: Alfredo Tupone <[email protected]>
  • Loading branch information
atupone committed Nov 20, 2024
1 parent 3b6eb95 commit 4a95491
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sci-mathematics/why3/files/why3-1.7.2-signum.patch
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 2 additions & 0 deletions sci-mathematics/why3/why3-1.7.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ BDEPEND="

DOCS=( CHANGES.md README.md )

PATCHES=( "${FILESDIR}"/${P}-signum.patch )

src_prepare() {
mv configure.in configure.ac || die

Expand Down

0 comments on commit 4a95491

Please sign in to comment.