summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2019-01-27 19:07:50 -0600
committerDoug Goldstein <cardoe@gentoo.org>2019-01-27 19:08:30 -0600
commitc9060c3c166cdabb33564aba054fa1206c5b0b4d (patch)
tree8a68f89e3ebe54dc878f59f038bfc6f9e2686da5 /app-emulation
parentsys-apps/sysvinit: Removed old. (diff)
downloadgentoo-c9060c3c166cdabb33564aba054fa1206c5b0b4d.tar.gz
gentoo-c9060c3c166cdabb33564aba054fa1206c5b0b4d.tar.bz2
gentoo-c9060c3c166cdabb33564aba054fa1206c5b0b4d.zip
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 <cardoe@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/qemu/qemu-3.1.0.ebuild3
-rw-r--r--app-emulation/qemu/qemu-9999.ebuild3
2 files changed, 4 insertions, 2 deletions
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