commit: 61ba62ca5673bd775625f4923502c8abb18c57a5 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sat Mar 7 17:48:25 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Mar 11 13:48:44 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61ba62ca
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 <AT> 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 <AT> gentoo.org> sys-apps/clrngd/clrngd-1.0.3-r3.ebuild | 36 ++++++++++++++++++++++ .../clrngd/files/clrngd-1.0.3-sighandler.patch | 14 +++++++++ 2 files changed, 50 insertions(+) diff --git a/sys-apps/clrngd/clrngd-1.0.3-r3.ebuild b/sys-apps/clrngd/clrngd-1.0.3-r3.ebuild new file mode 100644 index 000000000000..2ef253f34cf2 --- /dev/null +++ b/sys-apps/clrngd/clrngd-1.0.3-r3.ebuild @@ -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} +} diff --git a/sys-apps/clrngd/files/clrngd-1.0.3-sighandler.patch b/sys-apps/clrngd/files/clrngd-1.0.3-sighandler.patch new file mode 100644 index 000000000000..b215b5a54e6e --- /dev/null +++ b/sys-apps/clrngd/files/clrngd-1.0.3-sighandler.patch @@ -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; + }
