Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70906 - ExtractKernelVersion does not take into account LOCALVERSION
Summary: ExtractKernelVersion does not take into account LOCALVERSION
Status: RESOLVED DUPLICATE of bug 67804
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 17:39 UTC by Owen Gunden
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
patch to support CONFIG_LOCALVERSION in KV (portage.py-kv_localversion.patch,913 bytes, patch)
2004-11-11 17:40 UTC, Owen Gunden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Gunden 2004-11-11 17:39:02 UTC
New 2.6 kernels have the option CONFIG_LOCALVERSION which can be set to an arbitrary string that is tacked on to the kernel version.

The function ExtractKernelVersion which is defined in portage.py (2.0.51-r3) does not take this into account.  This causes things like kernel modules to be installed in the wrong location.

For example, I'm using a LOCALVERSION of "ogunden1" and so my kernel modules all go in /lib/modules/2.6.9-gentoo-r3ogunden1 .  However, the nvidia-kernel simply installs modules into /lib/modules/${KV} (in this case, that's /lib/modules/2.6.9-gentoo-r3 which is WRONG).

This could be fixed at the ebuild or eclass (kernel-mod.eclass) level, but after studying the issues and thinking hard, I'm pretty sure the right thing to do is to have KV include the LOCALVERSION.  If you disagree I'd be glad to open a dialog about that.

I'm attaching a patch for portage.py which I've tested on my LOCALVERSION'd kernel as well as a kernel without a LOCALVERSION--in both situations, the nvidia-kernel module installs correctly for me.

Reproducible: Always
Steps to Reproduce:
1. install a kernel with CONFIG_LOCALVERSION set no a nonempty value
2. emerge nvidia-kernel
3. watch it install to the wrong directory
Comment 1 Owen Gunden 2004-11-11 17:40:28 UTC
Created attachment 43754 [details, diff]
patch to support CONFIG_LOCALVERSION in KV
Comment 2 SpanKY gentoo-dev 2004-11-11 17:41:55 UTC

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