On a binpkg-driven system when emerging a kernel with genkernel: * kernel: >> Initializing ... * >> Running 'make mrproper' ... * >> --no-oldconfig is set; Skipping 'make oldconfig' ... * >> Invoking menuconfig ... /bin/sh: line 1: flex: command not found make[1]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127 make: *** [Makefile:619: menuconfig] Error 2 * kernel: >> Initializing ... * >> Running 'make mrproper' ... * >> --no-oldconfig is set; Skipping 'make oldconfig' ... * >> Invoking menuconfig ... /bin/sh: line 1: bison: command not found make[1]: *** [scripts/Makefile.host:17: scripts/kconfig/parser.tab.h] Error 127 make: *** [Makefile:619: menuconfig] Error 2 /bin/sh: line 1: bc: command not found make[1]: *** [Kbuild:24: include/generated/timeconst.h] Error 127 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1191: prepare0] Error 2 make: *** Waiting for unfinished jobs.... After installing: Installing (1 of 1) sys-devel/flex-2.6.4-r1::gentoo Installing (2 of 2) sys-devel/bison-3.8.2::gentoo Installing (1 of 1) sys-devel/bc-1.07.1-r3::gentoo genkernel builds the kernel just fine.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=798931adeae3f71a723a3be0caeaeb882e857795 commit 798931adeae3f71a723a3be0caeaeb882e857795 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-07-31 05:28:56 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-07-31 05:28:56 +0000 sys-kernel/genkernel: add missing rdepends, drop python-3.7 Closes: https://github.com/gentoo/gentoo/pull/26415 Closes: https://bugs.gentoo.org/846536 Signed-off-by: Joonas Niilola <juippis@gentoo.org> .../{genkernel-4.2.6-r5.ebuild => genkernel-4.2.6-r6.ebuild} | 5 ++++- sys-kernel/genkernel/genkernel-9999.ebuild | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-)
I wonder if genkernel always requires (or at least defaults on) the option which drags in flex & bc & bison. Anyway, doesn't really matter, as kernel-2.eclass even depends on these: app-arch/cpio dev-lang/perl sys-devel/bc sys-devel/bison sys-devel/flex sys-devel/make >=sys-libs/ncurses-5.2 virtual/libelf virtual/pkgconfig