When trying to install binary packages of ebuilds that inherit linux-mod when the kernel source is not present, the install fails with something like this: * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Could not find a Makefile in the kernel source directory. * Please ensure that /usr/src/linux points to a complete set of Linux sources !!! ERROR: net-fs/openafs-1.4.4 failed. Call stack: ebuild.sh, line 1648: Called dyn_setup ebuild.sh, line 714: Called qa_call 'pkg_setup' ebuild.sh, line 44: Called pkg_setup ebuild.sh, line 1322: Called linux-mod_pkg_setup linux-mod.eclass, line 464: Called linux-info_pkg_setup linux-info.eclass, line 554: Called die !!! Unable to calculate Linux Kernel version !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/log/portage/net-fs:openafs-1.4.4:20070813-231318.log'. !!! Setup failed: 1 This seems wrong and unnecessary. It is desirable to be able to compile these packages elsewhere and install them without needing the kernel source. Reproducible: Always Steps to Reproduce:
*** This bug has been marked as a duplicate of bug 154495 ***