Hello, I have been experiencing this issue for a long time, and I've just found time to deal with it (update the kernel). After the call of genkernel, I receive errors of mismatching regular expressions, which seemed ridiculous. [code] # genkernel --menuconfig all * Gentoo Linux Genkernel; Version 4.1.2 * Using genkernel configuration from '/etc/genkernel.conf' ... * Running with options: --menuconfig all * ERROR: GK_FILENAME_INITRAMFS value 'initramfs-5.4.80-gentoo-r1-x86_64.img' does not match regex '^[a-zA-Z0-9_.+-]{1,}'. Check --initramfs-filename option! * Please consult '/var/log/genkernel.log' for more information and any * errors that were reported above. * * Report any genkernel bugs to bugs.gentoo.org and * assign your bug to genkernel@gentoo.org. Please include * as much information as you can in your bug report; attaching * '/var/log/genkernel.log' so that your issue can be dealt with effectively. * * Please do *not* report kernel compilation failures as genkernel bugs! * [/code] After an inspection of the problem, I converged to the line 253 of "/usr/share/genkernel/gen_determineargs.sh" and we realized that the problem was due to the current locale I'm using: [code] # locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=tr_TR.UTF-8 LC_TIME=en_GB.UTF-8 LC_COLLATE=tr_TR.UTF-8 LC_MONETARY=tr_TR.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT=tr_TR.UTF-8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= [/code] When the genkernel command is called with LC_ALL=C, the problem is resolved; [code] # LC_ALL=C genkernel --menuconfig all * Gentoo Linux Genkernel; Version 4.1.2 * Using genkernel configuration from '/etc/genkernel.conf' ... * Running with options: --menuconfig all * Working with Linux kernel 5.4.80-gentoo-r1-x86_64 for x86_64 * Using kernel config file '/etc/kernels/kernel-config-5.4.80-gentoo-r1-x86_64' ... * * Note: The version above is subject to change (depends on config and status of kernel sources). * kernel: >> Initializing ... * >> Running 'make mrproper' ... ... ... [/code] But I think that this is a bug of genkernel. The program should run smoothly regardless of the current locale.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=0785165ca64b8e6396a24043789d0bfb8b3359d3 commit 0785165ca64b8e6396a24043789d0bfb8b3359d3 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2021-02-06 16:18:10 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2021-02-06 16:18:10 +0000 genkernel: normalize locales We need to ensure we are using same locales within genkernel because some regular expressions or program output we parse maybe different depending on used locales. Bug: https://bugs.gentoo.org/763165 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> genkernel | 6 ++++++ 1 file changed, 6 insertions(+)
Released with genkernel-4.2.0!