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
Fixed in the tree. Thanks.