Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744694 - sys-kernel/genkernel-4.1.2-r3: use default option for KERNEL_LOCALVERSION even when set in /etc/genkernel.conf
Summary: sys-kernel/genkernel-4.1.2-r3: use default option for KERNEL_LOCALVERSION eve...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-25 16:38 UTC by Thibaud CANALE
Modified: 2020-09-25 17:07 UTC (History)
0 users

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


Attachments
genkernel.log (gzip) (genkernel.log.gz,3.20 KB, application/gzip)
2020-09-25 16:38 UTC, Thibaud CANALE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud CANALE 2020-09-25 16:38:46 UTC
Created attachment 662449 [details]
genkernel.log (gzip)

Hello,

I am unable to not set the default value for the kernel’s option "CONFIG_LOCALVERSION", because genkernel modifies the .config file, even when we explicitly set to empty the KERNEL_LOCALVERSION in /etc/genkernel.conf, both tested as followed:
> KERNEL_LOCALVERSION=
> KERNEL_LOCALVERSION=""

In /var/log/genkernel.log:
> *   KERNEL_LOCALVERSION defaulted to "-%%ARCH%%".
../..
> * Using '/usr/src/linux/include/config/kernel.release' to extract LOCALVERSION ...
> * KERNEL_ARCH set to 'x86' ...
../..
> *         >> Ensure that CONFIG_LOCALVERSION is set ...
> *                  - Setting option 'CONFIG_LOCALVERSION' to '"-x86_64"' in '/usr/src/linux/.config'...

No idea why it want to “ensure that CONFIG_LOCALVERSION is set ...”.
And in case the config provides it, I don’t want to use the special value "UNSET".

Please see the log file in gzip format as attachment.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2020-09-25 16:54:22 UTC
Not a bug. Genkernel depends on CONFIG_LOCALVERSION so you cannot set it to an *empty* value. Because you mentioned in another bug you don't like genkernel's filename, please read man page. You can restore previous naming using something like

> --kernel-filename='kernel-genkernel-%%ARCH%%-%%KV%%' --kernel-localversion=UNSET

Pay attention to quoting. Notice the special value 'UNSET'. Do same for --initramfs-filename.
Comment 2 Thibaud CANALE 2020-09-25 17:07:21 UTC
(In reply to Thomas Deutschmann from comment #1)
> Because you mentioned in another bug you don't like
> genkernel's filename, please read man page. You can restore previous naming
> using something like
> 
> > --kernel-filename='kernel-genkernel-%%ARCH%%-%%KV%%' --kernel-localversion=UNSET

I did read man page, and I said “I don’t want to use the special value "UNSET".” because the default configuration file says:
> Use special value "UNSET" to unset already set CONFIG_LOCALVERSION.

And I don’t want to modify the .config file.

About kernel-filename and initramfs-filename, they don’t work as expected, but this is another bug.