From: Matthias Maier Date: Sat, 4 Mar 2017 16:06:19 +0000 (-0600) Subject: app-emulation/qemu: fix inverted logic in configure stage, bug #611238 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fe801faa69cb147f4fcf2c112e8275f7da935b3d;p=gentoo.git app-emulation/qemu: fix inverted logic in configure stage, bug #611238 Package-Manager: Portage-2.3.3, Repoman-2.3.2 --- 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+=(