mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
committed by
Sam James
parent
594b69ee1b
commit
634b8d8de6
15
app-admin/killproc/files/killproc-2.13-fix_c23.patch
Normal file
15
app-admin/killproc/files/killproc-2.13-fix_c23.patch
Normal 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[];
|
||||
36
app-admin/killproc/killproc-2.13-r2.ebuild
Normal file
36
app-admin/killproc/killproc-2.13-r2.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user