Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xf86-video-qxl for openSUSE:Factory 
checked in at 2021-07-22 22:42:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xf86-video-qxl (Old)
 and      /work/SRC/openSUSE:Factory/.xf86-video-qxl.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xf86-video-qxl"

Thu Jul 22 22:42:27 2021 rev:22 rq:907166 version:0.1.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/xf86-video-qxl/xf86-video-qxl.changes    
2020-07-03 00:00:41.165737036 +0200
+++ /work/SRC/openSUSE:Factory/.xf86-video-qxl.new.1899/xf86-video-qxl.changes  
2021-07-22 22:42:34.823260808 +0200
@@ -1,0 +2,7 @@
+Fri Jul 16 04:56:35 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Remove unneeded Requires on python >= 2.6
+- Add Xspice-python3.patch:
+  * Add support for Python 3, and run it under Python 3. 
+
+-------------------------------------------------------------------

New:
----
  Xspice-python3.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xf86-video-qxl.spec ++++++
--- /var/tmp/diff_new_pack.omSF25/_old  2021-07-22 22:42:35.283260208 +0200
+++ /var/tmp/diff_new_pack.omSF25/_new  2021-07-22 22:42:35.283260208 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xf86-video-qxl
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -37,6 +37,7 @@
 Source0:        
http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2
 Patch0:         n_hardcode_libdrm_cflags.patch
 Patch1:         n_disable-surfaces-on-kms.patch
+Patch2:         Xspice-python3.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libtool
@@ -70,7 +71,6 @@
 Summary:        XSpice is an X server that can be accessed by a Spice client
 Group:          System/X11/Servers/XF86_4
 %x11_abi_videodrv_req
-Requires:       python >= 2.6
 BuildRequires:  pkgconfig(spice-server) >= 0.6.3
 
 %description -n xorg-x11-server-Xspice
@@ -81,6 +81,7 @@
 %setup -q
 %patch0 -p0
 %patch1 -p1
+%patch2 -p1
 
 %build
 autoreconf -fi

++++++ Xspice-python3.patch ++++++
Index: xf86-video-qxl-0.1.5/scripts/Xspice
===================================================================
--- xf86-video-qxl-0.1.5.orig/scripts/Xspice
+++ xf86-video-qxl-0.1.5/scripts/Xspice
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 """
 Xspice
@@ -16,6 +16,7 @@ used by spiceqxl_drv.so, and then spawn
 which can be overridden as well.
 """
 
+from __future__ import print_function
 import argparse
 import os
 import sys
@@ -34,7 +35,7 @@ def which(x):
         candidate = os.path.join(p, x)
         if os.path.exists(candidate):
             return candidate
-    print 'Warning: failed to find executable %s' % x
+    print('Warning: failed to find executable %s' % x)
     return None
 
 if 'XSPICE_ENABLE_GDB' in os.environ:
@@ -128,10 +129,10 @@ args, xorg_args = parser.parse_known_arg
 def agents_new_enough(args):
     for f in [args.vdagent_exec, args.vdagentd_exec]:
         if not f:
-            print 'please specify path to vdagent/vdagentd executables'
+            print('please specify path to vdagent/vdagentd executables')
             return False
         if not os.path.exists(f):
-            print 'error: file not found ', f
+            print('error: file not found ', f)
             return False
 
     for f in [args.vdagent_exec, args.vdagentd_exec]:
@@ -169,11 +170,11 @@ def tls_files(args):
 # and it isn't supplied spice will still abort, and Xorg with it.
 for key, filename in tls_files(args).items():
     if not os.path.exists(filename):
-        print "missing %s - %s does not exist" % (key, filename)
+        print("missing %s - %s does not exist" % (key, filename))
         sys.exit(1)
 
 def error(msg, exit_code=1):
-    print "Xspice: %s" % msg
+    print("Xspice: %s" % msg)
     sys.exit(exit_code)
 
 if not args.xorg:
@@ -319,7 +320,7 @@ for arg in xorg_args:
     if arg.startswith(":"):
         display = arg
 if not display:
-    print "Error: missing display on line (i.e. :3)"
+    print("Error: missing display on line (i.e. :3)")
     raise SystemExit
 os.environ ['DISPLAY'] = display
 
@@ -343,7 +344,7 @@ time.sleep(2)
 
 retpid,rc = os.waitpid(xorg.pid, os.WNOHANG)
 if retpid != 0:
-    print "Error: X server is not running"
+    print("Error: X server is not running")
 else:
     if args.vdagent_enabled and args.vdagent_launch:
         # XXX use systemd --user for this?
@@ -361,4 +362,4 @@ else:
         xorg.wait()
     except KeyboardInterrupt:
         # Catch Ctrl-C as that is the common way of ending this script
-        print "Keyboard Interrupt"
+        print("Keyboard Interrupt")

Reply via email to