virt-manager/virtman-dont-specify-vte-version.patch
Charles Arnold 806560bdca - bsc#1191356 - virt-manager should not depend on gtk4
Modified files:
    virt-manager.spec
    virtman-dont-specify-gtksource-version.patch
    virtman-dont-specify-vte-version.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=548
2021-10-07 20:57:07 +00:00

23 lines
846 B
Diff

Creates a problem for gobject-introspection identifying what
version of vte is really allowed. Vte 2.91 is installed on the
host but the RPM is built requiring 2.90.
Index: virt-manager-3.2.0/virtManager/details/serialcon.py
===================================================================
--- virt-manager-3.2.0.orig/virtManager/details/serialcon.py
+++ virt-manager-3.2.0/virtManager/details/serialcon.py
@@ -12,12 +12,7 @@ from gi.repository import Gtk
from virtinst import log
# We can use either 2.91 or 2.90. This is just to silence runtime warnings
-try:
- gi.require_version("Vte", "2.91")
- log.debug("Using VTE API 2.91")
-except ValueError: # pragma: no cover
- gi.require_version("Vte", "2.90")
- log.debug("Using VTE API 2.90")
+gi.require_version("Vte", "2.91")
from gi.repository import Vte
import libvirt