commit:     507bcd10917cca5314daee207dd5f87283dc722f
Author:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
AuthorDate: Tue Feb 28 17:58:44 2017 +0000
Commit:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
CommitDate: Tue Feb 28 17:58:44 2017 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=507bcd10

app-emulation/qemu: version bump to 2.8.0-r6

 app-emulation/qemu/Manifest                        |   4 +-
 app-emulation/qemu/metadata.xml                    |   4 +-
 .../{qemu-2.8.0-r4.ebuild => qemu-2.8.0-r6.ebuild} | 170 +++++++++++----------
 3 files changed, 92 insertions(+), 86 deletions(-)

diff --git a/app-emulation/qemu/Manifest b/app-emulation/qemu/Manifest
index 058e0d2..da4c713 100644
--- a/app-emulation/qemu/Manifest
+++ b/app-emulation/qemu/Manifest
@@ -29,5 +29,5 @@ AUX qemu-2.8.0-F_SHLCK-and-F_EXLCK.patch 574 SHA256 
d02353daa0ecfe161e938a5e54fe
 AUX qemu-binfmt.initd-r1 7966 SHA256 
5b4b432aa1e44f387c9eb789de0ec6322741fd36dd241f76520f17c6cd6ac49b SHA512 
2ba0bff6eb2b6bac4ed440f793771ce9551cad48e38bddb6cf04f804faac2407e80879f66771910344ddcea45f0014095dcc8bfeb0aad5085ef048fd3612dbd8
 WHIRLPOOL 
a2a1fb830a970757d1e203378c7d382b161b1040f3b8aaf0f22bb3b5e46467eff395474ff40d93c9f133bab307b345a6f75d63eae9f8dd8daf67324db41032f9
 DIST qemu-2.8.0.tar.bz2 28368517 SHA256 
dafd5d7f649907b6b617b822692f4c82e60cf29bc0fc58bc2036219b591e5e62 SHA512 
50f2988d822388ba9fd1bf5dbe68359033ed7432d7f0f9790299f32f63faa6dc72979256b5632ba572d47ee3e74ed40e3e8e331dc6303ec1599f1b4367cb78c2
 WHIRLPOOL 
0ce4e0539657eb832e4039819e7360c792b6aa41c718f0e0d762f4933217f0d370af94b1d6d9776853575b4a6811d8c85db069bf09d21bd15399ac8b50440ff5
 EBUILD qemu-2.8.0-r3.ebuild 21992 SHA256 
a2c7a92d214b05e2c6f58fb0d7263472d6a44259de99afc674df713303b432bb SHA512 
80699e92ae269cb6ab33b3ec0be164111b68e25d498d8af3624f04bca799174937f1fd2cf49357e0598f6567873cdc8aac3310a1175e328207de8ca5b97856d1
 WHIRLPOOL 
2079c97d3aa8589c70288cbcca7e1d8591adb1b40a0846b6a683fc6c72f142892e65b6adfac750931e2e63aa33a9d99f31f9659bd5664e6145059f28ecfced1a
-EBUILD qemu-2.8.0-r4.ebuild 23587 SHA256 
e2ae21fb366e1c2588174d7ce23922f1163ed3364d933610c53013b61e98a6c4 SHA512 
39ec9e32e2539f0daa6fe0f1ae17ec290741f930825ed865f98d7bffec305691680295e9aedc3b30c820570d36b77da014d17667317e2496f92d31ef28d54677
 WHIRLPOOL 
cab8b3faea2b78f30dd8bdf4500ef123fbbc548863d0b27f435e4a89aef18e95e4467798c7a2529f262f225be8fb87871916c1d1aad7ffc604a4ed8ce6db9bfa
-MISC metadata.xml 3854 SHA256 
326fc14b3867842cc40bc364d91e2ca60ca63651e4a17040254166fa09cec04a SHA512 
2e3bbdf84b7b03aedc43621b47e02b8da242fda917dcdf4b2d7532210aaa79c6fbea52a6b8157cdf90cd1e4e282610c0254b96a7a14b285e910d61203acd6461
 WHIRLPOOL 
539ca48b54055e594e16b76341879540d4f302d502c39d1901ed4fd7cc80b186ba29845759d02c60bf4560b8b14ec4fa40869d341e432a025dc792fb38f8eae1
+EBUILD qemu-2.8.0-r6.ebuild 23200 SHA256 
5f27a46c6914629140855bf35eb178b4f1eca69c5410d0215684307420690afb SHA512 
f61e39fb20341c8a16df5e80eb14518ec7d7917a714a373818c8332100ffeec55c89923f4e31c82561e83471e979304d034e1d1bdaf8c75dbefcb37f575b4187
 WHIRLPOOL 
2f7e56c1215b5e68e70feb437eea3b2854d85f23431a14e4977435490134a3d6276e4343434e2120bfe6775b9cac06becdfc93c5f29b26bb2f77de63da839a8e
+MISC metadata.xml 3890 SHA256 
50fd5960fa2280175116b5ee5ff4a9625f02e38f560061a00b2640cde4846d69 SHA512 
f19e826a9daba7f2676f0459f97e7bdc752652ccf8b9dd009fd569977015b0656fee21c74529e53b6bc51c2f19e746f417c3dc1e1472e3767cdefa0746b0876c
 WHIRLPOOL 
03e0dafcdc13beffb0044ce5227b83aa272a21e9835fce9ad16d5bdf56ee1a4c3a1ae4b10d1cdaf405502532b84991b150de262f12fa72497052c2377046845f

diff --git a/app-emulation/qemu/metadata.xml b/app-emulation/qemu/metadata.xml
index 1866d8a..9a8a1a3 100644
--- a/app-emulation/qemu/metadata.xml
+++ b/app-emulation/qemu/metadata.xml
@@ -32,9 +32,9 @@
                <flag name="sdl2">Use libsdl2 instead of libsdl</flag>
                <flag name="spice">Enable Spice protocol support via 
<pkg>app-emulation/spice</pkg></flag>
                <flag name="ssh">Enable SSH based block device support via 
<pkg>net-libs/libssh2</pkg></flag>
-               <flag name="static-softmmu">Builds the Software MMU (system) 
targets as static binaries</flag>
+               <flag name="static-softmmu">Build the Software MMU (system) 
targets as static binaries</flag>
                <flag name="static-user">Build the User targets as static 
binaries</flag>
-               <flag name="static">Enables both 'static-softmmu' and 
'static-user'</flag>
+               <flag name="static">Build the User and Software MMU (system) 
targets as well as tools as static binaries</flag>
                <flag name="snappy">Enable support for snappy compression</flag>
                <flag name="systemtap">Enable SystemTAP/DTrace tracing</flag>
                <flag name="tci">Enable the TCG Interpreter which can speed up 
or slowdown workloads depending on the host and guest CPUs being emulated. In 
the future it will be a runtime option but for now its compile time.</flag>

diff --git a/app-emulation/qemu/qemu-2.8.0-r4.ebuild 
b/app-emulation/qemu/qemu-2.8.0-r6.ebuild
similarity index 84%
rename from app-emulation/qemu/qemu-2.8.0-r4.ebuild
rename to app-emulation/qemu/qemu-2.8.0-r6.ebuild
index a6c842c..8014ef7 100644
--- a/app-emulation/qemu/qemu-2.8.0-r4.ebuild
+++ b/app-emulation/qemu/qemu-2.8.0-r6.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI="6"
 
 PYTHON_COMPAT=( python2_7 )
 PYTHON_REQ_USE="ncurses,readline"
@@ -13,7 +13,7 @@ inherit eutils flag-o-matic linux-info toolchain-funcs 
multilib python-r1 \
 
 if [[ ${PV} = *9999* ]]; then
        EGIT_REPO_URI="git://git.qemu.org/qemu.git"
-       inherit git-2
+       inherit git-r3
        SRC_URI=""
 else
        SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2";
@@ -25,19 +25,20 @@ HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org";
 
 LICENSE="GPL-2 LGPL-2 BSD-2"
 SLOT="0"
-IUSE="accessibility +aio alsa bluetooth bzip2 +caps +curl debug +fdt glusterfs 
\
-gnutls gtk gtk2 infiniband iscsi +jpeg \
-kernel_linux kernel_FreeBSD lzo ncurses nfs nls numa opengl +pin-upstream-blobs
-+png pulseaudio python \
-rbd sasl +seccomp sdl sdl2 selinux smartcard snappy spice ssh static 
static-softmmu
-static-user systemtap tci test +threads usb usbredir vde +vhost-net \
-virgl virtfs +vnc vte xattr xen xfs"
-
-COMMON_TARGETS="aarch64 alpha arm cris i386 m68k microblaze microblazeel mips
-mips64 mips64el mipsel or32 ppc ppc64 s390x sh4 sh4eb sparc sparc64
-x86_64"
-IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb tricore unicore32 
xtensa xtensaeb"
-IUSE_USER_TARGETS="${COMMON_TARGETS} armeb mipsn32 mipsn32el ppc64abi32 
ppc64le sparc32plus tilegx"
+IUSE="accessibility +aio alsa bluetooth bzip2 +caps +curl debug +fdt
+       glusterfs gnutls gtk gtk2 infiniband iscsi +jpeg kernel_linux
+       kernel_FreeBSD lzo ncurses nfs nls numa opengl +pin-upstream-blobs +png
+       pulseaudio python rbd sasl +seccomp sdl sdl2 selinux smartcard snappy
+       spice ssh static static-user systemtap tci test +threads usb usbredir
+       vde +vhost-net virgl virtfs +vnc vte xattr xen xfs"
+
+COMMON_TARGETS="aarch64 alpha arm cris i386 m68k microblaze microblazeel
+       mips mips64 mips64el mipsel or32 ppc ppc64 s390x sh4 sh4eb sparc
+       sparc64 x86_64"
+IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS}
+       lm32 moxie ppcemb tricore unicore32 xtensa xtensaeb"
+IUSE_USER_TARGETS="${COMMON_TARGETS}
+       armeb mipsn32 mipsn32el ppc64abi32 ppc64le sparc32plus tilegx"
 
 use_softmmu_targets=$(printf ' qemu_softmmu_targets_%s' 
${IUSE_SOFTMMU_TARGETS})
 use_user_targets=$(printf ' qemu_user_targets_%s' ${IUSE_USER_TARGETS})
@@ -52,32 +53,35 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
        qemu_softmmu_targets_ppc? ( fdt )
        qemu_softmmu_targets_ppc64? ( fdt )
        sdl2? ( sdl )
-       static? ( static-softmmu static-user )
-       static-softmmu? ( !alsa !pulseaudio !bluetooth !opengl !gtk !gtk2 )
+       static? ( static-user !alsa !bluetooth !gtk !gtk2 !opengl !pulseaudio )
        virtfs? ( xattr )
        vte? ( gtk )"
 
+# Dependencies required for qemu tools (qemu-nbd, qemu-img, qemu-io, ...)
+# and user/softmmu targets (qemu-*, qemu-system-*).
+#
 # Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
 #
 # The attr lib isn't always linked in (although the USE flag is always
 # respected).  This is because qemu supports using the C library's API
 # when available rather than always using the extranl library.
 #
-# Older versions of gnutls are supported, but it's simpler to just require
-# the latest versions.  This is also why we require nettle.
-#
-# TODO: Split out tools deps into another var.  e.g. bzip2 is only used by
-# system binaries and tools, not user binaries.
-COMMON_LIB_DEPEND=">=dev-libs/glib-2.0[static-libs(+)]
-       sys-libs/zlib[static-libs(+)]
-       bzip2? ( app-arch/bzip2[static-libs(+)] )
-       xattr? ( sys-apps/attr[static-libs(+)] )"
-SOFTMMU_LIB_DEPEND="${COMMON_LIB_DEPEND}
+# To configure and compile qemu user targets or tools alone the following
+# dependencies are not strictly necessary:
+#   alsa? ( >=media-libs/alsa-lib-1.0.13 )
+#   fdt? ( >=sys-apps/dtc-1.4.0[static-libs(+)] )
+#   pulseaudio? ( media-sound/pulseaudio )
+#   seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] )
+# but these are so few it is not worth the effort to separate this list.
+TARGETS_DEPEND="
+       >=dev-libs/glib-2.0[static-libs(+)]
        >=x11-libs/pixman-0.28.0[static-libs(+)]
+       sys-libs/zlib[static-libs(+)]
        accessibility? ( app-accessibility/brltty[static-libs(+)] )
        aio? ( dev-libs/libaio[static-libs(+)] )
        alsa? ( >=media-libs/alsa-lib-1.0.13 )
        bluetooth? ( net-wireless/bluez )
+       bzip2? ( app-arch/bzip2[static-libs(+)] )
        caps? ( sys-libs/libcap-ng[static-libs(+)] )
        curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
        fdt? ( >=sys-apps/dtc-1.4.0[static-libs(+)] )
@@ -114,6 +118,7 @@ SOFTMMU_LIB_DEPEND="${COMMON_LIB_DEPEND}
        )
        png? ( media-libs/libpng:0=[static-libs(+)] )
        pulseaudio? ( media-sound/pulseaudio )
+       python? ( ${PYTHON_DEPS} )
        rbd? ( sys-cluster/ceph[static-libs(+)] )
        sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
        sdl? (
@@ -134,13 +139,16 @@ SOFTMMU_LIB_DEPEND="${COMMON_LIB_DEPEND}
                >=app-emulation/spice-0.12.0[static-libs(+)]
        )
        ssh? ( >=net-libs/libssh2-1.2.8[static-libs(+)] )
-       usb? ( >=virtual/libusb-1-r2[static-libs(+)] )
+       systemtap? ( dev-util/systemtap )
        usbredir? ( >=sys-apps/usbredir-0.6[static-libs(+)] )
+       usb? ( >=virtual/libusb-1-r2[static-libs(+)] )
        vde? ( net-misc/vde[static-libs(+)] )
        virgl? ( media-libs/virglrenderer[static-libs(+)] )
        virtfs? ( sys-libs/libcap )
+       xattr? ( sys-apps/attr[static-libs(+)] )
+       xen? ( app-emulation/xen-tools:= )
        xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
-USER_LIB_DEPEND="${COMMON_LIB_DEPEND}"
+
 X86_FIRMWARE_DEPEND="
        >=sys-firmware/ipxe-1.0.0_p20130624
        pin-upstream-blobs? (
@@ -153,14 +161,11 @@ X86_FIRMWARE_DEPEND="
                sys-firmware/sgabios
                sys-firmware/vgabios
        )"
+
 CDEPEND="
-       !static-softmmu? ( $(printf "%s? ( 
${SOFTMMU_LIB_DEPEND//\[static-libs(+)]} ) " ${use_softmmu_targets}) )
-       !static-user? ( $(printf "%s? ( ${USER_LIB_DEPEND//\[static-libs(+)]} ) 
" ${use_user_targets}) )
+       !static? ( ${TARGETS_DEPEND//\[static-libs(+)]} )
        qemu_softmmu_targets_i386? ( ${X86_FIRMWARE_DEPEND} )
-       qemu_softmmu_targets_x86_64? ( ${X86_FIRMWARE_DEPEND} )
-       python? ( ${PYTHON_DEPS} )
-       systemtap? ( dev-util/systemtap )
-       xen? ( app-emulation/xen-tools:= )"
+       qemu_softmmu_targets_x86_64? ( ${X86_FIRMWARE_DEPEND} )"
 DEPEND="${CDEPEND}
        dev-lang/perl
        =dev-lang/python-2*
@@ -168,15 +173,46 @@ DEPEND="${CDEPEND}
        virtual/pkgconfig
        kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
        gtk? ( nls? ( sys-devel/gettext ) )
-       static-softmmu? ( $(printf "%s? ( ${SOFTMMU_LIB_DEPEND} ) " 
${use_softmmu_targets}) )
-       static-user? ( $(printf "%s? ( ${USER_LIB_DEPEND} ) " 
${use_user_targets}) )
+       static? ( ${TARGETS_DEPEND} )
+       static-user? ( ${TARGETS_DEPEND} )
        test? (
                dev-libs/glib[utils]
                sys-devel/bc
        )"
 RDEPEND="${CDEPEND}
-       selinux? ( sec-policy/selinux-qemu )
-"
+       selinux? ( sec-policy/selinux-qemu )"
+
+PATCHES=(
+       # musl patches
+       "${FILESDIR}"/${PN}-2.8.0-F_SHLCK-and-F_EXLCK.patch
+       
"${FILESDIR}"/${PN}-2.0.0-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
+       "${FILESDIR}"/${PN}-2.2.0-_sigev_un.patch
+
+       # gentoo patches
+       "${FILESDIR}"/${PN}-2.5.0-cflags.patch
+       "${FILESDIR}"/${PN}-2.5.0-sysmacros.patch
+       "${FILESDIR}"/${PN}-2.7.0-CVE-2016-8669-1.patch #597108
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2016-9908.patch   #601826
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2016-9912.patch   #602630
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2016-10028.patch  #603444
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2016-10155.patch  #606720
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-2615.patch   #608034
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-2630.patch   #609396
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5525-1.patch #606264
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5525-2.patch
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5552.patch   #606722
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5578.patch   #607000
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5579.patch   #607100
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5667.patch   #607766
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5856.patch   #608036
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5857.patch   #608038
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5898.patch   #608520
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5931.patch   #608728
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5973.patch   #609334
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5987.patch   #609398
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-6058.patch   #609638
+       "${FILESDIR}"/${PN}-2.8.0-CVE-2017-2620.patch   #609206
+)
 
 STRIP_MASK="/usr/share/qemu/palcode-clipper"
 
@@ -186,8 +222,7 @@ QA_PREBUILT="
        usr/share/qemu/openbios-sparc32
        usr/share/qemu/palcode-clipper
        usr/share/qemu/s390-ccw.img
-       usr/share/qemu/u-boot.e500
-"
+       usr/share/qemu/u-boot.e500"
 
 QA_WX_LOAD="usr/bin/qemu-i386
        usr/bin/qemu-x86_64
@@ -332,34 +367,7 @@ src_prepare() {
                -e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \
                Makefile Makefile.target || die
 
-       # Patching for musl
-       epatch "${FILESDIR}"/${PN}-2.8.0-F_SHLCK-and-F_EXLCK.patch
-       epatch 
"${FILESDIR}"/${PN}-2.0.0-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
-       epatch "${FILESDIR}"/${PN}-2.2.0-_sigev_un.patch
-
-       epatch "${FILESDIR}"/${PN}-2.5.0-cflags.patch
-       epatch "${FILESDIR}"/${PN}-2.5.0-sysmacros.patch
-       epatch "${FILESDIR}"/${PN}-2.7.0-CVE-2016-8669-1.patch #597108
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2016-9908.patch   #601826
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2016-9912.patch   #602630
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2016-10028.patch  #603444
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2016-10155.patch  #606720
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-2615.patch   #608034
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-2630.patch   #609396
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5525-1.patch #606264
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5525-2.patch
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5552.patch   #606722
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5578.patch   #607000
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5579.patch   #607100
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5667.patch   #607766
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5856.patch   #608036
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5857.patch   #608038
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5898.patch   #608520
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5931.patch   #608728
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5973.patch   #609334
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-5987.patch   #609398
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-6058.patch   #609638
-       epatch "${FILESDIR}"/${PN}-2.8.0-CVE-2017-2620.patch   #609206
+       default
 
        # Fix ld and objcopy being called directly
        tc-export AR LD OBJCOPY
@@ -367,8 +375,6 @@ src_prepare() {
        # Verbose builds
        MAKEOPTS+=" V=1"
 
-       epatch_user
-
        # Run after we've applied all patches.
        handle_locales
 }
@@ -382,7 +388,6 @@ qemu_src_configure() {
 
        local buildtype=$1
        local builddir="${S}/${buildtype}-build"
-       local static_flag="static-${buildtype}"
 
        mkdir "${builddir}"
 
@@ -471,6 +476,7 @@ qemu_src_configure() {
                        --disable-blobs
                        --disable-tools
                )
+               local static_flag="static-user"
                ;;
        softmmu)
                # audio options
@@ -482,20 +488,23 @@ qemu_src_configure() {
                conf_opts+=(
                        --disable-linux-user
                        --enable-system
+                       --disable-tools
                        --with-system-pixman
                        --audio-drv-list="${audio_opts}"
                )
                use gtk && conf_opts+=( --with-gtkabi=$(usex gtk2 2.0 3.0) )
                use sdl && conf_opts+=( --with-sdlabi=$(usex sdl2 2.0 1.2) )
+               local static_flag="static"
                ;;
        tools)
                conf_opts+=(
                        --disable-linux-user
                        --disable-system
                        --disable-blobs
+                       --enable-tools
                        $(use_enable bzip2)
                )
-               static_flag="static"
+               local static_flag="static"
                ;;
        esac
 
@@ -551,7 +560,7 @@ src_configure() {
 
        [[ -n ${softmmu_targets} ]] && qemu_src_configure "softmmu"
        [[ -n ${user_targets}    ]] && qemu_src_configure "user"
-       [[ -z ${softmmu_targets}${user_targets} ]] && qemu_src_configure "tools"
+       qemu_src_configure "tools"
 }
 
 src_compile() {
@@ -565,10 +574,8 @@ src_compile() {
                default
        fi
 
-       if [[ -z ${softmmu_targets}${user_targets} ]]; then
-               cd "${S}/tools-build"
-               default
-       fi
+       cd "${S}/tools-build"
+       default
 }
 
 src_test() {
@@ -638,6 +645,7 @@ EOF
        done
        cat "${FILESDIR}"/qemu-binfmt.initd.tail >>"${out}" || die
 }
+
 src_install() {
        if [[ -n ${user_targets} ]]; then
                cd "${S}/user-build"
@@ -668,10 +676,8 @@ src_install() {
                fi
        fi
 
-       if [[ -z ${softmmu_targets}${user_targets} ]]; then
-               cd "${S}/tools-build"
-               emake DESTDIR="${ED}" install
-       fi
+       cd "${S}/tools-build"
+       emake DESTDIR="${ED}" install
 
        # Disable mprotect on the qemu binaries as they use JITs to be fast 
#459348
        pushd "${ED}"/usr/bin >/dev/null

Reply via email to