commit:     c9060c3c166cdabb33564aba054fa1206c5b0b4d
Author:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 28 01:07:50 2019 +0000
Commit:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
CommitDate: Mon Jan 28 01:08:30 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9060c3c

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 <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 app-emulation/qemu/qemu-3.1.0.ebuild | 3 ++-
 app-emulation/qemu/qemu-9999.ebuild  | 3 ++-
 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 328afccf346..316cf892505 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 1c99bc24161..7561f0f611c 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

Reply via email to