sys-apps/clrngd: Port to C23

Fix sighandler definition to follow declaration, no behaviour
changes.

Closes: https://bugs.gentoo.org/944035
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/244
Merges: https://codeberg.org/gentoo/gentoo/pulls/244
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
NHOrus
2026-03-07 20:48:25 +03:00
committed by Sam James
parent 4c6b67e91a
commit 61ba62ca56
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Clock randomness gathering daemon"
HOMEPAGE="http://echelon.pl/pubs/"
SRC_URI="http://echelon.pl/pubs/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}"/${PN}-1.0.3-implicit-func-declaration.patch
"${FILESDIR}"/${P}-sighandler.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf --bindir="${EPREFIX}"/usr/sbin
}
src_install() {
default
newinitd "${FILESDIR}"/${PN}-init.d-r2 ${PN}
newconfd "${FILESDIR}"/${PN}-conf.d ${PN}
}

View File

@@ -0,0 +1,14 @@
https://bugs.gentoo.org/944035
It is correct to replace no-argument non-variadic function
with ignored argument, so it matches prototype.
--- a/truerand.c
+++ b/truerand.c
@@ -143,7 +143,7 @@
bufflen truly random bytes. It returns 0 on success and -1
on failure. */
static void
-interrupt ()
+interrupt (int)
{
gQuit = 1;
}