Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605014 - sys-apps/kexec-tools: syntax error in file kexec.init-2.0.13-r1
Summary: sys-apps/kexec-tools: syntax error in file kexec.init-2.0.13-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-08 04:02 UTC by Drunkard Zhang
Modified: 2017-01-08 14:15 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 Drunkard Zhang 2017-01-08 04:02:50 UTC
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
Comment 1 Coacher 2017-01-08 14:15:21 UTC
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