Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731666 - sys-kernel/gentoo-sources: add app-arch/cpio depend
Summary: sys-kernel/gentoo-sources: add app-arch/cpio depend
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-08 06:39 UTC by Tomáš Mózes
Modified: 2020-07-10 12:04 UTC (History)
1 user (show)

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 Tomáš Mózes 2020-07-08 06:39:06 UTC
Just bootstrapped a fresh amd64 machine with gentoo-sources-5.4.48 and the kernel compilation failed due to missing cpio. 

Please consider adding as rdepend, thanks.
Comment 1 Thomas Deutschmann gentoo-dev Security 2020-07-08 16:26:18 UTC
Please show us kernel config which triggered this.
Comment 3 Tomáš Mózes 2020-07-08 19:11:48 UTC
It's probably a dupe of #696840. However, I'm pretty sure I haven't enabled CONFIG_IKHEADERS purposely.
Comment 4 Thomas Deutschmann gentoo-dev Security 2020-07-08 23:32:51 UTC
OK, it's triggered by CONFIG_IKHEADERS=y. So the question will be how that got enabled in your config. I emerged latest gentoo-sources-5.7.7 and it doesn't get enabled when you do `make oldconfig` even without an .config file.

You said you bootstrapped a fresh system. Normally you will use kernel config from running system, i.e. from the bootmedium you used to install Gentoo. Is that also true in you case? Which medium did you use?
Comment 5 Vladimir Pavljuchenkov (SpiderX) 2020-07-10 11:02:44 UTC
I have the same issue.
I used http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/install-amd64-minimal-20200708T103427Z.iso for bootstrapping and I created kernel config from scratch (do not reuse it from any system). 

  CC      kernel/kallsyms.o
  CC      kernel/acct.o
  CC      kernel/crash_core.o
  CC      kernel/kexec_core.o
  CC      kernel/kexec.o
  CC      kernel/compat.o
  CC      kernel/utsname.o
  CC      kernel/user_namespace.o
  CC      kernel/pid_namespace.o
  GZIP    kernel/config_data.gz
  CC      kernel/configs.o
  CHK     kernel/kheaders_data.tar.xz
  GEN     kernel/kheaders_data.tar.xz
./kernel/gen_kheaders.sh: line 61: cpio: command not found
make[1]: *** [kernel/Makefile:133: kernel/kheaders_data.tar.xz] Error 127
make: *** [Makefile:1706: kernel] Error 2
Comment 6 Tomáš Mózes 2020-07-10 12:04:19 UTC
(In reply to Thomas Deutschmann from comment #4)
> OK, it's triggered by CONFIG_IKHEADERS=y. So the question will be how that
> got enabled in your config. I emerged latest gentoo-sources-5.7.7 and it
> doesn't get enabled when you do `make oldconfig` even without an .config
> file.
> 
> You said you bootstrapped a fresh system. Normally you will use kernel
> config from running system, i.e. from the bootmedium you used to install
> Gentoo. Is that also true in you case? Which medium did you use?

I was provisioning a virtual machine in GCP so I started a debian instance, chrooted to latest stage3-amd64 and downloaded my config from github.

The configuration was made on an other machine (it's a shared one used on all machines), just installing the sources, make menuconfig and picking the stuff I need (drivers) and this was reused here. So I haven't taken the config from the running system, but went from a vanilla config + add stuff needed on multiple machines (and disabled unneeded stuff too).