commit: 634b8d8de60894f7ea68e683bcc0a86a335da578 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Mon Sep 8 13:20:18 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Sep 11 03:28:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=634b8d8d
app-admin/killproc: fix c23, update to EAPI 8 Closes: https://bugs.gentoo.org/943846 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> 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 <AT> gentoo.org> .../killproc/files/killproc-2.13-fix_c23.patch | 15 +++++++++ app-admin/killproc/killproc-2.13-r2.ebuild | 36 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/app-admin/killproc/files/killproc-2.13-fix_c23.patch b/app-admin/killproc/files/killproc-2.13-fix_c23.patch new file mode 100644 index 000000000000..87f71074a5ee --- /dev/null +++ b/app-admin/killproc/files/killproc-2.13-fix_c23.patch @@ -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[]; diff --git a/app-admin/killproc/killproc-2.13-r2.ebuild b/app-admin/killproc/killproc-2.13-r2.ebuild new file mode 100644 index 000000000000..377516bb1adf --- /dev/null +++ b/app-admin/killproc/killproc-2.13-r2.ebuild @@ -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 +}
