Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154916 - genkernel ignores localversion when naming kernel
Summary: genkernel ignores localversion when naming kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-12 11:05 UTC by David Relson
Modified: 2007-03-14 01:12 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 David Relson 2006-11-12 11:05:47 UTC
Installed:  genkernel-3.4.1 and gentoo-sources-2.6.18-r1

Using 'genkernel --menuconfig all' I specified "CONFIG_LOCAL_VERSION=-mine" to distinguish my kernel.  

I expected the new kernel to be called ernel-genkernel-x86-2.6.18-gentoo-r1-mine, 
but it's called kernel-genkernel-x86-2.6.18-gentoo-r1

This is wrong, is it not?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-12 11:31:40 UTC
Not baselayout (and it works just fine here).

Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-12 17:22:41 UTC
Upgrade to 3.4.6 instead, it's already fixed there.
Comment 3 David Relson 2006-11-13 16:21:32 UTC
The latest genkernel is 3.4.4 (not 3.4.6) and is not quite right.  Here's my latest output:

* Gentoo Linux Genkernel; Version 3.4.4
* Running with options: all

* Linux Kernel 2.6.18-gentoo-r1-11132.6.18-gentoo-r1-osage for x86...
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.6
*         Previous config backed up to .config.bak
*         >> Running oldconfig...
* kernel: >> Cleaning...
* config: >> Invoking menuconfig...
#
# configuration written to .config
#


*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

*         >> Compiling 2.6.18-gentoo-r1-1113 bzImage...

The "compiling" line is what I want, but the "Linux Kernel" line seems to have strung 2 versions together.

Also, my Makefile has:

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 18
EXTRAVERSION = -gentoo-r1-1113
NAME=Avast! A bilge rat!

and /etc/kernels/kernel-config-x86-2.6.18-gentoo-r1-1113 had
CONFIG_LOCALVERSION=""

It appears that the "-osage" was pulled in from /etc/kernels/kernel-config-x86-2.6.18-gentoo-r1-2 as that's presently the only file with CONFIG_LOCALVERION="-osage"

So, some details aren't quite right...
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-15 12:22:46 UTC
root@moon_gen_2:~# zcat /proc/config.gz |grep CONFIG_LOCAL_VERSION
root@moon_gen_2:~# zcat /proc/config.gz |grep VERSION
CONFIG_LOCALVERSION="-Gentoo-moon_12"
CONFIG_LOCALVERSION_AUTO=y
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SRCVERSION_ALL=y
root@moon_gen_2:~#

So, when initial reports mentions 
> I specified "CONFIG_LOCAL_VERSION=-mine" to

I am not surprised there is a bug ... the bug may be in still in genkernel: there is one more underscore in genkernel option.

Any way, I always change this feature manually during menuconfig, and never had any problem.

David Relson, please test your bug on new release, and close the bug if it has been fixed as said in comment 2 !
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2007-03-14 01:12:59 UTC
Well, this is reported as FIXED, so marking as such.  If there's still a problem, feel free to REOPEN the bug.