Most changes taken from Debian.
---- obj/obj_ia64.c
-+++ obj/obj_ia64.c
+--- a/obj/obj_ia64.c
++++ b/obj/obj_ia64.c
@@ -127,6 +127,7 @@
return (*(bundle + 1) >> 23) & 0x1ffffffffff;
}
return (-1);
}
---- depmod/depmod.c
-+++ depmod/depmod.c
+--- a/depmod/depmod.c
++++ b/depmod/depmod.c
@@ -1133,7 +1133,7 @@
for (ksym = ksyms; so_far < nksyms; ++so_far, ksym++) {
+ return depmod_main(argc, argv) || error_count;
}
#endif /* defined(COMMON_3264) && defined(ONLY_32) */
---- genksyms/genksyms.c
-+++ genksyms/genksyms.c
+--- a/genksyms/genksyms.c
++++ b/genksyms/genksyms.c
@@ -45,7 +45,7 @@
int flag_debug, flag_dump_defs, flag_warnings;
int checksum_version = 1, kernel_version = version(2,0,0);
- return errors != 0;
+ return num_errors != 0;
}
---- include/util.h
-+++ include/util.h
+--- a/include/util.h
++++ b/include/util.h
@@ -39,8 +39,8 @@
extern int xftw(const char *directory, xftw_func_t);
extern const char *error_file;
extern int flag_verbose;
---- insmod/insmod.c
-+++ insmod/insmod.c
+--- a/insmod/insmod.c
++++ b/insmod/insmod.c
@@ -275,7 +275,7 @@
if (strncmp((char *)s->name, "GPLONLY_", 8) == 0) {
gplonly_seen = 1;
if (!noload)
delete_module(m_name);
goto out;
---- insmod/kallsyms.c
-+++ insmod/kallsyms.c
+--- a/insmod/kallsyms.c
++++ b/insmod/kallsyms.c
@@ -80,7 +80,7 @@
error_file = "kallsyms";
/* Process the command line. */
while ((c = getopt_long(argc, argv, "Vh",
---- insmod/modprobe.c
-+++ insmod/modprobe.c
+--- a/insmod/modprobe.c
++++ b/insmod/modprobe.c
@@ -1023,7 +1023,7 @@
if (quiet)
my_argv[my_argc++] = "-q";
my_argv[my_argc++] = "-s";
if (insmod_opt) {
---- insmod/rmmod.c
-+++ insmod/rmmod.c
+--- a/insmod/rmmod.c
++++ b/insmod/rmmod.c
@@ -261,9 +261,9 @@
read_parm.m.read_start = mp->sym->value;
read_parm.m.read_end = read_parm.m.read_start + datasize;
return(0);
}
---- util/logger.c
-+++ util/logger.c
+--- a/util/logger.c
++++ b/util/logger.c
@@ -31,10 +31,10 @@
/*======================================================================*/
- log = 1;
+ logging = 1;
}
---- obj/obj_kallsyms.c
-+++ obj/obj_kallsyms.c
+--- a/obj/obj_kallsyms.c
++++ b/obj/obj_kallsyms.c
@@ -200,8 +200,8 @@
/* Initial contents, header + one entry per input section. No strings. */
p = (char *)a_hdr + a_hdr->symbol_off;
memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size);
free(symbols);
---- obj/obj_ppc.c
-+++ obj/obj_ppc.c
+--- a/obj/obj_ppc.c
++++ b/obj/obj_ppc.c
@@ -25,6 +25,7 @@
#include <obj.h>
#include <util.h>
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="4"
-
-inherit eutils
+EAPI=7
DESCRIPTION="Standard kernel module utilities for linux-2.4 and older"
HOMEPAGE="https://www.kernel.org/pub/linux/utils/kernel/modutils/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86"
-IUSE=""
RDEPEND="!sys-apps/module-init-tools
!sys-apps/kmod"
-src_prepare() {
- epatch "${FILESDIR}"/${P}-alias.patch
- epatch "${FILESDIR}"/${P}-gcc.patch
- epatch "${FILESDIR}"/${P}-flex.patch
- epatch "${FILESDIR}"/${P}-no-nested-function.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc.patch
+ "${FILESDIR}"/${P}-flex.patch
+ "${FILESDIR}"/${P}-no-nested-function.patch
+)
src_configure() {
econf \