Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165351 - media-video/em8300-modules uses wrong kernel sources directory
Summary: media-video/em8300-modules uses wrong kernel sources directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-04 22:09 UTC by Thomas Loeber
Modified: 2007-03-07 16:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Loeber 2007-02-04 22:09:30 UTC
When emerging em8300-modules the kernel sources directory used should be /usr/src/linux and not that of the currently running kernel (analogous to LIRC).

Reproducible: Always

Steps to Reproduce:
1. emerge a new kernel version and change the 'linux' symlink to point to the new sources
2. (optional) build the kernel and install the kernel modules
3. emerge em8300-modules to install the EM8300 modules for the new kernel version

Actual Results:  
If the running kernel is for example '2.6.18-gentoo-r4' the ebuild runs emake resulting in:
make -C /lib/modules/2.6.18-gentoo-r4/build SUBDIRS=... modules


Expected Results:  
The ebuild should run emake in such a way that the correct kernel sources are used (not necessarily those of the currently running kernel):
make -C /usr/src/linux SUBDIRS=... modules


This issue can be resolved in the ebuild.

The em8300 Makefile sets the KERNEL_LOCATION to
/lib/modules/$(shell uname -r)/build
and builds the modules.

So the ebuild should call emake with the KERNEL_LOCATION set to ${KERNEL_DIR}.

emake KERNEL_LOCATION="${KERNEL_DIR}" || die "emake failed."
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-03-07 16:01:15 UTC
All done. Thanks Thomas. Please do tell if there is more problems, I have this hardware but currently it's in state of "not used, busy" :-)