diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-03-03 17:19:52 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-03-03 17:19:52 +0000 |
commit | 94064d2401768b71c0e944088f9eac92d43a8dab (patch) | |
tree | 02017aea2970bdbfba6a52f4e504616e5c8d375a /app-emulation/qemu | |
parent | Marking mysql-5.1.61 ppc64 for bug 399375 (diff) | |
download | historical-94064d2401768b71c0e944088f9eac92d43a8dab.tar.gz historical-94064d2401768b71c0e944088f9eac92d43a8dab.tar.bz2 historical-94064d2401768b71c0e944088f9eac92d43a8dab.zip |
New version
Package-Manager: portage-2.2.0_alpha89/cvs/Linux x86_64
Diffstat (limited to 'app-emulation/qemu')
-rw-r--r-- | app-emulation/qemu/ChangeLog | 7 | ||||
-rw-r--r-- | app-emulation/qemu/Manifest | 14 | ||||
-rw-r--r-- | app-emulation/qemu/qemu-1.0.1.ebuild | 258 |
3 files changed, 277 insertions, 2 deletions
diff --git a/app-emulation/qemu/ChangeLog b/app-emulation/qemu/ChangeLog index fcb899c0d959..fac0df46fcf8 100644 --- a/app-emulation/qemu/ChangeLog +++ b/app-emulation/qemu/ChangeLog @@ -1,6 +1,11 @@ # 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.106 2012/03/01 23:38:13 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.107 2012/03/03 17:19:52 lu_zero Exp $ + +*qemu-1.0.1 (03 Mar 2012) + + 03 Mar 2012; Luca Barbato <lu_zero@gentoo.org> +qemu-1.0.1.ebuild: + New version 01 Mar 2012; Brent Baude <ranger@gentoo.org> qemu-0.11.1.ebuild: Marking qemu-0.11.1 ppc for bug 356685 diff --git a/app-emulation/qemu/Manifest b/app-emulation/qemu/Manifest index 600806b6ec6f..bea3afe3ded0 100644 --- a/app-emulation/qemu/Manifest +++ b/app-emulation/qemu/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX qemu-0.11.0-mips64-user-fix.patch 313 RMD160 db016e0a48990a435dd6cf6e807145b33ada4908 SHA1 2ea913b1bcd29734a6d4011794bdb4aa3599a184 SHA256 b4173fc177bd0d0ba67f5551a3512047a19a9b2c0a122f968e32fbd834848d2f AUX qemu-0.11.1-CVE-2012-0029-backport.patch 1448 RMD160 efdf7bfe481bbfec2106d4a1652ec4df3242eb97 SHA1 dd44a1c1224c90f93bfcb19c612c6920325e6624 SHA256 fb739ca478977f17b73489823b92d8964da1bb308db997596e1160900f2c9236 AUX qemu-ifdown 478 RMD160 2187fbf352e6b84686f0cf0e9e9ebe5d26359858 SHA1 1daccb4785fe503687562798f90be1414267e27d SHA256 7d90c39184fd7531d9b8ae787122b68ac768b41afeb0ef2b3baa6461f77af03d @@ -5,11 +8,20 @@ AUX qemu-ifup 554 RMD160 9769d79ab6456bdd7e3e689005f629e2a67b858d SHA1 dde2b27ac AUX qemu-kvm-1.0-e1000-bounds-packet-size-against-buffer-size.patch 1412 RMD160 53749555d464e56cfab39b0fa2e8120ab2c024db SHA1 9046e72b8c7496840e340f6fc351434b8830f191 SHA256 9a06665c47b76b2501f148713c46f8ce0b14ed03da5e6cb03c0d141f5d91900a DIST qemu-0.11.1.tar.gz 3830070 RMD160 4da00fa6c01d7ff6af0ee781bc9260da577ea7d3 SHA1 7b983cd18f44c6e7627532b662f010389d3bcdff SHA256 2ecd2fc0af2ce5d96067ae82cc98a08275c596de53fc929484bedee1d6e7893a DIST qemu-1.0-patches.tar.xz 43540 RMD160 79a39d5a8050fe8eedd5e0becb828d2ae0b465c3 SHA1 423880fb32f27e05d1382ed341e6cc4bee840dc3 SHA256 32a8b98cd5fd661268328d71efbfafd65972102b10da363193f3da98bd9b2d72 +DIST qemu-1.0.1.tar.gz 10853005 RMD160 dcef344f150e238880871768f2f07ccb6e8ecce7 SHA1 4d08b5a83538fcd7b222bec6f1c584da8d12497a SHA256 198902e10782517f607c9ed9e629b5e7708ea39eb373ed3ec3f1c8a169d98378 DIST qemu-1.0.tar.gz 10848714 RMD160 3a60aef6cfebba6896bdb12c99525da5456172fd SHA1 7dcb1b3516554d6d899d7488cd444dbb7721fcee SHA256 47674b7da559d5e1b44cc401af9ac5ad962d14e9eede12567b13e4b841989737 EBUILD qemu-0.11.1-r1.ebuild 4919 RMD160 f447972f186a5128ba80b2c8c5bce8871fa38fde SHA1 e09fd89788f6d628ac4701e31f43282023fe7c4a SHA256 571c7ea28e703e86d1ca5be1eacb7b9249b9bec16527355eed38d721e56b13ea EBUILD qemu-0.11.1.ebuild 4850 RMD160 824fd6898346619a857504aad166fe027111d253 SHA1 a538e6db7670aba1f122267837d23581cf669091 SHA256 f823e8c5d736b76ceb63d4aa2c44487aa33fef12dfb28d6c5a60fbdd4132fa2e EBUILD qemu-1.0-r2.ebuild 6912 RMD160 1155a584070a3ecabd696335c7c301b936f22d95 SHA1 96c3ce1bd440025541ef08751d03478eff78bd46 SHA256 0b9afc45f9af381e672c632faa5c15aab60b65cae4b4380aea57721df286879a EBUILD qemu-1.0-r3.ebuild 7183 RMD160 3cee854cb53c594baf8517f1d647b833c65527b0 SHA1 f418241d7cc8cc37b5d37ac3829f59eef29eb4d4 SHA256 fb7cbfb3fe85ba73d1ea266848c11a2063aa87e0f522ff1623ce7a305815aa73 +EBUILD qemu-1.0.1.ebuild 7045 RMD160 d5df1747db5e695a549614e9ed8bb673574e554d SHA1 338182f559db345189a9e9b02afd626a1a74a8bd SHA256 12947da067b0a706a7f0a6f7d82f4a0266af7c3c8cc621e230d849f443f920a1 EBUILD qemu-9999.ebuild 6818 RMD160 851fad1946e4202508ed063d551fbb1c7d234351 SHA1 a04a53b3640710538406b847ad18df4532b0ab1d SHA256 64e9b4019450de2a454cf0bc9ab458657212d1ee62fb3bdddef86be553060d99 -MISC ChangeLog 15586 RMD160 f3a63ced0a4fd9afedf234bc8c53774600329847 SHA1 bb95324d60b53aea4dea63c53d43d271fbca4a98 SHA256 09799616d918e53875614c59bd24143610f1af3f662929fd4cc5ebbe4f8e603c +MISC ChangeLog 15698 RMD160 30f94e023c5f5910a4dcc8b225c0e0f5d077f94e SHA1 868e5926ab20c9a0a7c0859d54c2d5219e027f09 SHA256 499bdefab631929b888ba56a24f384bc68d1bab4de62bc23b2f9c1b939a9b3d6 MISC metadata.xml 2575 RMD160 d53217a49f76391725580cb4ebb22c0ed43588bf SHA1 0b1f51a4bf30e8899cb0379e14eba26c6aa00b7f SHA256 a07e1dd5932d91789f481394b318cf20f4c5a529168b8e5adb299736a643b94b +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iF4EAREIAAYFAk9SUsYACgkQYpJnKVbCxczy1gD+I436IBfWA7joSRjdZBpsCSE1 +rTzmUh6MKcMx/T4ldYUA/ApwePUAYL5WrL8t90TEIsRTGozggW8fN4W+gAS0fqHY +=HW4N +-----END PGP SIGNATURE----- diff --git a/app-emulation/qemu/qemu-1.0.1.ebuild b/app-emulation/qemu/qemu-1.0.1.ebuild new file mode 100644 index 000000000000..ebbca3388d9f --- /dev/null +++ b/app-emulation/qemu/qemu-1.0.1.ebuild @@ -0,0 +1,258 @@ +# 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.0.1.ebuild,v 1.1 2012/03/03 17:19:52 lu_zero Exp $ + +EAPI=4 + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="git://git.qemu.org/qemu.git + http://git.qemu.org/git/qemu.git" + GIT_ECLASS="git-2" +fi + +inherit eutils flag-o-matic ${GIT_ECLASS} linux-info toolchain-funcs + +if [[ ${PV} != *9999* ]]; then + SRC_URI="http://wiki.qemu.org/download/${P}.tar.gz + http://dev.gentoo.org/~lu_zero/distfiles/${PN}-1.0-patches.tar.xz" + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +fi + +DESCRIPTION="QEMU emulator and ABI wrapper" +HOMEPAGE="http://www.qemu.org" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+aio alsa bluetooth brltty curl esd fdt hardened jpeg kvm ncurses nss +opengl png pulseaudio qemu-ifup rbd sasl sdl spice ssl static threads usbredir vde ++vhost-net 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" + +for target in ${IUSE_SOFTMMU_TARGETS}; do + IUSE="${IUSE} +qemu_softmmu_targets_${target}" +done + +for target in ${IUSE_USER_TARGETS}; do + IUSE="${IUSE} +qemu_user_targets_${target}" +done + +RESTRICT="test" + +RDEPEND=" + !app-emulation/qemu-kvm + !app-emulation/qemu-user + >=dev-libs/glib-2.0 + sys-apps/pciutils + >=sys-apps/util-linux-2.16.0 + sys-libs/zlib + aio? ( dev-libs/libaio ) + alsa? ( >=media-libs/alsa-lib-1.0.13 ) + bluetooth? ( net-wireless/bluez ) + brltty? ( app-accessibility/brltty ) + curl? ( net-misc/curl ) + esd? ( media-sound/esound ) + fdt? ( >=sys-apps/dtc-1.2.0 ) + jpeg? ( virtual/jpeg ) + ncurses? ( sys-libs/ncurses ) + nss? ( dev-libs/nss ) + opengl? ( + virtual/opengl + x11-libs/libX11 + ) + png? ( media-libs/libpng ) + pulseaudio? ( media-sound/pulseaudio ) + qemu-ifup? ( + sys-apps/iproute2 + net-misc/bridge-utils + ) + rbd? ( sys-cluster/ceph ) + sasl? ( dev-libs/cyrus-sasl ) + sdl? ( >=media-libs/libsdl-1.2.11[X] ) + spice? ( + >=app-emulation/spice-0.9.0 + >=app-emulation/spice-protocol-0.8.1 + ) + ssl? ( net-libs/gnutls ) + usbredir? ( sys-apps/usbredir ) + vde? ( net-misc/vde ) + xattr? ( sys-apps/attr ) + xen? ( app-emulation/xen-tools ) + xfs? ( sys-fs/xfsprogs ) +" + +DEPEND="${RDEPEND} + app-text/texi2html + dev-util/pkgconfig + >=sys-kernel/linux-headers-2.6.35 +" + +# alpha ELF binary. don't let portage mess with it +STRIP_MASK="usr/share/qemu/palcode-clipper" + +QA_PRESTRIPPED=" + usr/share/qemu/openbios-ppc + usr/share/qemu/openbios-sparc64 + usr/share/qemu/openbios-sparc32 + usr/share/qemu/palcode-clipper +" +# keep sorted +QA_WX_LOAD="${QA_PRESTRIPPED} + usr/bin/qemu-alpha + usr/bin/qemu-arm + usr/bin/qemu-armeb + usr/bin/qemu-cris + usr/bin/qemu-i386 + usr/bin/qemu-m68k + usr/bin/qemu-microblaze + usr/bin/qemu-microblazeel + 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-sparc32plus + usr/bin/qemu-sparc64 + usr/bin/qemu-s390x + usr/bin/qemu-unicore32 + usr/bin/qemu-x86_64 +" + +pkg_setup() { + use qemu_softmmu_targets_x86_64 || ewarn "You disabled default target QEMU_SOFTMMU_TARGETS=x86_64" + + use kvm && ewarn "You have enabled USE=kvm feature. Please consider using app-emulation/qemu-kvm" +} + +src_prepare() { + + EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ + EPATCH_EXCLUDE="0033-PPC-Fix-linker-scripts-on-ppc-hosts.patch" \ + EPATCH_FORCE="yes" epatch + + # prevent docs to get automatically installed + sed -i '/$(DESTDIR)$(docdir)/d' Makefile || die + + # Fix underlinking. + # Fault reproducer: USE=nss QEMU_SOFTMMU_TARGETS=lm32 QEMU_USER_TARGETS= + sed -i 's/opengl_libs="-lGL"/opengl_libs="-lGL -lX11"/' configure || die +} + +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 + + if [[ -z ${softmmu_targets} ]]; then + conf_opts="${conf_opts} --disable-system" + else + einfo "Building the following softmmu targets: ${softmmu_targets}" + fi + + 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 + + # Fix QA issues. QEMU needs executable heaps and we need to mark it as such + conf_opts="${conf_opts} --extra-ldflags=-Wl,-z,execheap" + + # drop '-g' by default as it tends to eat + # A LOT (~2GB) of ram for each job #355861 + conf_opts="${conf_opts} --disable-debug-info" + + # Add support for static builds + use static && conf_opts="${conf_opts} --static" + + #config options + conf_opts="${conf_opts} + $(use_enable aio linux-aio) + $(use_enable bluetooth bluez) + $(use_enable brltty brlapi) + $(use_enable curl) + $(use_enable fdt) + $(use_enable hardened pie) + $(use_enable jpeg vnc-jpeg) + $(use_enable ncurses curses) + $(use_enable nss smartcard-nss) + $(use_enable opengl) + $(use_enable png vnc-png) + $(use_enable rbd) + $(use_enable sasl vnc-sasl) + $(use_enable sdl) + $(use_enable spice) + $(use_enable ssl vnc-tls) + $(use_enable threads vnc-thread) + $(use_enable vde) + $(use_enable vhost-net) + $(use_enable xen) + $(use_enable xattr attr) + $(use_enable xfs xfsctl) + --disable-darwin-user --disable-bsd-user + " + + # audio options + audio_opts="oss" + use alsa && audio_opts="alsa ${audio_opts}" + use esd && audio_opts="esd ${audio_opts}" + use pulseaudio && audio_opts="pa ${audio_opts}" + use sdl && audio_opts="sdl ${audio_opts}" + + set -- --prefix="${EPREFIX}"/usr \ + --sysconfdir="${EPREFIX}"/etc \ + --disable-strip \ + --disable-werror \ + $(use_enable kvm) \ + --disable-libiscsi \ + --enable-nptl \ + --enable-uuid \ + ${conf_opts} \ + --audio-card-list="ac97 es1370 sb16 cs4231a adlib gus hda" \ + --audio-drv-list="${audio_opts}" \ + --target-list="${softmmu_targets} ${user_targets}" \ + --cc="$(tc-getCC)" \ + --host-cc="$(tc-getBUILD_CC)" + + echo ./configure "$@" # show actual options + ./configure "$@" || die "configure failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + if [[ -n ${softmmu_targets} ]]; then + if use qemu-ifup; then + exeinto /etc/qemu + doexe "${FILESDIR}"/qemu-if{up,down} + fi + fi + + dodoc Changelog MAINTAINERS TODO pci-ids.txt + newdoc pc-bios/README README.pc-bios + dohtml qemu-doc.html qemu-tech.html +} + +pkg_postinst() { + use qemu-ifup || return + elog "You will need the Universal TUN/TAP driver compiled into your" + elog "kernel or loaded as a module to use the virtual network device" + elog "if using -net tap. You will also need support for 802.1d" + elog "Ethernet Bridging and a configured bridge if using the provided" + elog "qemu-ifup script from /etc/qemu." + echo +} |