Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171462 - app-laptop/thinkpad-5.9-r1 does not compile (update)
Summary: app-laptop/thinkpad-5.9-r1 does not compile (update)
Status: RESOLVED DUPLICATE of bug 169933
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-19 18:00 UTC by Luigi B
Modified: 2007-03-19 22:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
updated ebuild (thinkpad-5.9-r2.ebuild,1.34 KB, text/plain)
2007-03-19 18:01 UTC, Luigi B
Details
diff file (diffs.txt,57 bytes, patch)
2007-03-19 18:03 UTC, Luigi B
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luigi B 2007-03-19 18:00:36 UTC
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.
Comment 1 Luigi B 2007-03-19 18:01:40 UTC
Created attachment 113783 [details]
updated ebuild
Comment 2 Luigi B 2007-03-19 18:03:11 UTC
Created attachment 113784 [details, diff]
diff file

diff thinkpad-5.9-r2.ebuild thinkpad-5.9-r1.ebuild > diffs.txt
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-19 22:14:25 UTC

*** This bug has been marked as a duplicate of bug 169933 ***