summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2013-03-17 04:20:43 +0000
committerDoug Goldstein <cardoe@gentoo.org>2013-03-17 04:20:43 +0000
commit9fa6e1f7e5e59e623a44a3ef72f3de32d2e83c1d (patch)
treef8646859b9aca0d51707ec91ccac7db3a5ded967 /app-emulation/qemu
parentThese versions are not compatible with iasl-20130117. (diff)
downloadhistorical-9fa6e1f7e5e59e623a44a3ef72f3de32d2e83c1d.tar.gz
historical-9fa6e1f7e5e59e623a44a3ef72f3de32d2e83c1d.tar.bz2
historical-9fa6e1f7e5e59e623a44a3ef72f3de32d2e83c1d.zip
Further work on developing the qemu 1.4.1 stable bump, contains my entire queue + qemu-kvm migration fixes shared with Fedora. Ensure any libraries which maybe installed are installed into /usr/lib64 for 64-bit systems. Add support for libiscsi. Add support for running qemu tests. Also fix bug #459246, and bug #459120.
Package-Manager: portage-2.1.11.52/cvs/Linux x86_64 Manifest-Sign-Key: 0xD7DFA8D318FA9AEF!
Diffstat (limited to 'app-emulation/qemu')
-rw-r--r--app-emulation/qemu/ChangeLog12
-rw-r--r--app-emulation/qemu/Manifest22
-rw-r--r--app-emulation/qemu/metadata.xml3
-rw-r--r--app-emulation/qemu/qemu-1.4.0-r1.ebuild510
4 files changed, 536 insertions, 11 deletions
diff --git a/app-emulation/qemu/ChangeLog b/app-emulation/qemu/ChangeLog
index 1f178b71e72b..ee1a0a1db33f 100644
--- a/app-emulation/qemu/ChangeLog
+++ b/app-emulation/qemu/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for app-emulation/qemu
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.201 2013/03/12 20:08:09 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.202 2013/03/17 04:20:35 cardoe Exp $
+
+*qemu-1.4.0-r1 (17 Mar 2013)
+
+ 17 Mar 2013; Doug Goldstein <cardoe@gentoo.org> +qemu-1.4.0-r1.ebuild,
+ metadata.xml:
+ Further work on developing the qemu 1.4.1 stable bump, contains my entire
+ queue + qemu-kvm migration fixes shared with Fedora. Ensure any libraries
+ which maybe installed are installed into /usr/lib64 for 64-bit systems. Add
+ support for libiscsi. Add support for running qemu tests. Also fix bug
+ #459246, and bug #459120.
12 Mar 2013; Doug Goldstein <cardoe@gentoo.org> qemu-1.4.0.ebuild:
Add some information on what versions of dependencies we are using to emerge
diff --git a/app-emulation/qemu/Manifest b/app-emulation/qemu/Manifest
index 78256e9dbdce..ed32f4e35bc8 100644
--- a/app-emulation/qemu/Manifest
+++ b/app-emulation/qemu/Manifest
@@ -10,6 +10,7 @@ AUX qemu-binfmt.initd-r1 7023 SHA256 3572c110c6f217754e638796400a5901910a2e61b88
AUX qemu-kvm 60 SHA256 ded08eb1c74a9581912a9ca7876de6f33d1c545ed2a7d275f9b1749539feb7ee SHA512 d973d70ffeb7f4cdc61b25a30bf7174ac05b8c136234478782367a16668ff617756e9862a9cd94acd4b6636fda36410762e069a2eccca99410aa6e3b4294e363 WHIRLPOOL 41937bf752a2f643085fbd04643fb7a5cb898fabe8625d80b730c9e930f48f8d63245d5acdffbe31ecede1e1eb83fd3a73aad925f020e5c016f1b6559e7426d3
AUX qemu-kvm-1.4 68 SHA256 8b1adf198129f001e75a2311fc420c168094d1084d2163cdf6a32b3b23c96137 SHA512 706fab4d155c410acc292e67fb354ce7dcd17f7e33f2ca8c9c44035ea128f8d36f89e27cf87ebe22721f5676be9e7f2ae5484fd000183c8ffd7854e02eb3d120 WHIRLPOOL ef795330b592cef8e3d92f52a77eb77a671e6aa1a47d07531917b5c1c09e72e5df1a44aea939b086e0a3c5ef2a5cea9223556a46ceae73e55300475c42f07067
DIST qemu-1.3.1.tar.bz2 10283677 SHA256 3772e7ef0c9b4178195edcf90e711f12ba123f465fcf09fb43b56bdacaca0eaf SHA512 f371012d0c1fd5c2504ba4235ed787d897ff7b4dcf5bffc4452dd71b33394db4ec46488771927be2fc410408f69ca2c38d1edf23fca1e6767295c416ce98c588 WHIRLPOOL fb440dffca62c48a2644592ecdcd352349852fa67e5aa1c8cec45c86e599ef74cccc3a0464977cefebf311fea98a65e9035b5f87fa0dcdf87034b8a71d675627
+DIST qemu-1.4.0-4114896d.tar.xz 25852 SHA256 9df38a4a7a595093e88b63a112bb06af4bb27ae18078076f39a0ed6eed02e741 SHA512 ed291bc2046ffc345941fc61a7c406e146582475f3b59a57c91eec3dd0aebba32911698a38d8cf68e939791e1dddf0f052e39fe0631c10a0810eb68bb22abc0e WHIRLPOOL 5a13293d039384ba356ca0a184ea10eb4692c88d7a6290886c589cab3a4271eabc33a090d9453169c723badea2c11fb003ae4414471e161c072235ea82b78ff1
DIST qemu-1.4.0-ebc00c94.tar.xz 6752 SHA256 be9574d8df4e3876f40921857b43fdcd62813ab86d496d7af0591aa3978f43ac SHA512 ae47e7dedf314630810e714106cc924a0449b2cdc7a4c7f464f82264311dad916737282a4782abd1479063cd312fec4618ea0416bb959fe4e550435e0bdb56cd WHIRLPOOL 57e31b5e1b947d3ddc9c6f3bf8529ab67b0e80602ffd06bf122be0ce0a1f13f317beed1f1cc8e89192fd5bd4ac7392beab11f10cb0fb6837997a40cb7e216d99
DIST qemu-1.4.0.tar.bz2 10419510 SHA256 066297ed77408fb7588889c271a85cf3c259ad55c939315988e6062d7708eda8 SHA512 8ad0f1409d94283303abdc80e319fcfaad7818cade7c77fcba1b1adde411726ad166c5cc62a561414afb22b3bff956c4ec0cc7d0fec36542dd86dc347506ce72 WHIRLPOOL b0ecc866dd042a8af25f49419be680d7fb313230f99036ca8f22b20663da5b669cce7be89957fb583dc75bdcf73e905d7bd31904351f05d21816137c03c5be25
DIST qemu-kvm-1.1.1-bp-1.tar.xz 2908 SHA256 16b7cd2e10b3a05d20006898bcfdb26eb596f7c7d3c0e18fb216cb2b2026af40 SHA512 781eae1fdc1cb7482d3d6fd1cf81e0d565588e3987fc4cab92abc06741b1b57d999b0de1fffce7270f50033b53c5707e4ef477ca3b7ddfca3dc1a432c1e15cc7 WHIRLPOOL 3f80b4cc9902021686bea823a41af136d21dd5a6b8aa59913aeb8697c3a38acc02d92ee59b9d052b6d161830a72d709fe684beb95f756a92216fe79cce4c5d9a
@@ -25,20 +26,21 @@ EBUILD qemu-1.2.2-r2.ebuild 13797 SHA256 fed8d1598f3f6087029a89b2d263c9c5cb43dc3
EBUILD qemu-1.2.2-r3.ebuild 15167 SHA256 ad0e4f9f13bf61f92ca545ccbeb89dcd3f51aae9de69154a28c2edad46b80a0e SHA512 824bb2abf45545f1af34172dd06dc3f5e6645c06b7ccf1fa0837defe79e917b7d1a9580fb4d2ff0278f5f27adc2669e405f3a05f9b312c9dc1d7acf9b4508e3e WHIRLPOOL 0ce5fe9098e73399840f13a5b3aa5056d56da5855a1539959e7be57d5412ede7b35b4405091903a54b6844505931307853a2932ce0848563d097e5b174e81394
EBUILD qemu-1.2.2-r4.ebuild 15436 SHA256 369bc611d4d63e6bb4ebda6dc5e95b3e40a9d393afa35eaa901ec561dd7c84b9 SHA512 c02f1d208ef6b70c1d1434b6d20967d401f5db7bf0e38ba82354de5289a560e4e236f634f8b64f0a0a181a2f6e74fbb77713ea846b9d95271c9deaafe51510f3 WHIRLPOOL b81eb5f824d9447ddc041c6b511cec62ea38689bc25df689e1f01ce7f743fe2597d3a281ef88ec431d587c9ac542b89b3f6562ae340f24457e4525a1eb5dd194
EBUILD qemu-1.3.1.ebuild 14978 SHA256 e2e24c04443a2358b8c3ca6c9b02ad1db034423a7c08017c21d533c0298dc3d1 SHA512 90d7827fa5dd4ab96edf6c878cef7276bc9931cdca6c02d96d038f338c8f029d77c2323e67bce13b5d428af840d5d79d18071cbc49c00a52af723c7debbc1cfa WHIRLPOOL a6cbfb4fa295aa27c952c3ac1888263ccd99a2328266cb5f5977e6236f71cb3ed65e4b38cfd15035f61c434cb9d88b269ba6124dadf31d11823fdb15a521b940
+EBUILD qemu-1.4.0-r1.ebuild 16226 SHA256 48fab9cfbf2a0ee30bf7778b562f038781e83eb3a47b15b93740a166c1126345 SHA512 12d67f054fd311509dc76e4d3eeb762fe1d1e48f0c245727719387c86c05b782c48685b98a3f099af8724b472299dbd5b2ae914ad6fb2038b67f7d89856f4a25 WHIRLPOOL 85614282cc3af2142ac16aa5a7374b5a4b5758b834846fae81187768d5cc465e493b9707df75db48dad1c17c9d952e857bccf1dbb0373173e7608857d493e4ba
EBUILD qemu-1.4.0.ebuild 15727 SHA256 10af5f359bac62b108f15843212f9834f62ce5942e3e9010cf4fafd927a72a16 SHA512 3cd87c22c71318dd99fcb0479bf45f08ec639b55ea1b6d2a60faf4efd8204378036f8fa61c4bfd5075607b2c47736a6514a98138ff31cb7b232d81d7a9dd60f2 WHIRLPOOL 4eeb52af3e61f0e0071e43ca78a6bb40b0967817327c367bee2b207c91d5888bb57d074fd9233c22c88f0e2deb651debafed5123166eb1daf2a776b18c9713a9
EBUILD qemu-9999.ebuild 13643 SHA256 f597ece7e75bf8c79d5f93f968eb9ba223332806ee00bfbf25f92d4ee2408e82 SHA512 f63a8de91ccc1b6fe559e42cee48eaaa19bb467aabb60e85741d764c84b7cc56491581d1002b7fabfb6fb9947ab79c0a65e65ebf1d19b0928d8d6f14ac3cee91 WHIRLPOOL 3092b448f216f50b07c50144ba700d1b3634487f515cd2df5a14881a3bcb851a453d51ca7c97b211d583a465eaaabd1a116fa73b2d35863186abab4e5d175f12
-MISC ChangeLog 32797 SHA256 524cee86b686296bf9ef015506ca24f3e1fcf41f81bf16364165aef49c79b0a4 SHA512 f2afaa61d722946707fb806fc446b85ce6d56eef3c848f992473ddb48f5a348e0ed852295586cf6cd332938a94876b6cb4a3dcf3578b2ac374b0829387df3b19 WHIRLPOOL d3db3a5afeb10d1d92c4f16dbca8e10ae156f578776e01b2c5d0bb708d7d310d7eb39d1693f9e2b49328b241767934896075da2ce8f168e8919cccd30c8c18aa
-MISC metadata.xml 3045 SHA256 3a7f846fad70a781834770ec6fed685a722182e862f7ee3c977d511d2d676390 SHA512 83e0d89fbec106c8a5a456ee5454342acca28754f37c0e4df5aa6497513a9007d50de238fe5e4d736bb39a0b1217156989f50f21fb0db416d6ddb11403c33273 WHIRLPOOL d3c50b6f4fa9e18563fbdf0d1b5ff775b6bf7a8db144c7a16b52dabc986eff43d56b667abec1fd373fbd886ad41f6a693793a753087a36738a82ec6c1443bfe3
+MISC ChangeLog 33248 SHA256 bd908f640fb0e2963106617b2972aa26571ae4dbb1fb017df476e4e66323d696 SHA512 a0b50e9165ee24c334246198bb10c331fa1fe4575480239062921f802d58392abaa4aa30a6307bb4a81966854cadcc034e0f693f213647c19bf319d42c96c431 WHIRLPOOL 68d0c4d2efb21f74a10944e55215fd8de3716c8101612554943c4129b584bb6f249bd194408c4f09309347e58e41fe9e6fa8a3b2b0097d272d956fca72b6ffd2
+MISC metadata.xml 3228 SHA256 46bcb93b5ec650271b1f2b6de24c5b98214de01b6ec90180011c453e881caaf6 SHA512 e3951867195bc3eaf95492b848040c1739898daf9e3015186d3c6f9ccf59251874f3d7ca90a8a8364935dad7deea90e0153ad108b6bccf8469026c654336ddb1 WHIRLPOOL 6cc8dee4ddeff9c0dc9ce6532b0aa2b92b3f80c101f366dbcb9cec6bd4e3639aab5867019e0b4efafa60b54f08294f807f90f2529bd374170fdae36071043679
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQF8BAEBCABmBQJRP4suXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+iQF8BAEBCABmBQJRRUSXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDMDRGNEJFMDZEQTJGRUY3NkI4MEM3NTlE
-N0RGQThEMzE4RkE5QUVGAAoJENffqNMY+prvvmMH/RbGT+i6ejhx3F6DxmxG1u1t
-QJLgY6W+ZCSOBvQv+ABJJ4J71zgURN7/QMSuERFcQ6tohyu4s/n2ntBzmBY59/p6
-bFHWkoi4hh5qhrToKF93YqwQl3K+qu5N/Cpj6fnji2W5GSGgdaOnSyus6siHjokQ
-t6ItJbysf03E5M3vzwTt5LBP8UN8lHVbpUsrAIsngaBuUdzJqUuSairXA3nKCBNa
-OYY9nGOg5luvclLCsJocpoSguqwpSrDoDNNkL4dLbv7dlo8QxxL04ngr+Wl+DF4a
-jPmVfi16FK+qJgpsI4Ra6YgGvqeg3KIkrq59X/uSYE7SK2VVBQ/ksgwUcDMgjbc=
-=cX9x
+N0RGQThEMzE4RkE5QUVGAAoJENffqNMY+prvtiUH/3S+Qw+LD6MS5O3Iapoy9NU5
+TEJydlh9iBxC7/CkCqKiDIgs6lx/A4iDmo7A76RyOA71ZHTEZs8YH5iPmcyu0rbU
+tLcjBFeN1wIs8f2jq1yZP98rMKyCJo/bRiqaHNf+69QbAQfCmYLZmXSTCNysbMA0
+yF6TnX7q75SjyR54CQ5qVI1TopZOCkfH18YSB3rWulMt4TK/ZbZSWOeMmowtEJds
+/Zvy87yzFpZr/MikkAJ5n3ASoNkKxljHhzjc+15cw+DS1b1cXqRL4sHR+ajWOx4i
+RRb/EfvOMmlORd8X/Hqbbo9TL1OdxovqByK1oglq/mdqB21rWp+EzUd8OSzu60U=
+=iG3q
-----END PGP SIGNATURE-----
diff --git a/app-emulation/qemu/metadata.xml b/app-emulation/qemu/metadata.xml
index 50a112eac7c7..1f54f9502161 100644
--- a/app-emulation/qemu/metadata.xml
+++ b/app-emulation/qemu/metadata.xml
@@ -12,6 +12,9 @@
<flag name='brltty'>Adds support for braille displays using brltty</flag>
<flag name='curl'>Support ISOs / -cdrom directives vis HTTP or HTTPS.</flag>
<flag name='fdt'>Enables firmware device tree support</flag>
+ <flag name='iscsi'>Enable direct iSCSI support via
+ <pkg>net-libs/libiscsi</pkg> instead of indirectly via the Linux
+ block layer that <pkg>sys-block/open-iscsi</pkg> does.</flag>
<flag name='mixemu'>Enable audio mixer emulation. On Fedora, known to cause performance problems when using SDL output and ALSA. For OSS, locks the sound device from other applications.</flag>
<flag name='ncurses'>Enable the ncurses-based console</flag>
<flag name='pulseaudio'>Enable pulseaudio output for sound emulation</flag>
diff --git a/app-emulation/qemu/qemu-1.4.0-r1.ebuild b/app-emulation/qemu/qemu-1.4.0-r1.ebuild
new file mode 100644
index 000000000000..a39397161bbf
--- /dev/null
+++ b/app-emulation/qemu/qemu-1.4.0-r1.ebuild
@@ -0,0 +1,510 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.4.0-r1.ebuild,v 1.1 2013/03/17 04:20:35 cardoe Exp $
+
+EAPI=5
+
+PYTHON_DEPEND="2:2.4"
+inherit eutils flag-o-matic linux-info toolchain-funcs multilib python \
+ user udev fcaps
+BACKPORTS=4114896d
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://git.qemu.org/qemu.git"
+ inherit git-2
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://wiki.qemu-project.org/download//${P}.tar.bz2
+ ${BACKPORTS:+
+ http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+fi
+
+DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
+HOMEPAGE="http://www.linux-kvm.org"
+
+LICENSE="GPL-2 LGPL-2 BSD-2"
+SLOT="0"
+IUSE="+aio alsa bluetooth brltty +caps +curl debug doc fdt iscsi +jpeg \
+kernel_linux kernel_FreeBSD mixemu ncurses opengl +png pulseaudio python \
+rbd sasl +seccomp sdl selinux smartcard spice static static-softmmu \
+static-user systemtap tci test +threads tls usbredir +uuid vde +vhost-net \
+virtfs +vnc xattr xen xfs"
+
+COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel mips
+mipsel or32 ppc ppc64 sh4 sh4eb sparc sparc64 s390x unicore32"
+IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 mips64 mips64el ppcemb xtensa xtensaeb"
+IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus"
+
+# Setup the default SoftMMU targets, while using the loops
+# below to setup the other targets.
+REQUIRED_USE="|| ("
+
+for target in ${IUSE_SOFTMMU_TARGETS}; do
+ IUSE="${IUSE} qemu_softmmu_targets_${target}"
+ REQUIRED_USE="${REQUIRED_USE} qemu_softmmu_targets_${target}"
+done
+REQUIRED_USE="${REQUIRED_USE} )"
+
+for target in ${IUSE_USER_TARGETS}; do
+ IUSE="${IUSE} qemu_user_targets_${target}"
+done
+
+# Block USE flag configurations known to not work
+REQUIRED_USE="${REQUIRED_USE}
+ static? ( static-softmmu static-user )
+ static-softmmu? ( !alsa !pulseaudio !bluetooth !opengl )
+ virtfs? ( xattr )"
+
+# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
+LIB_DEPEND=">=dev-libs/glib-2.0[static-libs(+)]
+ sys-apps/pciutils[static-libs(+)]
+ sys-libs/zlib[static-libs(+)]
+ >=x11-libs/pixman-0.28.0[static-libs(+)]
+ aio? ( dev-libs/libaio[static-libs(+)] )
+ caps? ( sys-libs/libcap-ng[static-libs(+)] )
+ curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
+ fdt? ( >=sys-apps/dtc-1.2.0[static-libs(+)] )
+ jpeg? ( virtual/jpeg[static-libs(+)] )
+ ncurses? ( sys-libs/ncurses[static-libs(+)] )
+ png? ( media-libs/libpng[static-libs(+)] )
+ rbd? ( sys-cluster/ceph[static-libs(+)] )
+ sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
+ sdl? ( >=media-libs/libsdl-1.2.11[static-libs(+)] )
+ seccomp? ( >=sys-libs/libseccomp-1.0.1[static-libs(+)] )
+ spice? ( >=app-emulation/spice-0.12.0[static-libs(+)] )
+ tls? ( net-libs/gnutls[static-libs(+)] )
+ uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] )
+ vde? ( net-misc/vde[static-libs(+)] )
+ xattr? ( sys-apps/attr[static-libs(+)] )
+ xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
+RDEPEND="!static-softmmu? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ !app-emulation/kqemu
+ qemu_softmmu_targets_i386? (
+ sys-firmware/ipxe
+ ~sys-firmware/seabios-1.7.2
+ ~sys-firmware/sgabios-0.1_pre8
+ ~sys-firmware/vgabios-0.7a
+ )
+ qemu_softmmu_targets_x86_64? (
+ sys-firmware/ipxe
+ ~sys-firmware/seabios-1.7.2
+ ~sys-firmware/sgabios-0.1_pre8
+ ~sys-firmware/vgabios-0.7a
+ )
+ alsa? ( >=media-libs/alsa-lib-1.0.13 )
+ bluetooth? ( net-wireless/bluez )
+ brltty? ( app-accessibility/brltty )
+ iscsi? ( net-libs/libiscsi )
+ opengl? ( virtual/opengl )
+ pulseaudio? ( media-sound/pulseaudio )
+ python? ( =dev-lang/python-2*[ncurses] )
+ sdl? ( media-libs/libsdl[X] )
+ selinux? ( sec-policy/selinux-qemu )
+ smartcard? ( dev-libs/nss !app-emulation/libcacard )
+ spice? ( >=app-emulation/spice-protocol-0.12.3 )
+ systemtap? ( dev-util/systemtap )
+ usbredir? ( >=sys-apps/usbredir-0.6 )
+ virtfs? ( sys-libs/libcap )
+ xen? ( app-emulation/xen-tools )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-text/texi2html )
+ kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
+ static-softmmu? ( ${LIB_DEPEND} )
+ test? (
+ dev-libs/glib[utils]
+ sys-devel/bc
+ )"
+
+STRIP_MASK="/usr/share/qemu/palcode-clipper"
+
+QA_PREBUILT="
+ usr/share/qemu/openbios-ppc
+ usr/share/qemu/openbios-sparc64
+ usr/share/qemu/openbios-sparc32
+ usr/share/qemu/palcode-clipper"
+
+QA_WX_LOAD="usr/bin/qemu-i386
+ usr/bin/qemu-x86_64
+ usr/bin/qemu-alpha
+ usr/bin/qemu-arm
+ usr/bin/qemu-cris
+ usr/bin/qemu-m68k
+ usr/bin/qemu-microblaze
+ usr/bin/qemu-microblazeel
+ usr/bin/qemu-mips
+ usr/bin/qemu-mipsel
+ usr/bin/qemu-or32
+ usr/bin/qemu-ppc
+ usr/bin/qemu-ppc64
+ usr/bin/qemu-ppc64abi32
+ usr/bin/qemu-sh4
+ usr/bin/qemu-sh4eb
+ usr/bin/qemu-sparc
+ usr/bin/qemu-sparc64
+ usr/bin/qemu-armeb
+ usr/bin/qemu-sparc32plus
+ usr/bin/qemu-s390x
+ usr/bin/qemu-unicore32"
+
+qemu_support_kvm() {
+ if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386 \
+ use qemu_softmmu_targets_ppc || use qemu_softmmu_targets_ppc64 \
+ use qemu_softmmu_targets_s390x; then
+ return 0
+ fi
+
+ return 1
+}
+
+pkg_pretend() {
+ if use kernel_linux && kernel_is lt 2 6 25; then
+ eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
+ elif use kernel_linux; then
+ if ! linux_config_exists; then
+ eerror "Unable to check your kernel for KVM support"
+ else
+ CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
+ ERROR_KVM="You must enable KVM in your kernel to continue"
+ ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
+ ERROR_KVM_AMD+=" your kernel configuration."
+ ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
+ ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
+ ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
+ ERROR_TUN+=" into your kernel or loaded as a module to use the"
+ ERROR_TUN+=" virtual network device if using -net tap."
+ ERROR_BRIDGE="You will also need support for 802.1d"
+ ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
+ use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
+ ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
+ ERROR_VHOST_NET+=" support"
+
+ if use amd64 || use x86 || use amd64-linux || use x86-linux; then
+ CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
+ fi
+
+ use python && CONFIG_CHECK+=" ~DEBUG_FS"
+ ERROR_DEBUG_FS="debugFS support required for kvm_stat"
+
+ # Now do the actual checks setup above
+ check_extra_config
+ fi
+ fi
+}
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+
+ enewgroup kvm 78
+}
+
+src_prepare() {
+ # Alter target makefiles to accept CFLAGS set via flag-o
+ sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+ Makefile Makefile.target || die
+
+ python_convert_shebangs -r 2 "${S}/scripts/kvm/kvm_stat"
+ python_convert_shebangs -r 2 "${S}/scripts/kvm/vmxcap"
+
+ epatch "${FILESDIR}"/qemu-9999-cflags.patch
+ [[ -n ${BACKPORTS} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+
+ # Fix ld and objcopy being called directly
+ tc-export LD OBJCOPY
+
+ # Verbose builds
+ MAKEOPTS+=" V=1"
+
+ epatch_user
+}
+
+##
+# configures qemu based on the build directory and the build type
+# we are using.
+#
+qemu_src_configure() {
+ debug-print-function $FUNCNAME "$@"
+
+ local buildtype=$1
+ local builddir=$2
+ local conf_opts audio_opts
+ local static_flag="static-${buildtype}"
+
+ conf_opts="--prefix=/usr"
+ conf_opts+=" --sysconfdir=/etc"
+ conf_opts+=" --libdir=/usr/$(get_libdir)"
+ conf_opts+=" --docdir=/usr/share/doc/${PF}/html"
+ conf_opts+=" --disable-bsd-user"
+ conf_opts+=" --disable-guest-agent"
+ conf_opts+=" --disable-strip"
+ conf_opts+=" --disable-werror"
+ conf_opts+=" --python=python2"
+
+ # audio options
+ audio_opts="oss"
+ use alsa && audio_opts="alsa,${audio_opts}"
+ use sdl && audio_opts="sdl,${audio_opts}"
+ use pulseaudio && audio_opts="pa,${audio_opts}"
+
+ if [[ ${buildtype} == "user" ]]; then
+ conf_opts+=" --enable-linux-user"
+ conf_opts+=" --disable-system"
+ conf_opts+=" --target-list=${user_targets}"
+ conf_opts+=" --disable-blobs"
+ conf_opts+=" --disable-bluez"
+ conf_opts+=" --disable-curses"
+ conf_opts+=" --disable-kvm"
+ conf_opts+=" --disable-libiscsi"
+ conf_opts+=" $(use_enable seccomp)"
+ conf_opts+=" --disable-sdl"
+ conf_opts+=" --disable-smartcard-nss"
+ conf_opts+=" --disable-tools"
+ conf_opts+=" --disable-vde"
+ fi
+
+ if [[ ${buildtype} == "softmmu" ]]; then
+ conf_opts+=" --disable-linux-user"
+ conf_opts+=" --enable-system"
+ conf_opts+=" --with-system-pixman"
+ conf_opts+=" --target-list=${softmmu_targets}"
+ conf_opts+=" $(use_enable bluetooth bluez)"
+ conf_opts+=" $(use_enable sdl)"
+ conf_opts+=" $(use_enable aio linux-aio)"
+ conf_opts+=" $(use_enable brltty brlapi)"
+ conf_opts+=" $(use_enable caps cap-ng)"
+ conf_opts+=" $(use_enable curl)"
+ conf_opts+=" $(use_enable fdt)"
+ conf_opts+=" $(use_enable iscsi libiscsi)"
+ conf_opts+=" $(use_enable jpeg vnc-jpeg)"
+ conf_opts+=" $(use_enable kernel_linux kvm)"
+ conf_opts+=" $(use_enable kernel_linux nptl)"
+ conf_opts+=" $(use_enable ncurses curses)"
+ conf_opts+=" $(use_enable opengl)"
+ conf_opts+=" $(use_enable png vnc-png)"
+ conf_opts+=" $(use_enable rbd)"
+ conf_opts+=" $(use_enable sasl vnc-sasl)"
+ conf_opts+=" $(use_enable seccomp)"
+ conf_opts+=" $(use_enable smartcard smartcard-nss)"
+ conf_opts+=" $(use_enable spice)"
+ conf_opts+=" $(use_enable tls vnc-tls)"
+ conf_opts+=" $(use_enable tls vnc-ws)"
+ conf_opts+=" $(use_enable usbredir usb-redir)"
+ conf_opts+=" $(use_enable uuid)"
+ conf_opts+=" $(use_enable vde)"
+ conf_opts+=" $(use_enable vhost-net)"
+ conf_opts+=" $(use_enable virtfs)"
+ conf_opts+=" $(use_enable vnc)"
+ conf_opts+=" $(use_enable xattr attr)"
+ conf_opts+=" $(use_enable xen)"
+ conf_opts+=" $(use_enable xen xen-pci-passthrough)"
+ conf_opts+=" $(use_enable xfs xfsctl)"
+ use mixemu && conf_opts+=" --enable-mixemu"
+ conf_opts+=" --audio-drv-list=${audio_opts}"
+ conf_opts+=" --enable-migration-from-qemu-kvm"
+ fi
+
+ conf_opts+=" $(use_enable debug debug-info)"
+ conf_opts+=" $(use_enable debug debug-tcg)"
+ conf_opts+=" $(use_enable doc docs)"
+ conf_opts+=" $(use_enable tci tcg-interpreter)"
+
+ # Add support for SystemTAP
+ use systemtap && conf_opts="${conf_opts} --enable-trace-backend=dtrace"
+
+ # Add support for static builds
+ use ${static_flag} && conf_opts="${conf_opts} --static --disable-pie"
+
+ # We always want to attempt to build with PIE support as it results
+ # in a more secure binary. But it doesn't work with static or if
+ # the current GCC doesn't have PIE support.
+ if ! use ${static_flag} && gcc-specs-pie; then
+ conf_opts="${conf_opts} --enable-pie"
+ fi
+
+ einfo "./configure ${conf_opts}"
+ cd ${builddir}
+ ../configure \
+ --cc="$(tc-getCC)" \
+ --host-cc="$(tc-getBUILD_CC)" \
+ ${conf_opts} \
+ || die "configure failed"
+
+ # FreeBSD's kernel does not support QEMU assigning/grabbing
+ # host USB devices yet
+ use kernel_FreeBSD && \
+ sed -E -e "s|^(HOST_USB=)bsd|\1stub|" -i "${S}"/config-host.mak
+}
+
+src_configure() {
+ softmmu_targets=
+ user_targets=
+
+ for target in ${IUSE_SOFTMMU_TARGETS} ; do
+ use "qemu_softmmu_targets_${target}" && \
+ softmmu_targets="${softmmu_targets},${target}-softmmu"
+ done
+
+ for target in ${IUSE_USER_TARGETS} ; do
+ use "qemu_user_targets_${target}" && \
+ user_targets="${user_targets},${target}-linux-user"
+ done
+
+ [[ -n ${softmmu_targets} ]] && \
+ einfo "Building the following softmmu targets: ${softmmu_targets}"
+
+ [[ -n ${user_targets} ]] && \
+ einfo "Building the following user targets: ${user_targets}"
+
+ if [[ -n ${softmmu_targets} ]]; then
+ mkdir "${S}/softmmu-build"
+ qemu_src_configure "softmmu" "${S}/softmmu-build"
+ fi
+
+ if [[ -n ${user_targets} ]]; then
+ mkdir "${S}/user-build"
+ qemu_src_configure "user" "${S}/user-build"
+ fi
+}
+
+src_compile() {
+ if [[ -n ${user_targets} ]]; then
+ cd "${S}/user-build"
+ default
+ fi
+
+ if [[ -n ${softmmu_targets} ]]; then
+ cd "${S}/softmmu-build"
+ default
+ fi
+}
+
+src_test() {
+ cd "${S}/softmmu-build"
+ emake -j1 check
+}
+
+src_install() {
+ if [[ -n ${user_targets} ]]; then
+ cd "${S}/user-build"
+ emake DESTDIR="${ED}" install
+
+ # Install binfmt handler init script for user targets
+ newinitd "${FILESDIR}/qemu-binfmt.initd-r1" qemu-binfmt
+ fi
+
+ if [[ -n ${softmmu_targets} ]]; then
+ cd "${S}/softmmu-build"
+ emake DESTDIR="${ED}" install
+
+ if use test; then
+ dohtml check-report.html
+ fi
+
+ if use kernel_linux; then
+ udev_dorules "${FILESDIR}"/65-kvm.rules
+ fi
+
+ if use qemu_softmmu_targets_x86_64 ; then
+ newbin "${FILESDIR}/qemu-kvm-1.4" qemu-kvm
+ ewarn "The deprecated '/usr/bin/kvm' symlink is no longer installed"
+ ewarn "You should use '/usr/bin/qemu-kvm', you may need to edit"
+ ewarn "your libvirt configs or other wrappers for ${PN}"
+ elif use x86 || use amd64; then
+ elog "You disabled QEMU_SOFTMMU_TARGETS=x86_64, this disables install"
+ elog "of the /usr/bin/qemu-kvm script."
+ fi
+
+ use python && dobin "${S}/scripts/kvm/kvm_stat"
+ use python && dobin "${S}/scripts/kvm/vmxcap"
+ fi
+
+ # Install config file example for qemu-bridge-helper
+ insinto "/etc/qemu"
+ doins "${FILESDIR}/bridge.conf"
+
+ cd "${S}"
+ dodoc Changelog MAINTAINERS TODO docs/specs/pci-ids.txt
+ newdoc pc-bios/README README.pc-bios
+
+ # Remove SeaBIOS since we're using the SeaBIOS packaged one
+ rm "${ED}/usr/share/qemu/bios.bin"
+ if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
+ dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
+ fi
+
+ # Remove vgabios since we're using the vgabios packaged one
+ rm "${ED}/usr/share/qemu/vgabios.bin"
+ rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
+ rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
+ rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
+ rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
+ if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
+ dosym ../vgabios/vgabios.bin /usr/share/qemu/vgabios.bin
+ dosym ../vgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
+ dosym ../vgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
+ dosym ../vgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
+ dosym ../vgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
+ fi
+
+ # Remove sgabios since we're using the sgabios packaged one
+ rm "${ED}/usr/share/qemu/sgabios.bin"
+ if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
+ dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
+ fi
+
+ # Remove iPXE since we're using the iPXE packaged one
+ rm "${ED}"/usr/share/qemu/pxe-*.rom
+ if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
+ dosym ../ipxe/808610de.rom /usr/share/qemu/pxe-e1000.rom
+ dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
+ dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
+ dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
+ dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
+ dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
+ fi
+}
+
+pkg_postinst() {
+ local virtfs_caps=
+
+ if qemu_support_kvm; then
+ elog "If you don't have kvm compiled into the kernel, make sure you have"
+ elog "the kernel module loaded before running kvm. The easiest way to"
+ elog "ensure that the kernel module is loaded is to load it on boot."
+ elog "For AMD CPUs the module is called 'kvm-amd'"
+ elog "For Intel CPUs the module is called 'kvm-intel'"
+ elog "Please review /etc/conf.d/modules for how to load these"
+ elog
+ elog "Make sure your user is in the 'kvm' group"
+ elog "Just run 'gpasswd -a <USER> kvm', then have <USER> re-login."
+ elog
+ fi
+
+ virtfs_caps+="cap_chown,cap_dac_override,cap_fowner,cap_fsetid,"
+ virtfs_caps+="cap_setgid,cap_mknod,cap_setuid"
+
+ fcaps cap_net_admin /usr/libexec/qemu-bridge-helper
+ use virtfs && fcaps ${virtfs_caps} /usr/bin/virtfs-proxy-helper
+
+ elog "The ssl USE flag was renamed to tls, so adjust your USE flags."
+ elog "The nss USE flag was renamed to smartcard, so adjust your USE flags."
+}
+
+pkg_info() {
+ echo "Using:"
+ echo " $(best_version app-emulation/spice-protocol)"
+ echo " $(best_version sys-firmware/ipxe)"
+ echo " $(best_version sys-firmware/seabios)"
+ if has_version sys-firmware/seabios[binary]; then
+ echo " USE=binary"
+ else
+ echo " USE=''"
+ fi
+ echo " $(best_version sys-firmware/vgabios)"
+}