app-admin/killproc: fix c23, update to EAPI 8

Closes: https://bugs.gentoo.org/943846
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43713
Closes: https://github.com/gentoo/gentoo/pull/43713
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-09-08 15:20:18 +02:00
committed by Sam James
parent 594b69ee1b
commit 634b8d8de6
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
https://bugs.gentoo.org/943846
--- a/libinit.h
+++ b/libinit.h
@@ -107,7 +107,11 @@
#define DEFPIDEXT ".pid"
#define DEFPIDLEN 14 /* The string length of /var/run/.pid + 1 */
+#if __STDC_VERSION__ <= 201710L
typedef enum _boolean {false, true} boolean;
+#else
+typedef bool boolean;
+#endif
extern char **environ;
extern char * newenvp[];

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="killproc and assorted tools for boot scripts"
HOMEPAGE="https://ftp.suse.com/pub/projects/init/"
SRC_URI="https://ftp.suse.com/pub/projects/init/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
PATCHES=(
"${FILESDIR}/${P}-makefile.patch"
"${FILESDIR}/${P}-argz.patch"
"${FILESDIR}/${P}-fix_c23.patch"
)
src_prepare() {
default
tc-export CC
export COPTS="${CFLAGS}"
}
src_install() {
into /
dosbin checkproc fsync killproc startproc usleep
into /usr
doman *.8 *.1
dodoc README *.lsm
}