Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 558188

Summary: [patch] sys-kernel/genkernel: in --config=/etc/genkernel1.conf search, if parameters >9 - there are /etc/genkernel1.conf0
Product: Gentoo Hosted Projects Reporter: Denis Kaganovich <mahatma>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: genkernel-config-name.patch

Description Denis Kaganovich 2015-08-19 18:21:15 UTC
In line 37: eval arg="\$$i"
- I have --config=/etc/kernels/genkernel.conf as $2, and $#=20, so on other 20 param: eval arg="\$20"
- this is equal to "${2}0", so I got "Could not read /etc/kernels/genkernel.conf0"

Must be at least: eval arg="\${$i}"
Or change whole loop to 'for arg in "${@}"; do' without eval.

Second solution attaching...

Reproducible: Always
Comment 1 Denis Kaganovich 2015-08-19 18:24:55 UTC
Created attachment 409492 [details, diff]
genkernel-config-name.patch

Fix --config= with >9 params at best way
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-15 10:03:30 UTC
This was fixed long time ago via https://github.com/gentoo/genkernel/commit/f5f28c6c6fa09a746d317c0956659eb6c6454516