The dist config needs cpio, which apparently is not installed in stage3s. > GEN kernel/kheaders_data.tar.xz > /var/tmp/portage/sys-kernel/gentoo-kernel-5.12.12/work/linux-5.12/kernel/gen_kheaders.sh: line 71: cpio: command not found > make[2]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-5.12.12/work/linux-5.12/kernel/Makefile:155: kernel/kheaders_data.tar.xz] Error 127 > make[1]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-5.12.12/work/linux-5.12/Makefile:1856: kernel] Error 2
Created attachment 717687 [details, diff] fix.patch
(In reply to David Michael from comment #1) > Created attachment 717687 [details, diff] [details, diff] > fix.patch That's probably an issue common to all kernels, so please add BDEP to the eclass instead.
It probably depends on the kernel config, so an eclass change might not be correct in all cases. In this case, I think it is required by CONFIG_IKHEADERS.
Created attachment 717702 [details, diff] fix.patch
(In reply to Mike Gilbert from comment #3) > It probably depends on the kernel config, so an eclass change might not be > correct in all cases. > > In this case, I think it is required by CONFIG_IKHEADERS. Our configs are common to all kernels.
(In reply to Michał Górny from comment #5) > (In reply to Mike Gilbert from comment #3) > > It probably depends on the kernel config, so an eclass change might not be > > correct in all cases. > > > > In this case, I think it is required by CONFIG_IKHEADERS. > > Our configs are common to all kernels. We could make it conditional on savedconfig etc but I don't see the point, yeah.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d128c175a58caf79730022fc0cc8b6114ca2600f commit d128c175a58caf79730022fc0cc8b6114ca2600f Author: David Michael <fedora.dm0@gmail.com> AuthorDate: 2021-06-22 18:19:04 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-06-22 18:35:52 +0000 kernel-build.eclass: add cpio to BDEPEND When CONFIG_IKHEADERS is set, a script is run that requires cpio to be installed. The default config files enable this setting. Closes: https://bugs.gentoo.org/797613 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org> eclass/kernel-build.eclass | 1 + 1 file changed, 1 insertion(+)