diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2019-01-27 19:07:50 -0600 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2019-01-27 19:08:30 -0600 |
commit | c9060c3c166cdabb33564aba054fa1206c5b0b4d (patch) | |
tree | 8a68f89e3ebe54dc878f59f038bfc6f9e2686da5 /app-emulation | |
parent | sys-apps/sysvinit: Removed old. (diff) | |
download | gentoo-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.ebuild | 3 | ||||
-rw-r--r-- | 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 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 |