diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2012-10-24 07:19:19 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2012-10-24 07:19:19 +0000 |
commit | a6873109e75948dce5fb76546c35cbe463a64dbc (patch) | |
tree | f476b4cec0e550b727bff2884bce6d57abdb8c17 /app-emulation/qemu | |
parent | Fix gpg passwords being cached for longer than the user requested (bug #43060... (diff) | |
download | historical-a6873109e75948dce5fb76546c35cbe463a64dbc.tar.gz historical-a6873109e75948dce5fb76546c35cbe463a64dbc.tar.bz2 historical-a6873109e75948dce5fb76546c35cbe463a64dbc.zip |
Further stability fixes either applied by upstream or recommended to be applied.
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'app-emulation/qemu')
-rw-r--r-- | app-emulation/qemu/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/qemu/Manifest | 4 | ||||
-rw-r--r-- | app-emulation/qemu/qemu-1.1.2-r2.ebuild | 368 |
3 files changed, 378 insertions, 2 deletions
diff --git a/app-emulation/qemu/ChangeLog b/app-emulation/qemu/ChangeLog index c96e6128a56a..69ad7cef4d2d 100644 --- a/app-emulation/qemu/ChangeLog +++ b/app-emulation/qemu/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/qemu # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.132 2012/10/20 21:35:22 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.133 2012/10/24 07:19:19 cardoe Exp $ + +*qemu-1.1.2-r2 (24 Oct 2012) + + 24 Oct 2012; Doug Goldstein <cardoe@gentoo.org> +qemu-1.1.2-r2.ebuild: + Further stability fixes either applied by upstream or recommended to be + applied. 20 Oct 2012; Doug Goldstein <cardoe@gentoo.org> -files/qemu-0.11.0-mips64-user-fix.patch, diff --git a/app-emulation/qemu/Manifest b/app-emulation/qemu/Manifest index ec12742ed59e..424cad1bb026 100644 --- a/app-emulation/qemu/Manifest +++ b/app-emulation/qemu/Manifest @@ -5,11 +5,13 @@ AUX qemu-kvm 60 SHA256 ded08eb1c74a9581912a9ca7876de6f33d1c545ed2a7d275f9b174953 DIST qemu-kvm-1.1.1-bp-1.tar.xz 2908 SHA256 16b7cd2e10b3a05d20006898bcfdb26eb596f7c7d3c0e18fb216cb2b2026af40 SHA512 781eae1fdc1cb7482d3d6fd1cf81e0d565588e3987fc4cab92abc06741b1b57d999b0de1fffce7270f50033b53c5707e4ef477ca3b7ddfca3dc1a432c1e15cc7 WHIRLPOOL 3f80b4cc9902021686bea823a41af136d21dd5a6b8aa59913aeb8697c3a38acc02d92ee59b9d052b6d161830a72d709fe684beb95f756a92216fe79cce4c5d9a DIST qemu-kvm-1.1.1.tar.gz 6599376 SHA256 c6fab57ccadcad5deb34728623840a0141a0f3c8f29d0c253db577f059c796df SHA512 1106a35212cdac1fe5b043af6754595d03232f22bf74cdab86973759adb3cff2d3d7b42290883d2d99d97d163fe274de0108a05eed906ffdc3349c0631f52492 WHIRLPOOL 4d9b2b788a7f87104032635b3b6e2cd96275b92683e3003510b0951536ed6bcb959959bc7529e3f912a7a2055b5c1710b9310d591a8b443a17a231e5b86f6105 DIST qemu-kvm-1.1.2-2612b38e.tar.xz 4736 SHA256 c1a00380591b1b2b902c2aa1ea881c216997f18e33b466108b8c52178a829258 SHA512 f27e52bbb8f7c8c5a6f3b3de2966d7000d77178c6522a6311abd366913fc40582106b27fb7b37620c0a2a39346b6edd8827a2a4f31c654bd32adadb023ff325d WHIRLPOOL a5aefd25af0dccf177e7897690433841aaba8629ef6bf8e40a22176508ef4fec5a0f65a9b618b74bb8ab3420f36604b9a736a1a5ba665dee52e6a471693b88f3 +DIST qemu-kvm-1.1.2-6cee76f0.tar.xz 13096 SHA256 0bf503a494d78cc5a59682d22341caa594fcf89a8ce5bd222dd7c45ad009e0c3 SHA512 bb1aa5f40b24cf9860f4af2cbab8bf8d5800ca57c1dccc05f446b5001d426021a3ccc423228ce9607a20dd1fb9e5d93a62f883d5bf56c4ac25b5ebfd3b60940d WHIRLPOOL 3916563bd76d9ae50ddd168863dfada0f44289355c82491a992d2d56c9398c8392fc69a67844154dafb13f9ea315affd27909e3b675ba8b5eab32ab176700b5b DIST qemu-kvm-1.1.2.tar.gz 6605075 SHA256 2be9cb9986c0b67ef97a2d21a51a945e91c4032b8c4229297461d8ed91f95178 SHA512 c1fc6a91276347ec2188c9fa8750b51ed14116ea0a7afc74e0ddf305e9f175a6c16d3dc6ef1ee52926c4d8b9bd0fd5465041f32ec24ce315059062a078e2df82 WHIRLPOOL f21af6107de2343c6a45cbd6aa97cbc58e36a37c37db42110397658a2c303d63e5af96b84b778b5f08e958a5e65a84088c596e1b83cbdcd4009efff64dab4d09 DIST qemu-kvm-1.2.0.tar.gz 6839420 SHA256 e98ab96c24337e312864f2341016695ac11cb9a04be83548a8da89596d591b05 SHA512 c21354127d4585397ab400600ab1ac9aac80cc0431bbf615c8e906819075b00373f382954fbd9fa39bf6479126d8d8e3321b3713346d04abe2c249edfa4eb6fd WHIRLPOOL 3d0662b39174eee0cd8750f6bea5baf57e2dfa82b490c3f1e54f44720ddd05ad029c3011425f651e745973ddb03aaca310bc8acf9f8e656bbb8390a262f7013c EBUILD qemu-1.1.1-r1.ebuild 12073 SHA256 7f408c7425a3e34d31e48a6c886d4a415a970e7d2fb4ffaf58b44f9d9e88f50c SHA512 efd0c757fab7fa7e06b86e32fcedd0347f8728a7ea0bf67718b34b3b0c0135450276fc13ec02755d173626a5e69f09d5382afe2e901c310f3b50efb2e3e2f21a WHIRLPOOL 63949afad70876a426db6808a60d09d0fcf98e221afc24005181114203bb6586509620dee18b9009cf602c57cc0429cb8e718fc89c44a1d64ac2d7309f9ddb67 EBUILD qemu-1.1.2-r1.ebuild 12070 SHA256 5f3b8052bebdbf6eb27755fb7635c363b0639f54aa2bfa2e5c1bbb054cf0f46f SHA512 0eeca6486a6906ba7a90431f3b4177ae220efde83cb6b6857a058d5fd98f1bcac4cdfa9af4f891dfc167387ef5c456784bcd563e8ff1db89df552f69cfe4fbf8 WHIRLPOOL 430b799979dc5d9412fab9a7f6a5d342081d7a3f1b8264d70d8b09ce99c719ef742c55f176209dc7b60390fb58c5c310bb53059178ab4e0f3c4e2c89484a5114 +EBUILD qemu-1.1.2-r2.ebuild 12070 SHA256 7f954a5f2a9961851e7237cf34777a861da24fbda50a3b8993e2bd43eae650ae SHA512 a102ce2a20d0296e148884290bac17a224ddea709cf9e6cffbd66026802bc2b791eebf3db85a93128a8b75a397bae30c7c7b428b58ac6fd14de41eaca73dd91b WHIRLPOOL a5ef7faaabfe8fbea862c65fd2eb6e2040722980d6baa40461a8cfb5c6637b969057178b5e38baebd871a76cad3fcc07644aebe627fdb78a148e05f6bfdc6425 EBUILD qemu-1.2.0.ebuild 12864 SHA256 d87928c65e9d4c0156b4a044c94b577f519935dc1e6ed2e714ee5c65588c1bd5 SHA512 dd0c3c42c65def32f147d4ad02424e385da488a9ec43dec9365c5e30ea88d764996035a530e0ad4927d367a464f014b77b56a37c4545e56ec00c9abedc330146 WHIRLPOOL 75ad3ca36bbbcc7a7c41c5b448a02520dbbdbe8fa70492762b2ecd5de327de760cf21b1646f5179e23ee2c05ed8205f2db9ddca13395f0a7b01d4bdf6761fdc2 EBUILD qemu-9999.ebuild 12834 SHA256 f0e9ef23ebe1b7d16269620237cc12fd6c2158dad5bd001c4c6d3007dc2cbd88 SHA512 ee609002815e041ee022ac3aa738ba7bfb38a40457fc99724c9f155f51a0a2b760f5346ddb42c5da051a375a6206c178f5db197e5c3d4f109f177d0105d1f306 WHIRLPOOL a09d752353ed41e437916525d38a70848c29fe8f7b93b234e71dd84c829967ed3158dba4e6f1c08ae9538d50e2d0107a5d3048986f56db91db477db3a0275e66 -MISC ChangeLog 20674 SHA256 c6183402df11b9ecda26af6b11a049d94e91e41b1526e09f71bc24a0640db034 SHA512 b691f15c781b0da884968f04a1332a3fe582286303470d635640218bc7d10251ddccfce1efd466b336ac670ea04bae3a9e0d2dbdff34181c4b814ee78e696343 WHIRLPOOL bc8d652dae7b5e693775e2a3add8be11453b964351e7de91178533b09621b709251a6100dc748c4970d4aacbdb5a61ce2b8573a1670d70a675d68feaf2a34dbe +MISC ChangeLog 20863 SHA256 dd53cf0c183917274a00aded2a968d31073df48396e4e9e59d3620b94eb7ed00 SHA512 fc757065f661296813246bf27991c8f1f737d54422c7ad50ef1eca56fa74c5b47d478ea7ba6d8e11f032c5a2128fb47ec4c71a94310f113a59ef5e4197bad643 WHIRLPOOL 677a41f90a17cedc3a3b8039f3e93a41b1a0503ea50a75f75bc8a51d1f22bcdeb7904727a48c158f2efa9b17412d100cfca39f5fb10fe9171fd90095170bc8f2 MISC metadata.xml 2701 SHA256 81a75acd430e88c1527edcdd3c7fa223e6fbc762fd8c6ace2f3d82e265aff961 SHA512 fe3eabbda1268be8f8921e5808616429429955d4273dbd2ac19a754e90c5d595f0e8b9f7f071f0399250bfe6569f3b490d8a5fd0d904064e35d3bdc41fcb7eed WHIRLPOOL 1f60aad74213f1151f9df98e302286f674e2fd845a9515b4ece176cc9486d0df7c93b50446180fe5b7d7b552901e9b263d9930579b8b51919e992619ce0d5e07 diff --git a/app-emulation/qemu/qemu-1.1.2-r2.ebuild b/app-emulation/qemu/qemu-1.1.2-r2.ebuild new file mode 100644 index 000000000000..fdfb95fe1c7e --- /dev/null +++ b/app-emulation/qemu/qemu-1.1.2-r2.ebuild @@ -0,0 +1,368 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.1.2-r2.ebuild,v 1.1 2012/10/24 07:19:19 cardoe Exp $ + +EAPI="4" + +MY_PN="qemu-kvm" +MY_P=${MY_PN}-${PV} + +PYTHON_DEPEND="2" +inherit eutils flag-o-matic linux-info toolchain-funcs multilib python user +BACKPORTS=6cee76f0 + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git" + inherit git-2 + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://sourceforge/kvm/${MY_PN}/${MY_P}.tar.gz + ${BACKPORTS:+ + http://dev.gentoo.org/~cardoe/distfiles/${MY_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 +jpeg kernel_linux \ +kernel_FreeBSD mixemu ncurses opengl +png pulseaudio python rbd sasl sdl \ +smartcard spice static systemtap tci +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 ppc ppc64 sh4 sh4eb sparc sparc64 s390x" +IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 mips64 mips64el ppcemb xtensa xtensaeb" +IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus unicore32" + +# Setup the default SoftMMU targets, while using the loops +# below to setup the other targets. +IUSE="${IUSE}" +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 + +REQUIRED_USE="${REQUIRED_USE} + static? ( !alsa !pulseaudio ) + 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(+)] + 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(+)] ) + spice? ( >=app-emulation/spice-0.9.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? ( ${LIB_DEPEND//\[static-libs(+)]} ) + !app-emulation/kqemu + !app-emulation/qemu + !<app-emulation/qemu-1.0 + >=sys-firmware/seabios-1.7.0 + sys-firmware/sgabios + sys-firmware/vgabios + alsa? ( >=media-libs/alsa-lib-1.0.13 ) + bluetooth? ( net-wireless/bluez ) + brltty? ( app-accessibility/brltty ) + opengl? ( virtual/opengl ) + pulseaudio? ( media-sound/pulseaudio ) + python? ( =dev-lang/python-2*[ncurses] ) + sdl? ( media-libs/libsdl[X] ) + smartcard? ( dev-libs/nss ) + spice? ( >=app-emulation/spice-protocol-0.8.1 ) + systemtap? ( dev-util/systemtap ) + usbredir? ( sys-apps/usbredir ) + 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? ( ${LIB_DEPEND} )" + +S="${WORKDIR}/${MY_P}" + +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="${QA_PRESTRIPPED} + 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-mips + usr/bin/qemu-mipsel + 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" + +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 && CHECK_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 + + if use static; then + ewarn "USE=static is very much a moving target because of the packages" + ewarn "we depend on will have their static libs ripped out or wrapped" + ewarn "with USE=static-libs or USE=static due to continued dicsussion" + ewarn "on the mailing list about USE=static's place in Gentoo. As a" + ewarn "result what worked today may not work tomorrow." + 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" + + [[ -n ${BACKPORTS} ]] && \ + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ + epatch + + epatch_user +} + +src_configure() { + local conf_opts audio_opts 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 + + einfo "Building the following softmmu targets: ${softmmu_targets}" + + if [[ -n ${user_targets} ]]; then + einfo "Building the following user targets: ${user_targets}" + conf_opts="${conf_opts} --enable-linux-user" + else + conf_opts="${conf_opts} --disable-linux-user" + fi + + # Add support for SystemTAP + use systemtap && conf_opts="${conf_opts} --enable-trace-backend=dtrace" + + # Fix QA issues. QEMU needs executable heaps and we need to mark it as such + #conf_opts="${conf_opts} --extra-ldflags=-Wl,-z,execheap" + + # Add support for static builds + use static && 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 && gcc-specs-pie; then + conf_opts="${conf_opts} --enable-pie" + fi + + # 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}" + use mixemu && conf_opts="${conf_opts} --enable-mixemu" + + # --enable-vnc-thread will go away in 1.2 + # $(use_enable xen xen-pci-passthrough) for 1.2 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-bsd-user \ + --disable-guest-agent \ + --disable-libiscsi \ + --disable-strip \ + --disable-werror \ + --python=python2 \ + $(use_enable aio linux-aio) \ + $(use_enable bluetooth bluez) \ + $(use_enable brltty brlapi) \ + $(use_enable caps cap-ng) \ + $(use_enable curl) \ + $(use_enable debug debug-info) \ + $(use_enable debug debug-mon) \ + $(use_enable debug debug-tcg) \ + $(use_enable doc docs) \ + $(use_enable fdt) \ + $(use_enable jpeg vnc-jpeg) \ + $(use_enable kernel_linux kvm) \ + $(use_enable kernel_linux kvm-device-assignment) \ + $(use_enable kernel_linux nptl) \ + $(use_enable ncurses curses) \ + $(use_enable opengl) \ + $(use_enable png vnc-png) \ + $(use_enable rbd) \ + $(use_enable sasl vnc-sasl) \ + $(use_enable sdl) \ + $(use_enable smartcard smartcard) \ + $(use_enable smartcard smartcard-nss) \ + $(use_enable spice) \ + $(use_enable tci tcg-interpreter) \ + $(use_enable threads vnc-thread) \ + $(use_enable tls vnc-tls) \ + $(use_enable usbredir usb-redir) \ + $(use_enable uuid) \ + $(use_enable vde) \ + $(use_enable vhost-net) \ + $(use_enable virtfs) \ + $(use_enable vnc) \ + $(use_enable xattr attr) \ + $(use_enable xen) \ + $(use_enable xfs xfsctl) \ + --audio-drv-list=${audio_opts} \ + --target-list="${softmmu_targets} ${user_targets}" \ + --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_install() { + emake DESTDIR="${ED}" install + + if [[ -n ${softmmu_targets} ]]; then + if use kernel_linux; then + insinto /lib/udev/rules.d/ + doins "${FILESDIR}"/65-kvm.rules + fi + + if use qemu_softmmu_targets_x86_64 ; then + dobin "${FILESDIR}"/qemu-kvm + ewarn "The depreciated '/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}" + else + elog "You disabled QEMU_SOFTMMU_TARGETS=x86_64, this disables install" + elog "of /usr/bin/qemu-kvm" + fi + fi + + dodoc Changelog MAINTAINERS TODO pci-ids.txt + newdoc pc-bios/README README.pc-bios + + if use doc; then + dohtml qemu-doc.html qemu-tech.html || die + fi + + use python & dobin scripts/kvm/kvm_stat + + # Remove SeaBIOS since we're using the SeaBIOS packaged one + rm "${ED}/usr/share/qemu/bios.bin" + dosym ../seabios/bios.bin /usr/share/qemu/bios.bin + + # 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" + 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 + + # Remove sgabios since we're using the sgabios packaged one + rm "${ED}/usr/share/qemu/sgabios.bin" + dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin +} + +pkg_postinst() { + if [[ -n ${softmmu_targets} ]]; 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 + 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." + fi +} |