Created attachment 469552 [details] test-0.ebuild Hello. $ la /usr/src/ total 4 drwxr-xr-x 24 root root 4096 Apr 8 14:13 linux-4.9.21/ -rw-r--r-- 1 root root 0 Feb 24 2011 .keep lrwxrwxrwx 1 root root 12 Apr 8 13:21 linux -> linux-4.9.21/ $ la /usr/src/linux-4.9.21/ total 756 drwxr-xr-x 119 root root 12288 Apr 8 13:20 Documentation/ drwxr-xr-x 33 root root 4096 Apr 8 14:11 arch/ drwxr-xr-x 3 root root 4096 Apr 8 14:11 block/ drwxr-xr-x 2 root root 4096 Apr 8 14:11 certs/ drwxr-xr-x 4 root root 12288 Apr 8 14:11 crypto/ drwxr-xr-x 129 root root 4096 Apr 8 14:11 drivers/ drwxr-xr-x 36 root root 4096 Apr 8 14:11 firmware/ drwxr-xr-x 75 root root 12288 Apr 8 14:11 fs/ drwxr-xr-x 28 root root 4096 Apr 8 14:11 include/ drwxr-xr-x 2 root root 4096 Apr 8 14:11 init/ drwxr-xr-x 2 root root 4096 Apr 8 14:11 ipc/ drwxr-xr-x 16 root root 12288 Apr 8 14:11 kernel/ drwxr-xr-x 12 root root 20480 Apr 8 14:11 lib/ drwxr-xr-x 3 root root 12288 Apr 8 14:11 mm/ drwxr-xr-x 64 root root 4096 Apr 8 14:11 net/ drwxr-xr-x 25 root root 4096 Apr 8 13:20 samples/ drwxr-xr-x 14 root root 4096 Apr 8 14:11 scripts/ drwxr-xr-x 10 root root 4096 Apr 8 14:11 security/ drwxr-xr-x 23 root root 4096 Apr 8 14:11 sound/ drwxr-xr-x 29 root root 4096 Apr 8 13:20 tools/ drwxr-xr-x 2 root root 4096 Apr 8 14:11 usr/ drwxr-xr-x 4 root root 4096 Apr 8 14:11 virt/ -rw-r--r-- 1 root root 59 Dec 11 22:17 .cocciconfig -rw-r--r-- 1 root root 31 Dec 11 22:17 .get_maintainer.ignore -rw-r--r-- 1 root root 30 Dec 11 22:17 .gitattributes -rw-r--r-- 1 root root 1307 Dec 11 22:17 .gitignore -rw-r--r-- 1 root root 7720 Dec 11 22:17 .mailmap -rw-r--r-- 1 root root 18693 Dec 11 22:17 COPYING -rw-r--r-- 1 root root 98277 Dec 11 22:17 CREDITS -rw-r--r-- 1 root root 2888 Dec 11 22:17 Kbuild -rw-r--r-- 1 root root 252 Dec 11 22:17 Kconfig -rw-r--r-- 1 root root 382615 Dec 11 22:17 MAINTAINERS -rw-r--r-- 1 root root 59016 Apr 8 13:18 Makefile -rw-r--r-- 1 root root 18372 Dec 11 22:17 README -rw-r--r-- 1 root root 7490 Dec 11 22:17 REPORTING-BUGS $ zgrep 'CONFIG_X86=' /proc/config.gz CONFIG_X86=y With the attached minimal ebuild I get: $ ebuild test-0.ebuild clean setup * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 4.9.21 * Could not find a usable .config in the kernel source directory. * Please ensure that /usr/src/linux points to a configured set of Linux sources. * If you are using KBUILD_OUTPUT, please set the environment var so that * it points to the necessary object directory so that it might find .config. * ERROR: app-misc/test-0::bonespirit-private failed (setup phase): * Kernel not configured; no .config found in /usr/src/linux * * Call stack: * ebuild.sh, line 115: Called pkg_setup * test-0.ebuild, line 19: Called linux-info_pkg_setup * linux-info.eclass, line 921: Called check_extra_config * linux-info.eclass, line 731: Called require_configured_kernel * linux-info.eclass, line 296: Called die * The specific snippet of code: * die "Kernel not configured; no .config found in ${KV_OUT_DIR}" * * If you need support, post the output of `emerge --info '=app-misc/test-0::bonespirit-private'`, * the complete build log and the output of `emerge -pqv '=app-misc/test-0::bonespirit-private'`. * The complete build log is located at '/var/tmp/portage/app-misc/test-0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-misc/test-0/temp/environment'. * Working directory: '/var/tmp/portage/app-misc/test-0/homedir' * S: '/var/tmp/portage/app-misc/test-0/work/test-0' linux-info eclass should fallback to the currently running kernel properly. Please fix.
This support is in the eclass