Summary: | /usr/bin/genkernel: line 40: /defaults/software.sh: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Thomas <tschweikle> |
Component: | genkernel | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | bkohler |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Thomas
2019-04-05 06:48:34 UTC
/usr/share/genkernel/gen_funcs.sh: line 97: [: : integer expression expected At line 97, at execution time, "$1" and "$LOGLEVEL" seem undefined. It is not only GK_SHARE being undefined. In /etc/genkernel.conf: # Default share directory location GK_SHARE="${GK_SHARE:-/usr/share/genkernel}" But at the time reading this file GK_SHARE is already defined to be "". This way the default is never set ...! Next: # Location of DISTDIR, where our source tarballs are stored DISTDIR="${GK_SHARE}/distfiles" given the default it would expand to "/usr/share/genkernel/distfiles". Since GK_SHARE is "" it expands to "/distfiles". But shouldn't it expand to "/usr/portage/distfiles"? OK. Trying to set these to what might have been expected. Then: # LANG=C /usr/bin/genkernel --color --no-nconfig --save-config --config=/etc/kernels/kernel-config-x86_64-5.0.9 --kerneldir=/usr/src/linux-5.0.9 --keymap --lvm --dmraid --mdadm --btrfs --zfs all * Gentoo Linux Genkernel; Version 3.5.3.3 * Running with options: --color --no-nconfig --save-config --config=/etc/kernels/kernel-config-x86_64-5.0.9 --kerneldir=/usr/src/linux-5.0.9 --keymap --lvm --dmraid --mdadm --btrfs --zfs all * Using genkernel.conf from /etc/kernels/kernel-config-x86_64-5.0.9 * Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh .. * Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load .. /usr/share/genkernel/gen_funcs.sh: line 47: ${LOGFILE}: ambiguous redirect * Linux Kernel 5.0.9 for x86_64... /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect * .. with config file /etc/kernels/kernel-config-x86_64-5.0.9 /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect * kernel: Using config from /usr/src/linux-5.0.9/.config /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect * kernel: --mrproper is disabled; not running 'make mrproper'. /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect * kernel: --oldconfig is disabled; not running 'make oldconfig'. /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect * kernel: --clean is disabled; not running 'make clean'. /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_compile.sh: line 292: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 47: ${LOGFILE}: ambiguous redirect * ERROR: Failed to compile the "prepare" target... /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect * /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect * -- Grepping log... -- /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect * /usr/share/genkernel/gen_funcs.sh: line 142: ${LOGFILE}: ambiguous redirect /usr/share/genkernel/gen_funcs.sh: line 149: ${LOGFILE}: ambiguous redirect The last working version of genkernel reports "Gentoo Linux Genkernel; Version 69" all versions after this one are broken. Closing as invalid. You don't provide minimum of required information like used version. We don't even know if you are using genkernel or genkernel-next. Like you have noticed, GK_SHARE is critical. It looks like something is really broken on your system. This is not a general problem or genkernel wouldn't work at all: In reply to Thomas from comment #3) > It is not only GK_SHARE being undefined. In /etc/genkernel.conf: > > # Default share directory location > GK_SHARE="${GK_SHARE:-/usr/share/genkernel}" > > But at the time reading this file GK_SHARE is already defined to be "". This > way the default is never set ...! Please explain. Latest released genkernel version has the following genkernel.conf: https://github.com/gentoo/genkernel/blob/v3.5.3.3/genkernel.conf Like you can see, GK_SHARE gets defined in line 222 and only there. Of course, if _you_ have set GK_SHARE already for some reason, config value will get ignored. That's a feature. Question is why is GK_SHARE set to ""... 1. It is not resolved. 2. It is not only GK_SHARE 3. It is with genkernel AND genkernel-next both show the same problems. emerge does not mention any missing packages. # emerge -cav genkernel # emerge -cav genkernel-next # emerge genkernel does not pull in anything else then genkernel or genkernel-next. All dependencies are resolved according to equery. Setting GK_SHARE to the path given leads to next error messages as to be found in Comment 3. Same for genkernel and genkernel-next. Comment 3 even gives you the version used: genkernel: 3.5.3.3 genkernel-next: 069 Seems you just did not read ...! 1) We only support sys-kernel/genkernel. If you have problems with sys-kernel/genkernel-next please file a bug against genkernel-next. 2) Sure, when something on your system is broken, it is not resolved _for you_ but it's not a general problem. 3) The fact that both genkernel and genkernel-next are failing that early with the same problem clearly indicate that something on your system is really broken. Please read comment 4 again and see the linked code: genkernel.conf will set GK_SHARE... This is not a problem in genkernel. For upcoming genkernel release I added > if [ -z "${GK_SHARE}" ] > then > small_die "GK_SHARE is not set!" > fi which tries to catch situations like that but the main question still is how you managed to get an invalid value GK_SHARE. There's really nothing we can do if GK_SHARE is not set/invalid. And the way we set GK_SHARE is straight forward -- unless your genkernel.conf file is empty (which would be a fatal error), I don't see a way how GK_SHARE can be missing/set to an invalid value. Please provide genkernel's build.log and /etc/genkernel.conf. After searching around I found some slight change: --file -> --config --config -> kernel-config Now, after changing option names genkernel works again. This option change was never mentioned anywhere and got overseen after upgrading. # /bin/bash -x genkernel 2>&1 | less was helpful in seeing what was going on. (In reply to Thomas from comment #7) > After searching around I found some slight change: > --file -> --config > --config -> kernel-config > > Now, after changing option names genkernel works again. This option change > was never mentioned anywhere and got overseen after upgrading. > > # /bin/bash -x genkernel 2>&1 | less > > was helpful in seeing what was going on. There was no such change, you were just doing it wrong. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e86d05cef0026ac0c37b60eb03793f471410e584 commit e86d05cef0026ac0c37b60eb03793f471410e584 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2019-07-12 21:17:42 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-07-14 11:58:01 +0000 genkernel: Bail out when GK_SHARE is not defined Bug: https://bugs.gentoo.org/682568 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> genkernel | 5 +++++ 1 file changed, 5 insertions(+) |