Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38323 - please dont use /usr/src/linux in ebuilds
Summary: please dont use /usr/src/linux in ebuilds
Status: RESOLVED DUPLICATE of bug 17349
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 12:57 UTC by Ulf Bartelt (RETIRED)
Modified: 2005-07-17 13:06 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 Ulf Bartelt (RETIRED) gentoo-dev 2004-01-15 12:57:44 UTC
please dont rely in /usr/src/linux in ebuilds to locate e.g. the kernel headers of the current kernel.

such ebuilds will fail (best result!) everywhere where power users are experimenting with multiple kernels...

such ebuild will produce near to unlocatable problems if compiling succeeds and unexpected behaviour is caused by compiling with the wrong kernel include files...
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-01-15 16:45:19 UTC
/usr/src/linux _has_ to point to you current kernel
this is state of the art in every distro
Comment 2 SpanKY gentoo-dev 2004-01-15 17:32:03 UTC
how else are you going to build kernel modules consistently for the kernel you want ?

you cant rely on the kernel headers being /usr/include/{linux,asm}

i dont know about you, but i want to be able to emerge a package that has a kernel module and be able to load it right then and there ... that requires access to the kernel source for the kernel you're running ...
trying to pick 'the right one' out of /usr/src/ is a MESS ... better to use /usr/src/linux and be consistent

that way you KNOW what kernel the module is going to be built for

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