summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2011-06-07 17:11:50 +0000
committerDoug Goldstein <cardoe@gentoo.org>2011-06-07 17:11:50 +0000
commitd230d2e557ecf57b0bd4e43cd9176159cbc5d9bb (patch)
tree43a81a831e808eac18c1784b93daefadf47ad5b9 /app-emulation/virt-manager
parentVersion bump. Remove old. (diff)
downloadhistorical-d230d2e557ecf57b0bd4e43cd9176159cbc5d9bb.tar.gz
historical-d230d2e557ecf57b0bd4e43cd9176159cbc5d9bb.tar.bz2
historical-d230d2e557ecf57b0bd4e43cd9176159cbc5d9bb.zip
Add back a patch from Michael Williams <spacex@gmail.com> that shows CPU usage per guest instead of as a system whole. Extremely useful when you have a 16 core host with 40 VMs running. Additionally, dropped some stale patches from files/
Package-Manager: portage-2.1.10/cvs/Linux x86_64
Diffstat (limited to 'app-emulation/virt-manager')
-rw-r--r--app-emulation/virt-manager/ChangeLog14
-rw-r--r--app-emulation/virt-manager/Manifest17
-rw-r--r--app-emulation/virt-manager/files/virt-manager-0.8.2-ssh-tunnel-shutdown.patch20
-rw-r--r--app-emulation/virt-manager/files/virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch23
-rw-r--r--app-emulation/virt-manager/files/virt-manager-0.8.4-default-keyring.patch33
-rw-r--r--app-emulation/virt-manager/files/virt-manager-0.8.7-vcpu-stats.patch19
-rw-r--r--app-emulation/virt-manager/virt-manager-0.8.7-r1.ebuild73
7 files changed, 108 insertions, 91 deletions
diff --git a/app-emulation/virt-manager/ChangeLog b/app-emulation/virt-manager/ChangeLog
index 8aa6d45b5fab..0510c0673e14 100644
--- a/app-emulation/virt-manager/ChangeLog
+++ b/app-emulation/virt-manager/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for app-emulation/virt-manager
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-manager/ChangeLog,v 1.43 2011/03/28 08:40:20 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-manager/ChangeLog,v 1.44 2011/06/07 17:11:50 cardoe Exp $
+
+*virt-manager-0.8.7-r1 (07 Jun 2011)
+
+ 07 Jun 2011; Doug Goldstein <cardoe@gentoo.org>
+ -files/virt-manager-0.8.2-ssh-tunnel-shutdown.patch,
+ -files/virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch,
+ -files/virt-manager-0.8.4-default-keyring.patch,
+ +virt-manager-0.8.7-r1.ebuild, +files/virt-manager-0.8.7-vcpu-stats.patch:
+ Add back a patch from Michael Williams <spacex@gmail.com> that shows CPU
+ usage per guest instead of as a system whole. Extremely useful when you have
+ a 16 core host with 40 VMs running. Additionally, dropped some stale patches
+ from files/
*virt-manager-0.8.7 (28 Mar 2011)
diff --git a/app-emulation/virt-manager/Manifest b/app-emulation/virt-manager/Manifest
index 114c06f21c3b..511bc9ddb670 100644
--- a/app-emulation/virt-manager/Manifest
+++ b/app-emulation/virt-manager/Manifest
@@ -1,21 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-AUX virt-manager-0.8.2-ssh-tunnel-shutdown.patch 771 RMD160 adea4c43aca12e0d0000b77ffbca5bce5d079735 SHA1 c75731bde811b9e1ee3016e7a977d228dca6a708 SHA256 5ffbb3be721468e0a4e8e7bef34db26a83e29bb118db10015605956f436c40e0
-AUX virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch 723 RMD160 9d390085db8ded74d953c4e6462794f90bd03dc0 SHA1 8b3ec66d07bc12244a8dca520821ef297b0209e2 SHA256 1df75fd9128c056a3f01e9d5bf1a0c389ae2c356986700c39ff94215bb60461b
-AUX virt-manager-0.8.4-default-keyring.patch 1735 RMD160 e18d9d945ba694418a48141cbd50a314880bf625 SHA1 916a1321e1a686e42dac68bd1ff3951bdde3492a SHA256 99b177aa59a5aeba3436cde972f0cb48458b1db6a716bd7f4d629a924607e886
+AUX virt-manager-0.8.7-vcpu-stats.patch 878 RMD160 929127a555242573eb19a0186d313b973d788d48 SHA1 798e5781a8213a56778e3ce08c4104acccce6d33 SHA256 99f19355f0622dff379c80baa539b5924977a949cadfc0aa2a7f506a70fe9049
DIST virt-manager-0.8.6-backports-1.tar.bz2 1368 RMD160 a8b361ab35db5d19b95f2467671217a290f4707c SHA1 4d22364d19db33033526495d47e6bae4a9475544 SHA256 7f1fee25005b24e1e442e72fad42811c2601a13401f75a32c9e4442c3ebb9875
DIST virt-manager-0.8.6.tar.gz 1953680 RMD160 58ad20262bc38fbb364dd68b4fd2189bbf832a0a SHA1 cb94a53268613808180294e997d7dfd77148e27d SHA256 1d99271460a0c59e006405799d254676bf9ef4be5341842f18219e1e1fceec83
DIST virt-manager-0.8.7.tar.gz 1879504 RMD160 e80475270e54018b89e5a1a58c467478c03c71b5 SHA1 fe1565b9836b23cefb37d60b403be5b302e83472 SHA256 1907ec0e5479d6af8b4882fc068b74fa8c04f8d36ab0a503b405a937fe765dd5
EBUILD virt-manager-0.8.6.ebuild 2068 RMD160 d8c0419904deec856055d1c7d7899a3767a1d3a8 SHA1 0b7952c11a7676a3d24548dd0003ba99eccb7540 SHA256 0a5c4832b67c1c3529909a2b809792510e9588d75e6a6317641a0cb515ec325d
+EBUILD virt-manager-0.8.7-r1.ebuild 2113 RMD160 ac239b953c1877893524aeba54a57d44cee1b8bf SHA1 f492b3a84791cd1917eef9b8f3c2a8b9af30ac79 SHA256 aaf54391f39f105126f31c272d265a4d7f812bd33be2032440da39073b139ae9
EBUILD virt-manager-0.8.7.ebuild 2068 RMD160 728259d099e521e92ac28dee3607a0be4f47a248 SHA1 3925f038b2b1575140f72466f8f34647271a7d67 SHA256 61d844725e237e665a447edff4b89232d81134a49e39913d8df7d37abcc38861
EBUILD virt-manager-9999.ebuild 2699 RMD160 3a03835cfc63932c9e6564939f2f29594b5a9b47 SHA1 18bee91e0e9eae0e2bd43530c89c2ce7968cf80e SHA256 fd4a38c7059aa3b888fee207b4060fba0ac092f0dda50e5746967b0aab5142ad
-MISC ChangeLog 8703 RMD160 ebcc2595f4df23e31ac66e718f70eff7eb8eee35 SHA1 0751283c743b9115b78db23e3c0e7c2f1853e1ad SHA256 577ca0a528b5554b1d30dc68ccb22f4c3dd898ce3953c6d91879c845a61fc1cc
+MISC ChangeLog 9283 RMD160 f8c87573cbc32eac46eda2858beb61379cde5a28 SHA1 6d2716cf5e7b2eca8aef922c587ae295fba3f462 SHA256 0d4937b1480ef03c93c1c2c43393a5854129c4fedb7b869fb6389c4592b67514
MISC metadata.xml 555 RMD160 958278f1fc6aa09e5864dd8fd5a8a242dbbccd9e SHA1 7476279e0c610b679ce61d96bbfc36396708807e SHA256 a52a5e2d7e7ea6bd78be3d02a294857193ff72aab24543385cf168f7b8efa53b
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
-
-iEYEARECAAYFAk2QSXwACgkQAiZjviIA2XgivACffCk5zUCT5TWUe/8RRsEF6tJb
-ueMAn03MlSfQqTp673F9/jRCtt+7Qt8b
-=mu9P
------END PGP SIGNATURE-----
diff --git a/app-emulation/virt-manager/files/virt-manager-0.8.2-ssh-tunnel-shutdown.patch b/app-emulation/virt-manager/files/virt-manager-0.8.2-ssh-tunnel-shutdown.patch
deleted file mode 100644
index cc7040a3e732..000000000000
--- a/app-emulation/virt-manager/files/virt-manager-0.8.2-ssh-tunnel-shutdown.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff -Nur virt-manager-0.8.2/src/virtManager/console.py virt-manager-0.8.2-ssh-tunnel/src/virtManager/console.py
---- virt-manager-0.8.2/src/virtManager/console.py 2009-12-14 16:40:30.000000000 -0600
-+++ virt-manager-0.8.2-ssh-tunnel/src/virtManager/console.py 2010-02-04 11:40:17.000000000 -0600
-@@ -29,6 +29,7 @@
- import gtkvnc
- import os
- import socket
-+import signal
-
- from virtManager.error import vmmErrorDialog
-
-@@ -534,7 +535,7 @@
- logging.debug("Shutting down tunnel PID %d FD %d" %
- (self.vncTunnel[1], self.vncTunnel[0].fileno()))
- self.vncTunnel[0].close()
-- os.waitpid(self.vncTunnel[1], 0)
-+ os.kill(self.vncTunnel[1], signal.SIGTERM)
- self.vncTunnel = None
-
- def try_login(self, src=None):
diff --git a/app-emulation/virt-manager/files/virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch b/app-emulation/virt-manager/files/virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch
deleted file mode 100644
index 7d3c7c4b95bb..000000000000
--- a/app-emulation/virt-manager/files/virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-
-# HG changeset patch
-# User Cole Robinson <crobinso@redhat.com>
-# Date 1273168456 14400
-# Node ID f2d3931243fe7576701dec6deddf19cfc0145409
-# Parent beb2272277eecd4bdc4015c905edf0b910bf9fa8
-Fix livecd 'customize before install' traceback
-
---- a/src/virtManager/domain.py Wed May 05 16:46:46 2010 -0400
-+++ b/src/virtManager/domain.py Thu May 06 13:54:16 2010 -0400
-@@ -1990,7 +1990,10 @@
- return libvirt.VIR_DOMAIN_SHUTOFF
-
- def get_xml(self):
-- return self._backend.get_config_xml()
-+ xml = self._backend.get_config_xml()
-+ if not xml:
-+ xml = self._backend.get_config_xml(install=False)
-+ return xml
- def _get_inactive_xml(self):
- return self.get_xml()
-
-
diff --git a/app-emulation/virt-manager/files/virt-manager-0.8.4-default-keyring.patch b/app-emulation/virt-manager/files/virt-manager-0.8.4-default-keyring.patch
deleted file mode 100644
index 2e836d7caef6..000000000000
--- a/app-emulation/virt-manager/files/virt-manager-0.8.4-default-keyring.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -Nur virt-manager-0.8.4/AUTHORS virt-manager-0.8.4-default-keyring//AUTHORS
---- virt-manager-0.8.4/AUTHORS 2010-03-23 13:25:27.000000000 -0500
-+++ virt-manager-0.8.4-default-keyring//AUTHORS 2010-06-15 12:19:29.000000000 -0500
-@@ -63,6 +63,7 @@
- Fred Leeflang <fredl-at-dutchie-dot-org>
- Jon Nordby <jononor-at-gmail-dot-com>
- Ales Zelinka <azelinka-at-redhat.com>
-+ Matthias Fulz <olz1983-at-googlemail-dot-com>
-
- <...send a patch & get your name here...>
-
-diff -Nur virt-manager-0.8.4/src/virtManager/keyring.py virt-manager-0.8.4-default-keyring//src/virtManager/keyring.py
---- virt-manager-0.8.4/src/virtManager/keyring.py 2010-03-23 13:25:29.000000000 -0500
-+++ virt-manager-0.8.4-default-keyring//src/virtManager/keyring.py 2010-06-15 12:21:53.000000000 -0500
-@@ -35,11 +35,15 @@
- def __init__(self):
- if haveKeyring:
- try:
-- if not("default" in gnomekeyring.list_keyring_names_sync()):
-- gnomekeyring.create_sync("default", None)
- self.keyring = gnomekeyring.get_default_keyring_sync()
- if self.keyring == None:
-- logging.warning("Failed to create default keyring")
-+ # Code borrowed from
-+ # http://trac.gajim.org/browser/src/common/passwords.py
-+ self.keyring = 'default'
-+ try:
-+ gnomekeyring.create_sync(self.keyring, None)
-+ except gnomekeyring.AlreadyExistsError:
-+ pass
- except:
- logging.warning(("Keyring unavailable: '%s'") % (str((sys.exc_info())[0]) + " " + str((sys.exc_info())[1])))
- self.keyring = None
diff --git a/app-emulation/virt-manager/files/virt-manager-0.8.7-vcpu-stats.patch b/app-emulation/virt-manager/files/virt-manager-0.8.7-vcpu-stats.patch
new file mode 100644
index 000000000000..4bdca3ef7346
--- /dev/null
+++ b/app-emulation/virt-manager/files/virt-manager-0.8.7-vcpu-stats.patch
@@ -0,0 +1,19 @@
+diff -ur a/src/virtManager/domain.py b/src/virtManager/domain.py
+--- a/src/virtManager/domain.py 2011-03-24 15:39:28.000000000 -0500
++++ b/src/virtManager/domain.py 2011-06-07 11:33:59.000000000 -0500
+@@ -765,8 +765,12 @@
+
+ pcentCpuTime = (
+ (cpuTime) * 100.0 /
+- (((now - prevTimestamp) * 1000.0 * 1000.0 * 1000.0) *
+- self.connection.host_active_processor_count()))
++ (((now - prevTimestamp) * 1000.0 * 1000.0 * 1000.0) ))
++
++ if self.vcpu_count() > 0:
++ pcentCpuTime /= self.vcpu_count()
++ else:
++ pcentCpuTime /= self.connection.host_active_processor_count()))
+
+ # Due to timing diffs between getting wall time & getting
+ # the domain's time, its possible to go a tiny bit over
+Only in b/src/virtManager: domain.py.orig
diff --git a/app-emulation/virt-manager/virt-manager-0.8.7-r1.ebuild b/app-emulation/virt-manager/virt-manager-0.8.7-r1.ebuild
new file mode 100644
index 000000000000..e4c2e030169f
--- /dev/null
+++ b/app-emulation/virt-manager/virt-manager-0.8.7-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-manager/virt-manager-0.8.7-r1.ebuild,v 1.1 2011/06/07 17:11:50 cardoe Exp $
+
+#BACKPORTS=
+
+EAPI=2
+
+PYTHON_DEPEND="2:2.4"
+
+# Stop gnome2.eclass from doing stuff on USE=debug
+GCONF_DEBUG="no"
+
+inherit eutils gnome2 python ${HG_ECLASS}
+
+SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz
+ ${BACKPORTS:+mirror://gentoo/${P}-backports-${BACKPORTS}.tar.bz2}"
+KEYWORDS="~amd64 ~x86"
+VIRTINSTDEP=">=app-emulation/virtinst-0.500.6"
+
+DESCRIPTION="A graphical tool for administering virtual machines (KVM/Xen)"
+HOMEPAGE="http://virt-manager.org/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="gnome-keyring policykit sasl"
+RDEPEND=">=dev-python/pygtk-1.99.12
+ >=app-emulation/libvirt-0.7.0[python,sasl?]
+ >=dev-libs/libxml2-2.6.23[python]
+ ${VIRTINSTDEP}
+ >=gnome-base/librsvg-2
+ >=x11-libs/vte-0.12.2:0[python]
+ >=net-libs/gtk-vnc-0.3.8[python,sasl?]
+ >=dev-python/dbus-python-0.61
+ >=dev-python/gconf-python-1.99.11
+ dev-python/urlgrabber
+ gnome-keyring? ( dev-python/gnome-keyring-python )
+ policykit? ( sys-auth/polkit )"
+DEPEND="${RDEPEND}
+ app-text/rarian
+ dev-util/intltool"
+
+src_prepare() {
+ sed -e "s/python/python2/" -i src/virt-manager.in || \
+ die "python2 update failed"
+
+ [[ -n ${BACKPORTS} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+
+ epatch "${FILESDIR}/${P}-vcpu-stats.patch"
+
+ gnome2_src_prepare
+}
+
+src_install() {
+ gnome2_src_install
+
+ insinto /usr/share/virt-manager/pixmaps/
+ doins "${S}"/pixmaps/*.png
+ doins "${S}"/pixmaps/*.svg
+
+ insinto /usr/share/virt-manager/pixmaps/hicolor/16x16/actions/
+ doins "${S}"/pixmaps/hicolor/16x16/actions/*.png
+
+ insinto /usr/share/virt-manager/pixmaps/hicolor/22x22/actions/
+ doins "${S}"/pixmaps/hicolor/22x22/actions/*.png
+
+ insinto /usr/share/virt-manager/pixmaps/hicolor/24x24/actions/
+ doins "${S}"/pixmaps/hicolor/24x24/actions/*.png
+
+ insinto /usr/share/virt-manager/pixmaps/hicolor/32x32/actions/
+ doins "${S}"/pixmaps/hicolor/32x32/actions/*.png
+}