From fe801faa69cb147f4fcf2c112e8275f7da935b3d Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 4 Mar 2017 10:06:19 -0600 Subject: [PATCH] app-emulation/qemu: fix inverted logic in configure stage, bug #611238 Package-Manager: Portage-2.3.3, Repoman-2.3.2 --- app-emulation/qemu/qemu-2.8.0-r6.ebuild | 6 +++--- app-emulation/qemu/qemu-9999.ebuild | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app-emulation/qemu/qemu-2.8.0-r6.ebuild b/app-emulation/qemu/qemu-2.8.0-r6.ebuild index 9c2b891c89e4..584a2e15773b 100644 --- a/app-emulation/qemu/qemu-2.8.0-r6.ebuild +++ b/app-emulation/qemu/qemu-2.8.0-r6.ebuild @@ -413,10 +413,10 @@ qemu_src_configure() { # Disable options not used by user targets as the default configure # options will autoprobe and try to link in a bunch of unused junk. conf_softmmu() { - if [[ ${buildtype} == "user" ]] ; then - echo "--disable-${2:-$1}" - else + if [[ ${buildtype} == "softmmu" ]] ; then use_enable "$@" + else + echo "--disable-${2:-$1}" fi } conf_opts+=( diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild index 580f45bfabd9..46221a38b07c 100644 --- a/app-emulation/qemu/qemu-9999.ebuild +++ b/app-emulation/qemu/qemu-9999.ebuild @@ -392,10 +392,10 @@ qemu_src_configure() { # Disable options not used by user targets as the default configure # options will autoprobe and try to link in a bunch of unused junk. conf_softmmu() { - if [[ ${buildtype} == "user" ]] ; then - echo "--disable-${2:-$1}" - else + if [[ ${buildtype} == "softmmu" ]] ; then use_enable "$@" + else + echo "--disable-${2:-$1}" fi } conf_opts+=( -- 2.26.2