Summary: | Kconfig IKHEADERS requires cpio as build dependency | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | 7_9j~HTz <lotv> |
Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | kernel |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/torvalds/linux/blob/master/init/Kconfig#L621 | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=731666 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
7_9j~HTz
2019-10-06 10:49:01 UTC
CPIO appears not being included in https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/base/packages whilst IKHEADERS would seem to depend on it. I am fresh installing gentoo on two different machines, and I have hit this exact bug both times. In order to compile the kernel, (gentoo-sources:5.4.2) I had to manually emerge app-arch/cpio. Shouldn't this be a dependency of gentoo-sources? I don't know why this was assigned to hardened project. For kernel eclass I am not convinced: CONFIG_IKHEADERS isn't a common feature and not enabled by default. Anyone using that feature should be aware about the cpio requirement. Forcing cpio for everyone just installing kernel sources is therefore not justified. Hi! This has nothing with Gentoo Hardened to do. If anything cpio is also missing on the non hardened stage3. Also, I'd like to note that, for example, sys-devel/bc isn't included either in the stage3 although it is needed for kernel compilation. This is because the stage3 aims to provide the bare essentials of a Gentoo system as such a system may be ran inside a container or chroot where a kernel is not necessary. IOW: It's up to the kernel team to decide whether they want to pull cpio as a dependency of gentoo-sources or not but the practice of not including in the base system packages which are needed for compiling the gentoo-sources is already well established. Not sure if bc is best example because it isn't included in stage3 because stage3 doesn't contain any linux sources packages. But once you install a linux sources packages you will get bc for quite some time (see bug 461848). Anyway, closing as WONTFIX: Like said in comment #3, that's not a common feature. And the fact that you run into this problem shows that you normally wouldn't use cpio like many others. So no need to force this for everyone at the moment. |