Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37915 - Wrong System.map on multiple kernels of same version
Summary: Wrong System.map on multiple kernels of same version
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-11 15:39 UTC by Marcel J. P. Möhring
Modified: 2004-04-08 22:02 UTC (History)
1 user (show)

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 Marcel J. P. Möhring 2004-01-11 15:39:34 UTC
On multiple kernel versions of the same kernel programs which need System.map can use the wrong System.map since using 'uname -r' which is of course the same on same kernel version, even if kernel names and System.map names are different.

Patch *should* be trivial...
-KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)-$(BUILDVERSION)

So users who want to use multiple version (eg. 2.4.22-gentoo-r3 and 2.4.22-gentoo-r3-mon (monolithic version)) can "export BUILDVERSION=mon" and System.map-2.4.22-gentoo-r3-mon would be correctly recognized with it's kernel.

Couldn't dig the regexp on Makefile deep enough until now to "see" if the added buildversion has any negative consequences but for me it works fine.
(Most users would hardly need it, so just an idea ;)


Reproducible: Always
Steps to Reproduce:
Comment 1 David M. Andersen 2004-01-11 15:45:27 UTC
I confirmed this bug in -r3 (the hard way... stuff got messed up...)

This bug is fixed in -r4.
Comment 2 David M. Andersen 2004-01-11 16:12:44 UTC
This is a duplicate of bug 37444.

The existing -r3 ebuild was already fixed.  Here's the CVS change list:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r3.ebuild
Comment 3 David M. Andersen 2004-01-11 16:14:34 UTC
Oops I might have misread the bug.  It doesn't seem to be a duplicate after all.  Sorry.
Comment 4 David M. Andersen 2004-01-11 16:32:51 UTC
The easiest way to do this would be to add it to EXTRAVERSION, as anything else wouldn't be standard according to Documentation/kbuild/makefiles.txt.

You wouldn't need to patch anything except the ebuild itself.

-EXTRAVERSION = -gentoo-r4
+EXTRAVERSION = -gentoo-r4-mon

Kinda cheesy, but it should be guaranteed to work/not break anything.

Comment 5 Marcel J. P. Möhring 2004-01-11 18:14:45 UTC
Should have RTFmakefiles.txt before ;)
OK, so back to the standard/manual way. :/
Comment 6 Jason Cox (RETIRED) gentoo-dev 2004-04-01 22:27:02 UTC
So is this resolved? Why not use make install with /boot mounted?
Comment 7 Jason Cox (RETIRED) gentoo-dev 2004-04-08 22:01:45 UTC
Interest seems to have died. Closing.
Comment 8 Jason Cox (RETIRED) gentoo-dev 2004-04-08 22:02:14 UTC
To Quote 
"Should have RTFmakefiles.txt before ;)
OK, so back to the standard/manual way. :/"

Closing.