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
This commit is contained in:
Doug Goldstein
2019-01-27 19:07:50 -06:00
parent e584a3a349
commit c9060c3c16
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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