Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716846 - Feature request: leave LOCALVERSION alone
Summary: Feature request: leave LOCALVERSION alone
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-09 20:01 UTC by Peter Gantner (a.k.a. nephros)
Modified: 2020-06-20 02:35 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 Peter Gantner (a.k.a. nephros) 2020-04-09 20:01:12 UTC
Current versions of genkernel can either unset, add something to, or set CONFIG_LOCALVERSION to %%ARCH%%.

There is no option to tell genkernel to leave localversion to the value chosen by the user in make *config alone (except by having genkernel have run no oldconfig and friends at all).

This feature request is asking to respect the user's choice and not force some default of rather limited use.

Reproducible: Always

Steps to Reproduce:
1. run make menuconfig on a kernel
2. set CONFIG_LOCALVERSION to a custom value
3. run genkernel
4. observe settings from 2. be thrown away
Actual Results:  
4. observe settings from 2. be thrown away

Expected Results:  
Respect values chosen by the configurant of the kernel
Comment 1 Peter Gantner (a.k.a. nephros) 2020-04-09 20:09:31 UTC
> There is no option to tell genkernel to leave localversion to the value chosen by the user in make *config alone (except by having genkernel have run no oldconfig and friends at all).

Correction: there is simply NO option at all to prevent it from messing with the setting.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-06-20 02:35:35 UTC
Sorry, I have to close this as WONTFIX:

Like written in other bugs before, CONFIG_LOCALVERSION is the only place for us to get/set things like $ARCH in a *reliable* and *transparent* way.

You can set LOCALVERSION through genkernel. You have full control: Either specify complete value using `--kernel-localversion=` parameter or use `--kernel-append-localversion=` parameter to just append anything to genkernel's default value (which I find quite useful in case you want to test a new revision with separate kernel image, initramfs and modules). You can also set them in your genkernel.conf file.

These options also allow you to retain previous name schema.

However, I cannot recommend getting rid of the default value because most users normally want that common tools can find /lib/modules for running kernel following `uname -r`.