Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691686 - sys-kernel/genkernel-4.0.0_beta10: error when using --mdadm option
Summary: sys-kernel/genkernel-4.0.0_beta10: error when using --mdadm option
Status: RESOLVED FIXED
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: 2019-08-07 15:08 UTC by Anna Tikhomirova
Modified: 2019-08-07 16:51 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 Anna Tikhomirova 2019-08-07 15:08:30 UTC
Genkernel prints error and exits when trying to use --mdadm option.

Reproducible: Always

Steps to Reproduce:
Run: genkernel --loglevel=5 --mdadm --menuconfig all
Actual Results:  
Genkernel prints error and exits

Expected Results:  
Genkernel should build the kernel

Genkernel log:

* CMD_LOGLEVEL: 5
* CMD_MDADM: yes
* ERROR: parse_cmdline(): print_warning(): Invalid usage of print_info(): Function takes at least two arguments (1 given)!
* 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!
*
* --no-cleanup is set; Skipping cleanup ...
* TEMP:
* CACHE_DIR: /var/cache/genkernel
* TMPDIR:
/usr/share/genkernel/gen_funcs.sh: line 429: let: GK_TIME_RUNTIME_SECONDS=1565190363-: syntax error: operand expected (error token is "-")
/usr/share/genkernel/gen_funcs.sh: line 430: let: GK_TIME_RUNTIME_DAYS=/86400: syntax error: operand expected (error token is "/86400")


Without --mdadm option genkernel works fine.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-08-07 15:32:52 UTC
Good catch, you hit this because

> if isTrue "${CMD_MDADM}" && [ ! -e /sbin/mdadm ]
>                               ^^^^^^^^^^^^^^^^            

triggered for you.

New beta will land shortly which will contain a fix.
Comment 2 Larry the Git Cow gentoo-dev 2019-08-07 15:46:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=70de004ed8550d2c1f9b81140659fee005c2b33f

commit 70de004ed8550d2c1f9b81140659fee005c2b33f
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-08-07 15:38:10 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-08-07 15:45:19 +0000

    gen_cmdline.sh: parse_cmdline(): We no longer require /sbin/mdadm to be present on host system
    
    In addition, this will remove an invalid call to print_warning.
    
    Bug: https://bugs.gentoo.org/691686
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 gen_cmdline.sh | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-08-07 16:51:15 UTC
Fix is in >=sys-kernel/genkernel-4.0.0_beta11, thank you for the report!