Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646444 - sys-kernel/genkernel-3.4.52.4-r2 - Cannot parse --config option properly when multiple options are specified
Summary: sys-kernel/genkernel-3.4.52.4-r2 - Cannot parse --config option properly when...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-02 22:42 UTC by sachse
Modified: 2019-03-26 08:53 UTC (History)
2 users (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 sachse 2018-02-02 22:42:11 UTC
sys-kernel/genkernel-3.4.52.4-r2 ERROR: Error: No kernel .config specified, or file not found!

if --config= option is set then the message is:
/usr/bin/genkernel: line 37: /etc/genkernel.conf9: No such file or directory

Reproducible: Always

Steps to Reproduce:
1. genkernel --config=/etc/genkernel.conf --menuconfig --loglevel=5 --no-splash --lvm --mdadm --disklabel --luks --gpg --keymap --mdadm-config=/etc/mdadm.conf --no-dmraid --no-zfs --no-iscsi --no-integrated-initramfs  --install initramfs --no-clean --no-mrproper all

Every command with more than 9 parameters fail.
Actual Results:  
genkernel crashes with more than 9 commandline parameters because a bug in the commandline parser


bad line 37:   eval arg="\$$i"
fixed line 37: eval arg="\${$i}"
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-02-02 23:49:07 UTC
I can only reproduce when --config is the first or second option. If it is further down, it runs.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-26 08:53:48 UTC
I cannot reproduce with current git master. Please re-open if you are still able to reproduce.