app-emulation/qemu: fix build with SOFTMMU_TARGETS empty
authorDoug Goldstein <cardoe@gentoo.org>
Mon, 28 Jan 2019 01:07:50 +0000 (19:07 -0600)
committerDoug Goldstein <cardoe@gentoo.org>
Mon, 28 Jan 2019 01:08:30 +0000 (19:08 -0600)
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

app-emulation/qemu/qemu-3.1.0.ebuild
app-emulation/qemu/qemu-9999.ebuild

index 328afccf346633e68a885f86af42cdd1b30220ff..316cf8925059d87e128db3695dea3f9e437edf32 100644 (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
index 1c99bc24161aa7805038df84163a17b1b8c9f9d4..7561f0f611c007d5a0336b3af2118ef5a027f408 100644 (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