There's syntax error in init script, sys-apps/kexec-tools-2.0.13-r1 build failed due to this bug, the script snippet in initrd_path() is: for x in \ "initrd" \ "initrd.img-${kver}" \ "initrd-${kver}.img" \ "initrd-${kver}" \ "initramfs-${kver}.img" \ "initramfs-genkernel-${karch}-${kver}"; do "initramfs-genkernel-${gkarch}-${kver}"; do if [ -e "${BOOTPART}/${x}" ]; then echo "${BOOTPART}/${x}" return 0 fi done Reproducible: Always Steps to Reproduce: 1. emerge -1avq -O =sys-apps/kexec-tools-2.0.13-r1 Actual Results: * Final size of build directory: 3956 KiB * Final size of installed tree: 332 KiB /var/tmp/portage/sys-apps/kexec-tools-2.0.13-r1/image///etc/init.d/kexec: line 74: syntax error near unexpected token `do' /var/tmp/portage/sys-apps/kexec-tools-2.0.13-r1/image///etc/init.d/kexec: line 74: ` "initramfs-genkernel-${gkarch}-${kver}"; do' * ERROR: sys-apps/kexec-tools-2.0.13-r1::gentoo failed: * The init.d file has syntax errors: /var/tmp/portage/sys-apps/kexec-tools-2.0.13-r1/image///etc/init.d/kexec
Fixed in commit 43983893090e88e6829a52e37a232456613683fd Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: Sun Jan 8 03:59:18 2017 +0100 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: Sun Jan 8 03:59:18 2017 +0100 sys-apps/kexec-tools: Fix syntax error in runscript