commit:     c15bd54361d3aa170f5a7b4a9f4406366810ed2d
Author:     Hoël Bézier <hoelbezier <AT> riseup <DOT> net>
AuthorDate: Sat Sep 13 12:22:35 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 24 01:26:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c15bd543

sys-apps/udevil: Fix compilation with gcc15

Signal handlers should take an int parameter for the signal they’re
handling.

Closes: https://bugs.gentoo.org/945124
Signed-off-by: Hoël Bézier <hoelbezier <AT> riseup.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../udevil/files/udevil-0.4.4-signal-handlers.patch  | 20 ++++++++++++++++++++
 sys-apps/udevil/udevil-0.4.4-r6.ebuild               |  1 +
 2 files changed, 21 insertions(+)

diff --git a/sys-apps/udevil/files/udevil-0.4.4-signal-handlers.patch 
b/sys-apps/udevil/files/udevil-0.4.4-signal-handlers.patch
new file mode 100644
index 000000000000..49b5cf7aa5a9
--- /dev/null
+++ b/sys-apps/udevil/files/udevil-0.4.4-signal-handlers.patch
@@ -0,0 +1,20 @@
+--- a/src/udevil.c
++++ b/src/udevil.c
+@@ -4795,7 +4795,7 @@ static int command_info( CommandData* data )
+     return ret;
+ }
+ 
+-void command_monitor_finalize()
++void command_monitor_finalize(int signal)
+ {
+     //if (signal == SIGINT || signal == SIGTERM)
+     //printf( "\nudevil: SIGINT || SIGTERM\n");
+@@ -4913,7 +4913,7 @@ finish_:
+     return 1;
+ }
+ 
+-void command_interrupt()
++void command_interrupt(int signal)
+ {
+     if ( udev )
+     {

diff --git a/sys-apps/udevil/udevil-0.4.4-r6.ebuild 
b/sys-apps/udevil/udevil-0.4.4-r6.ebuild
index 1cf66f6ccac0..74dddd720dd6 100644
--- a/sys-apps/udevil/udevil-0.4.4-r6.ebuild
+++ b/sys-apps/udevil/udevil-0.4.4-r6.ebuild
@@ -33,6 +33,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-0.4.4-no-libtool.patch
        "${FILESDIR}"/${PN}-0.4.4-no-conf.d.patch
        "${FILESDIR}"/${PN}-0.4.4-remove-exfat-options.patch
+       "${FILESDIR}"/${PN}-0.4.4-signal-handlers.patch
 )
 
 src_prepare() {

Reply via email to