the get_version function in linux-info.eclass is not returning the correct kernel version information. I'm running a git kernel, from Linus's repo. KV_FULL only gets '2.6.17' but the output from 'make kernelrelease' is 2.6.17-ge407112e-dirty This causes linux-mod to install modules to the wrong location! get_version should change to using the output of 'make kernelrelease' or the include/config/kernel.release file that gets generated.
make kernelrelease is relatively new, if we do use it we must keep the existing code as a fallback. Also this is a dup but I can't find the original bug
(In reply to comment #1) > Also this is a dup but I can't find the original bug Bug 126013?
not that one
Here are some modifications to linux-info and kernel-2 to support the make kernelrelease thing. I still need to dig when exactly the make kernelrelease was introduced (for the check in kernel-2).
Created attachment 100089 [details, diff] kernel-2.eclass.diff
Created attachment 100090 [details, diff] linux-info.eclass.diff
phreak: the file has moved to include/config/kernel.release, please update code to check both locations?
This seems obsolete, and it never looks like it worked anyway. Using cut for the EXTRAVERSION argument is not reliable with EXTRAVERSION like '-rc5', because the seperator is - not .