When emerging libmad, encounter the following problem: >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-libs/libmad-0.15.1b-r7/work/libmad-0.15.1b ... * ERROR: media-libs/libmad-0.15.1b-r7 failed (configure phase): * toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info * * Call stack: * ebuild.sh, line 85: Called src_configure * environment, line 3129: Called tc-arch * environment, line 3236: Called tc-ninja_magic_to_arch 'portage' * environment, line 3538: Called die * The specific snippet of code: * [[ -z ${KV} ]] && die "toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info"; * * If you need support, post the output of `emerge --info '=media-libs/libmad-0.15.1b-r7'`, * the complete build log and the output of `emerge -pqv '=media-libs/libmad-0.15.1b-r7'`. * The complete build log is located at '/var/tmp/portage/media-libs/libmad-0.15.1b-r7/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/libmad-0.15.1b-r7/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/libmad-0.15.1b-r7/work/libmad-0.15.1b' * S: '/var/tmp/portage/media-libs/libmad-0.15.1b-r7/work/libmad-0.15.1b' When adding linux-info to the inherit of the ebuild it does emerge. Reproducible: Always
Issue is already fixed with an emerge --sync. I had a sync from 2012-09-27. Just synced because of a tip in http://forums.gentoo.org/viewtopic-p-7150602.html, which indeed solved the issue.