From: Doug Goldstein Date: Mon, 28 Jan 2019 01:07:50 +0000 (-0600) Subject: app-emulation/qemu: fix build with SOFTMMU_TARGETS empty X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c9060c3c166cdabb33564aba054fa1206c5b0b4d;p=gentoo.git app-emulation/qemu: fix build with SOFTMMU_TARGETS empty When SOFTMMU_TARGETS are empty the qemu-bridge-helper isn't installed anymore causing a failure to build due to the fcaps call. Closes: https://bugs.gentoo.org/675110 Signed-off-by: Doug Goldstein Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- diff --git a/app-emulation/qemu/qemu-3.1.0.ebuild b/app-emulation/qemu/qemu-3.1.0.ebuild index 328afccf3466..316cf8925059 100644 --- a/app-emulation/qemu/qemu-3.1.0.ebuild +++ b/app-emulation/qemu/qemu-3.1.0.ebuild @@ -768,7 +768,8 @@ pkg_postinst() { udev_reload fi - fcaps cap_net_admin /usr/libexec/qemu-bridge-helper + [[ -f ${D}/usr/libexec/qemu-bridge-helper ]] && \ + fcaps cap_net_admin /usr/libexec/qemu-bridge-helper DISABLE_AUTOFORMATTING=true readme.gentoo_print_elog diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild index 1c99bc24161a..7561f0f611c0 100644 --- a/app-emulation/qemu/qemu-9999.ebuild +++ b/app-emulation/qemu/qemu-9999.ebuild @@ -760,7 +760,8 @@ pkg_postinst() { udev_reload fi - fcaps cap_net_admin /usr/libexec/qemu-bridge-helper + [[ -f ${D}/usr/libexec/qemu-bridge-helper ]] && \ + fcaps cap_net_admin /usr/libexec/qemu-bridge-helper DISABLE_AUTOFORMATTING=true readme.gentoo_print_elog