Hi, After a year of compiling the application thinkpad-5.9-r1 for different kernels. It no longer compiles. It produces the following error: "... >>> Source compiled. >>> Test phase [not enabled]: app-laptop/thinkpad-5.9-r1 >>> Install thinkpad-5.9-r1 into /var/tmp/portage/app-laptop/thinkpad-5.9-r1/image/ category app-laptop * Installing thinkpad module install: cannot stat `thinkpad.': No such file or directory !!! ERROR: app-laptop/thinkpad-5.9-r1 failed. ..." and with debug turned on "... + echo -e ' * Installing thinkpad module' * Installing thinkpad module + LAST_E_CMD=einfo + return 0 + cd /var/tmp/portage/app-laptop/thinkpad-5.9-r1/work/thinkpad-5.9/2.6/drivers + insinto /lib/modules/2.6.20-viper4/thinkpad + '[' /lib/modules/2.6.20-viper4/thinkpad == / ']' + export INSDESTTREE=/lib/modules/2.6.20-viper4/thinkpad + INSDESTTREE=/lib/modules/2.6.20-viper4/thinkpad + '[' '!' -d /var/tmp/portage/app-laptop/thinkpad-5.9-r1/image//lib/modules/2.6.20-viper4/thinkpad ']' + install -d /var/tmp/portage/app-laptop/thinkpad-5.9-r1/image//lib/modules/2.6.20-viper4/thinkpad + doins thinkpad. install: cannot stat `thinkpad.': No such file or directory + diefunc linux-mod_src_install 541 1 'doins thinkpad. failed' + local funcname=linux-mod_src_install lineno=541 exitcode=1 ..." After turning on debug I discovered the problem; the env variable KV_OBJ is not being not created. The solution is to have KV_OBJ created before the linux-mod_pkg_setup() method in /usr/portage/eclass/linux-mod.eclass is called. So the ebuild needs to be changed, here is the diff of thinkpad {diff thinkpad-5.9-r2.ebuild thinkpad-5.9-r1.ebuild > diffs.txt}. 19c19 < linux-mod_pkg_setup --- > linux-info_pkg_setup This change simply calls the method linux-mod_pkg_setup() instead of linux-info_pkg_setup(). In due course linux-mod_pkg_setup() calls linux-info_pkg_setup(). I don't know why this problem suddenly appeared, however the above mod allows the ebuild to successfully complete. Reproducible: Always Steps to Reproduce: 1. emerge another kernel like viper4, change kernel to viper4 2. emerge thinkpad 3. Actual Results: With the above mentioned mod, the application appears to compile correctly.
Created attachment 113783 [details] updated ebuild
Created attachment 113784 [details, diff] diff file diff thinkpad-5.9-r2.ebuild thinkpad-5.9-r1.ebuild > diffs.txt
*** This bug has been marked as a duplicate of bug 169933 ***