mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-31 21:18:09 -07:00
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:
36
sys-apps/clrngd/clrngd-1.0.3-r3.ebuild
Normal file
36
sys-apps/clrngd/clrngd-1.0.3-r3.ebuild
Normal 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}
|
||||
}
|
||||
14
sys-apps/clrngd/files/clrngd-1.0.3-sighandler.patch
Normal file
14
sys-apps/clrngd/files/clrngd-1.0.3-sighandler.patch
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user