Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 846536 - sys-kernel/genkernel should RDEPEND on few extra tools
Summary: sys-kernel/genkernel should RDEPEND on few extra tools
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-05-20 06:53 UTC by Joonas Niilola
Modified: 2022-07-31 05:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2022-05-20 06:53:29 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-31 05:31:50 UTC
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(-)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-31 05:48:09 UTC
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