summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2009-05-21 14:43:36 +0000
committerTiziano Müller <dev-zero@gentoo.org>2009-05-21 14:43:36 +0000
commit9c44514a0f6a20ae20076213fe173d1e447fbcbd (patch)
tree39d6fc42296cbf5975a0ab39534e9be2eee9e333 /app-emulation
parentRemove arts support which was deprecated by ecasound upstream in next release... (diff)
downloadhistorical-9c44514a0f6a20ae20076213fe173d1e447fbcbd.tar.gz
historical-9c44514a0f6a20ae20076213fe173d1e447fbcbd.tar.bz2
historical-9c44514a0f6a20ae20076213fe173d1e447fbcbd.zip
Version bump (bug #269789), using EAPI-2 now, added patch to make it work with kvm >=85.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/libvirt/ChangeLog9
-rw-r--r--app-emulation/libvirt/Manifest15
-rw-r--r--app-emulation/libvirt/files/libvirt-0.6.3-kvm-85-argv-detection.patch77
-rw-r--r--app-emulation/libvirt/libvirt-0.6.3.ebuild109
4 files changed, 198 insertions, 12 deletions
diff --git a/app-emulation/libvirt/ChangeLog b/app-emulation/libvirt/ChangeLog
index 58a9bdd7ef07..e134c319a7b2 100644
--- a/app-emulation/libvirt/ChangeLog
+++ b/app-emulation/libvirt/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-emulation/libvirt
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.22 2009/04/17 15:01:16 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.23 2009/05/21 14:43:36 dev-zero Exp $
+
+*libvirt-0.6.3 (21 May 2009)
+
+ 21 May 2009; Tiziano Müller <dev-zero@gentoo.org> +libvirt-0.6.3.ebuild,
+ +files/libvirt-0.6.3-kvm-85-argv-detection.patch:
+ Version bump (bug #269789), using EAPI-2 now, added patch to make it work
+ with kvm >=85.
*libvirt-0.6.2 (17 Apr 2009)
diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest
index fe1322ae565c..1b26bc4538ec 100644
--- a/app-emulation/libvirt/Manifest
+++ b/app-emulation/libvirt/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX libvirt-0.4.4-binary-paths.patch 2947 RMD160 10d150facbe7baaefbba6ec4b0287050db8f31c8 SHA1 6f1f912e83f4090293f287068c2f97b9a973a145 SHA256 2a83c75d19291bf3ac7110f48b1b6929515005826fbd7dcbaf4377cb4afb3115
AUX libvirt-0.4.4-capabilities-kvm-path.patch 680 RMD160 42516e1ca91fa59f5c34079874be2af922afd8f6 SHA1 64c867dde6c75a6390af4f4176c5efedda2ae176 SHA256 7a8ae9cc24840132131903cb865338369b5ded3d9535cf911b0b0d77d49ababc
AUX libvirt-0.4.4-kvm-cdrom-fix.patch 1183 RMD160 35555fcee1bbe7550066450c7fcf1a8c20f3c73c SHA1 4a4c728630e645dee99e2625aa900e0099930590 SHA256 2f2573ba4969fb8c068ee8e1af7b60adc97a5caa7d26b58e3caa48ce3371b721
@@ -10,20 +7,16 @@ AUX libvirt-0.4.6-qemu-img-name.patch 811 RMD160 821ad55830f4724fc4d3314d58d7ea7
AUX libvirt-0.5.1-add-missing-permission-checks.patch 5538 RMD160 e531b32e1add746a1d873f1005841349b4a62fa4 SHA1 573ca31d3c55509c076301b91fae9bed9f4abd68 SHA256 c5b5c323f4a97b8dee0324ca44c97fd3263e72b9ea58baff808c226ff9d04bd3
AUX libvirt-0.5.1-libgnu-reposition.patch 478 RMD160 c8f567420dac122ec677a3a4d83e2b4adb0a9e94 SHA1 dd3aa57847cb2f61f0ebd5ae92b01094f22ad29e SHA256 4544c9608b775a3a1b1b4025aa411c8d4426cde3b4ecedff83d661cab685fdac
AUX libvirt-0.6.2-storage-fix.patch 529 RMD160 201adef5a0df14d79cec60133e7dfa6b9e37dc4f SHA1 d8f7c9b79b230ad921bee68f51dcde3b67c5b227 SHA256 a9b90df0671cfda5ba550617549ee4ad918a6c746c6cd38fdf56bb7f450f5b07
+AUX libvirt-0.6.3-kvm-85-argv-detection.patch 2965 RMD160 2da23e5716286923d8b6ee006064877199d474b4 SHA1 86224a000b9c19aff7f65cabaf6da95c7c9b1c3f SHA256 5b6d0739de10766d834e7db2cf72e713344ac0ce4e5a8fe8632fab7301588d89
AUX libvirtd.confd 476 RMD160 63b92da0cf0d589c1c6e76551982deb6b5fc8f9a SHA1 5b76082bb28705606758880c19af922dde1ccb01 SHA256 ff2c94d2a64058152be669256d8d2e241cde4356a77bd653eac9fa3b084666f6
AUX libvirtd.init 2045 RMD160 b544578c242c6f84e2cf07682a06ce261bf40b8a SHA1 81976137c43f6b507e27ac926a6d7947e1a329d3 SHA256 96cbdf8e68a171d170f91167a4217a366325ca668b9e2621ec6800fd35d42c5c
DIST libvirt-0.4.6.tar.gz 5255397 RMD160 7a59cf7b678148c380e20e57f4d5d323f5aeb6b6 SHA1 dd6994e09789e19679cae4bdd65f2d7aea9cf8d0 SHA256 70049e309632718af75cd11116063ade45eb2879eb9e7ac7c6106559d344a37a
DIST libvirt-0.5.1.tar.gz 6086100 RMD160 76044df25d2b17f8da237e127b5eed3e2518a041 SHA1 f229c17b91aa4580a328e8109659e8c1dff0da14 SHA256 951f4c4fac929bab1968680dfcd45fb1053df7d2e3a916e2df13f1d11fe53512
DIST libvirt-0.6.2.tar.gz 6681651 RMD160 9f7c4f4154150df997f23e63500d743451b73945 SHA1 afcc2826f812ec68a78371c6ff8dd41d92e71a3c SHA256 46ec16388b84afad5f906db997f67ca3cbe4870364577028c272bc407e17d04b
+DIST libvirt-0.6.3.tar.gz 6999742 RMD160 2552878017665498013ca132f45ab3f6af0c82f7 SHA1 652bee1955558d47ce779a08c7e4aefc1905f217 SHA256 fd990f312900e6f371d889044e77f6c13ba76b5af07f0e9567a742e76240f721
EBUILD libvirt-0.4.6-r1.ebuild 2426 RMD160 5bbf66a700ad57ea137b9ace65d6acc6b5efb64c SHA1 df87f8027d84059a199f98a87c4c7400f6ae91b0 SHA256 693c8facf12519b3423cbe197de1f35fa58a25bd8d6cce912ec1a01e363cab7b
EBUILD libvirt-0.5.1.ebuild 2905 RMD160 6733abae4fbaf18cc20dd9bef5b40e752b9deefa SHA1 d22071db59b07bc0ce1f29cde6a6403ca5a5d68f SHA256 e4a746ae4aeb4f4590b38226acaee9df9ec84590b7b40eb17c3fc11d8bddc801
EBUILD libvirt-0.6.2.ebuild 2849 RMD160 8141f7fdb011bb429835d7cbc3a06edcb989168e SHA1 b35409b28d0ec4a083f0ce7eb8781c061ede7f45 SHA256 aa03f0f69c23602034a895c0ba485b36b67174c0c9ce9987a4775f832e7c54ba
-MISC ChangeLog 5127 RMD160 c4d3bb422e24b698b788c5062d5a249aee750cb2 SHA1 a5d78a5930d77efe6dbb2e14f770a2a848729485 SHA256 73ced1deaed54e91288de3f0246de7dd3db3c57e819592949a3d86960727d4ed
+EBUILD libvirt-0.6.3.ebuild 2869 RMD160 13feccad2c48a8c8a2fd31f700390accbe0132e3 SHA1 88ed24d66d0081bcba9e73190b1bea8d1c1a4aa6 SHA256 f9a369c53414c0b0b8f0c536a6d277be419ead42e955eefd2e6b173b05a981eb
+MISC ChangeLog 5381 RMD160 996ac5e749296e075b3d86f8b11a572410958bcd SHA1 63e3531af1b65ffa0cf055e3bdf490b8e5eb1944 SHA256 e77adc43e8dfa089a66ddccb872ee1c062462143cde9372e9e4d25f34d71c963
MISC metadata.xml 1266 RMD160 e8c98e672f1a6a1e93865b1f845394cf9a914dd0 SHA1 af936d16dff48c69b837481f1c813e9a9b837828 SHA256 81bf0e5442c3d0d6a088d92c168cf7e38f13ccbb895b1c04d5f7583f642431fd
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.11 (GNU/Linux)
-
-iEYEARECAAYFAknomiYACgkQoeSe8B0zEfx/9ACggyxaYq4dEw2S+JR8OFn+T32W
-GdkAnAvMpzElKavblNPCvR07TpSqgLHm
-=ZxGi
------END PGP SIGNATURE-----
diff --git a/app-emulation/libvirt/files/libvirt-0.6.3-kvm-85-argv-detection.patch b/app-emulation/libvirt/files/libvirt-0.6.3-kvm-85-argv-detection.patch
new file mode 100644
index 000000000000..23d7ebcf97e4
--- /dev/null
+++ b/app-emulation/libvirt/files/libvirt-0.6.3-kvm-85-argv-detection.patch
@@ -0,0 +1,77 @@
+From: Daniel P. Berrange <berrange@redhat.com>
+Date: Mon, 11 May 2009 15:14:24 +0000 (+0000)
+Subject: Fix QEMU ARGV detection with kvm >= 85
+X-Git-Url: http://git.et.redhat.com/?p=libvirt.git;a=commitdiff_plain;h=2b3fcdc378e7bec5c1a78b81632756e92930fd24;hp=07592a3c03771cea7389ae463aa2925748ac970e
+
+Fix QEMU ARGV detection with kvm >= 85
+---
+
+diff --git a/src/qemu_conf.c b/src/qemu_conf.c
+index 9cb71eb..a57d3ab 100644
+--- a/src/qemu_conf.c
++++ b/src/qemu_conf.c
+@@ -431,18 +431,28 @@ int qemudExtractVersionInfo(const char *qemu,
+ return -1;
+
+ char *help = NULL;
+- enum { MAX_HELP_OUTPUT_SIZE = 8192 };
++ enum { MAX_HELP_OUTPUT_SIZE = 1024*64 };
+ int len = virFileReadLimFD(newstdout, MAX_HELP_OUTPUT_SIZE, &help);
+- if (len < 0)
++ if (len < 0) {
++ virReportSystemError(NULL, errno, "%s",
++ _("Unable to read QEMU help output"));
+ goto cleanup2;
++ }
+
+ if (sscanf(help, "QEMU PC emulator version %u.%u.%u (kvm-%u)",
+ &major, &minor, &micro, &kvm_version) != 4)
+ kvm_version = 0;
+
+- if (!kvm_version && sscanf(help, "QEMU PC emulator version %u.%u.%u",
+- &major, &minor, &micro) != 3)
++ if (!kvm_version &&
++ sscanf(help, "QEMU PC emulator version %u.%u.%u",
++ &major, &minor, &micro) != 3) {
++ char *eol = strchr(help, '\n');
++ if (eol) *eol = '\0';
++ qemudReportError(NULL, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
++ _("cannot parse QEMU version number in '%s'"),
++ help);
+ goto cleanup2;
++ }
+
+ version = (major * 1000 * 1000) + (minor * 1000) + micro;
+
+diff --git a/src/qemu_driver.c b/src/qemu_driver.c
+index 30642d5..bd60b29 100644
+--- a/src/qemu_driver.c
++++ b/src/qemu_driver.c
+@@ -1391,12 +1391,8 @@ static int qemudStartVMDaemon(virConnectPtr conn,
+
+ if (qemudExtractVersionInfo(emulator,
+ NULL,
+- &qemuCmdFlags) < 0) {
+- qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
+- _("Cannot determine QEMU argv syntax %s"),
+- emulator);
++ &qemuCmdFlags) < 0)
+ goto cleanup;
+- }
+
+ if (qemuPrepareHostDevices(conn, vm->def) < 0)
+ goto cleanup;
+@@ -3715,12 +3711,8 @@ static int qemudDomainChangeEjectableMedia(virConnectPtr conn,
+
+ if (qemudExtractVersionInfo(vm->def->emulator,
+ NULL,
+- &qemuCmdFlags) < 0) {
+- qemudReportError(conn, dom, NULL, VIR_ERR_INTERNAL_ERROR,
+- _("Cannot determine QEMU argv syntax %s"),
+- vm->def->emulator);
++ &qemuCmdFlags) < 0)
+ return -1;
+- }
+
+ if (qemuCmdFlags & QEMUD_CMD_FLAG_DRIVE) {
+ if (!(devname = qemudDiskDeviceName(conn, newdisk)))
diff --git a/app-emulation/libvirt/libvirt-0.6.3.ebuild b/app-emulation/libvirt/libvirt-0.6.3.ebuild
new file mode 100644
index 000000000000..641114431f2a
--- /dev/null
+++ b/app-emulation/libvirt/libvirt-0.6.3.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.6.3.ebuild,v 1.1 2009/05/21 14:43:36 dev-zero Exp $
+
+EAPI="2"
+
+inherit eutils autotools
+
+DESCRIPTION="C toolkit to manipulate virtual machines"
+HOMEPAGE="http://www.libvirt.org/"
+SRC_URI="http://libvirt.org/sources/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="avahi iscsi hal kvm lvm +lxc +network openvz policykit parted qemu sasl selinux uml xen"
+# devicekit isn't in portage
+
+RDEPEND="sys-libs/readline
+ sys-libs/ncurses
+ >=dev-libs/libxml2-2.5
+ >=net-libs/gnutls-1.0.25
+ dev-lang/python
+ sys-fs/sysfsutils
+ net-analyzer/netcat
+ avahi? ( >=net-dns/avahi-0.6 )
+ iscsi? ( sys-block/open-iscsi )
+ kvm? ( app-emulation/kvm )
+ lvm? ( sys-fs/lvm2 )
+ network? ( net-misc/bridge-utils net-dns/dnsmasq net-firewall/iptables )
+ openvz? ( sys-kernel/openvz-sources )
+ parted? ( >=sys-apps/parted-1.8 )
+ qemu? ( app-emulation/qemu )
+ sasl? ( dev-libs/cyrus-sasl )
+ selinux? ( sys-libs/libselinux )
+ xen? ( app-emulation/xen-tools app-emulation/xen )
+ policykit? ( >=sys-auth/policykit-0.6 )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${PN}-0.4.6-qemu-img-name.patch" \
+ "${FILESDIR}/${PN}-0.6.2-storage-fix.patch" \
+ "${FILESDIR}/${P}-kvm-85-argv-detection.patch"
+ eautoreconf
+}
+
+pkg_setup() {
+ local hasbackend=0
+ local backends="lxc kvm openvz qemu uml xen"
+ local backend
+
+ for backend in $backends ; do
+ use $backend && hasbackend=1
+ done
+
+ if [ "$hasbackend" == 0 ]; then
+ local msg="You must enable one of these USE flags: $backends"
+ eerror "$msg"
+ die "$msg"
+ fi
+}
+
+src_configure() {
+ local my_conf=""
+ if use qemu || use kvm ; then
+ # fix path for kvm-img but use qemu-img if the useflag is set
+ my_conf="--with-qemu \
+ $(use_with !qemu qemu-img-name kvm-img)"
+ else
+ my_conf="--without-qemu"
+ fi
+
+ econf \
+ $(use_with avahi) \
+ $(use_with iscsi storage-iscsi) \
+ $(use_with lvm storage-lvm) \
+ $(use_with lxc) \
+ $(use_with hal) \
+ $(use_with openvz) \
+ $(use_with parted storage-disk) \
+ $(use_with sasl) \
+ $(use_with selinux) \
+ $(use_with uml) \
+ $(use_with xen) \
+ $(use_with network) \
+ $(use_with policykit polkit) \
+ ${my_conf} \
+ --without-devkit \
+ --with-remote \
+ --disable-iptables-lokkit \
+ --localstatedir=/var \
+ --with-remote-pid-file=/var/run/libvirtd.pid
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake instal lfailed"
+ mv "${D}"/usr/share/doc/{${PN}-python*,${P}/python}
+
+ newinitd "${FILESDIR}/libvirtd.init" libvirtd
+ newconfd "${FILESDIR}/libvirtd.confd" libvirtd
+
+ keepdir /var/lib/libvirt/images
+}
+
+pkg_postinst() {
+ elog "To allow normal users to connect to libvirtd you must change the"
+ elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
+}