Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436310 - app-emulation/qemu-guest-agent-1.1.1 - ERROR: app-emulation/qemu-guest-agent-1.1.1 failed: The init.d file has syntax errors: .../image/etc/init.d/qemu-guest-agent
Summary: app-emulation/qemu-guest-agent-1.1.1 - ERROR: app-emulation/qemu-guest-agent-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-09-26 15:34 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2012-10-30 21:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
qemu-ga init patch (qemu-ga.init.patch,440 bytes, patch)
2012-09-26 15:34 UTC, Michael Mair-Keimberger (iamnr3)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2012-09-26 15:34:11 UTC
Created attachment 325040 [details, diff]
qemu-ga init patch

app-emulation/qemu-guest-agent-1.1.1 fails to build because the init script has an syntax error.

 * Messages for package app-emulation/qemu-guest-agent-1.1.1:

 * ERROR: app-emulation/qemu-guest-agent-1.1.1 failed:
 *   The init.d file has syntax errors: /var/tmp/portage/app-emulation/qemu-guest-agent-1.1.1/image///etc/init.d/qemu-guest-agent
 * 
 * Call stack:
 *   misc-functions.sh, line 1260:  Called install_qa_check
 *   misc-functions.sh, line  566:  Called die
 * The specific snippet of code:
 *                      bash -n "${i}" || die "The init.d file has syntax errors: ${i}"
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/qemu-guest-agent-1.1.1'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-guest-agent-1.1.1'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-guest-agent-1.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-guest-agent-1.1.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/qemu-guest-agent-1.1.1/image'
 * S: '/var/tmp/portage/app-emulation/qemu-guest-agent-1.1.1/work/qemu-kvm-1.1.1'

This is really trivial. It happens because the depend() function of the init script doesn't have anything inside. (no dependencies or missing dependencies?)
My patch just removes the depend() part of the init script. I actually didn't tried to compiled it with the patch, but since "bash -n" works with the patched version i'm pretty sure it would also work with portage
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-10-30 21:11:59 UTC
Fixed in the tree. Thanks.