- bsc#Bug 952241 - virt-manager: LibvirtGLib was imported without

specifying a version first.
  cde2f0ef-Suppress-gi-warnings-about-lack-of-require_version.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=278
This commit is contained in:
Charles Arnold 2015-10-27 19:48:08 +00:00 committed by Git OBS Bridge
parent 6a92bbd581
commit 10d2977e4e
5 changed files with 46 additions and 5 deletions

View File

@ -0,0 +1,31 @@
Subject: Suppress gi warnings about lack of require_version
From: Cole Robinson crobinso@redhat.com Thu Sep 3 17:31:43 2015 -0400
Date: Thu Sep 3 17:31:43 2015 -0400:
Git: cde2f0ef676583d2bedf75b3717cdf97a74ba837
diff --git a/virt-manager b/virt-manager
index 2f501e4..0a9d4b4 100755
--- a/virt-manager
+++ b/virt-manager
@@ -28,6 +28,7 @@ import traceback
import gi
from gi.repository import GObject
+gi.require_version('LibvirtGLib', '1.0')
from gi.repository import LibvirtGLib
from virtinst import util as util
diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index b70d387..085b27a 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -23,6 +23,8 @@ import datetime
import logging
import re
+import gi
+gi.require_version('Libosinfo', '1.0')
from gi.repository import Libosinfo as libosinfo

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 27 13:45:04 MDT 2015 - carnold@suse.com
- bsc#Bug 952241 - virt-manager: LibvirtGLib was imported without
specifying a version first.
cde2f0ef-Suppress-gi-warnings-about-lack-of-require_version.patch
-------------------------------------------------------------------
Thu Oct 8 11:47:56 MDT 2015 - carnold@suse.com

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define with_guestfs 0
%define askpass_package "openssh-askpass"
%define qemu_user "qemu"
@ -51,6 +52,7 @@ Patch12: 360fe110-add-s390x-arch-support.patch
Patch13: 590f5a52-urlfetcher-Clear-cached-ftp-connection-on-cleanupLoc.patch
Patch14: 601a82cb-fix-console_type-if-xen.patch
Patch15: f30975c3-drop-cow-support.patch
Patch16: cde2f0ef-Suppress-gi-warnings-about-lack-of-require_version.patch
# SUSE Only
Patch70: virtman-desktop.patch
Patch71: virtman-kvm.patch
@ -187,6 +189,7 @@ machine).
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
# SUSE Only
%patch70 -p1
%patch71 -p1

View File

@ -9,7 +9,7 @@ Index: virt-manager-1.2.1/virtinst/util.py
===================================================================
--- virt-manager-1.2.1.orig/virtinst/util.py
+++ virt-manager-1.2.1/virtinst/util.py
@@ -558,3 +558,22 @@ def getInstallRepos(enabled_sources_only
@@ -559,3 +559,22 @@ def getInstallRepos(enabled_sources_only
zypper_output.insert(0, dom0_inst_source)
return (index_dom0, zypper_output)

View File

@ -1,10 +1,10 @@
References: bnc#907958
Sanity check for those who forget '-X' on ssh and try to start virt-manager
Index: virt-manager-1.1.0/virt-manager
Index: virt-manager-1.2.1/virt-manager
===================================================================
--- virt-manager-1.1.0.orig/virt-manager
+++ virt-manager-1.1.0/virt-manager
@@ -181,8 +181,11 @@ def main():
--- virt-manager-1.2.1.orig/virt-manager
+++ virt-manager-1.2.1/virt-manager
@@ -182,8 +182,11 @@ def main():
from gi.repository import Gtk
leftovers = sys.argv[1:]