Compare commits
No commits in common. "9ed3e18c880367d25531c20d78e4038ff0275937" and "7fe745d824d83e74e2deb52e59d9b6040bc50911" have entirely different histories.
9ed3e18c88
...
7fe745d824
74
0002-Xspice-Use-print-instead-of-print.patch
Normal file
74
0002-Xspice-Use-print-instead-of-print.patch
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Christophe Fergeau <cfergeau@redhat.com>
|
||||||
|
Date: Wed, 8 Feb 2017 15:23:56 +0100
|
||||||
|
Subject: [PATCH] Xspice: Use print("") instead of print ""
|
||||||
|
|
||||||
|
This allows Xspice to run when using python3 instead of python2
|
||||||
|
---
|
||||||
|
scripts/Xspice | 16 ++++++++--------
|
||||||
|
1 file changed, 8 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/scripts/Xspice b/scripts/Xspice
|
||||||
|
index ada99d1..30d10fa 100755
|
||||||
|
--- a/scripts/Xspice
|
||||||
|
+++ b/scripts/Xspice
|
||||||
|
@@ -34,7 +34,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 +128,10 @@ args, xorg_args = parser.parse_known_args(sys.argv[1:])
|
||||||
|
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 +169,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 +319,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 +343,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 +361,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")
|
||||||
@ -1,24 +0,0 @@
|
|||||||
From dbae35405af8e350641e524a1140c670e5799c15 Mon Sep 17 00:00:00 2001
|
|
||||||
From: mahailiang <mahailiang@uniontech.com>
|
|
||||||
Date: Mon, 25 Nov 2024 19:28:40 +0800
|
|
||||||
Subject: [PATCH] fix CARD
|
|
||||||
|
|
||||||
---
|
|
||||||
src/qxl.h | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/src/qxl.h b/src/qxl.h
|
|
||||||
index bfc3b0d..fc5d889 100644
|
|
||||||
--- a/src/qxl.h
|
|
||||||
+++ b/src/qxl.h
|
|
||||||
@@ -30,6 +30,7 @@
|
|
||||||
#include <spice.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#include "X11/Xproto.h"
|
|
||||||
#include "compiler.h"
|
|
||||||
#include "xf86.h"
|
|
||||||
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
|
|
||||||
--
|
|
||||||
2.20.1
|
|
||||||
|
|
||||||
26
0004-Xspice-Fix-Python3-str-vs-bytes-confusion.patch
Normal file
26
0004-Xspice-Fix-Python3-str-vs-bytes-confusion.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Christophe Fergeau <cfergeau@redhat.com>
|
||||||
|
Date: Wed, 8 Feb 2017 17:07:56 +0100
|
||||||
|
Subject: [PATCH] Xspice: Fix Python3 str() vs bytes() confusion
|
||||||
|
|
||||||
|
With python3, without universal_newlines=True, Popen().stdout.read()
|
||||||
|
will return a byte array, while find(str) expects to operate on a
|
||||||
|
string.
|
||||||
|
I've checked that this still works with python2 as well.
|
||||||
|
---
|
||||||
|
scripts/Xspice | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/scripts/Xspice b/scripts/Xspice
|
||||||
|
index 41fd80c..927dcb1 100755
|
||||||
|
--- a/scripts/Xspice
|
||||||
|
+++ b/scripts/Xspice
|
||||||
|
@@ -135,7 +135,7 @@ def agents_new_enough(args):
|
||||||
|
return False
|
||||||
|
|
||||||
|
for f in [args.vdagent_exec, args.vdagentd_exec]:
|
||||||
|
- if Popen(args=[f, '-h'], stdout=PIPE).stdout.read().find('-S') == -1:
|
||||||
|
+ if Popen(args=[f, '-h'], stdout=PIPE, universal_newlines=True).stdout.read().find('-S') == -1:
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
26
0006-qxl-call-provider-init.patch
Normal file
26
0006-qxl-call-provider-init.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dave Airlie <airlied@redhat.com>
|
||||||
|
Date: Wed, 8 Mar 2017 10:50:56 +1000
|
||||||
|
Subject: [PATCH] qxl: call provider init
|
||||||
|
|
||||||
|
This prevents crashes when multiple QXL devices are configured in a VM.
|
||||||
|
|
||||||
|
https://bugzilla.redhat.com/show_bug.cgi?id=1428340
|
||||||
|
---
|
||||||
|
src/qxl_drmmode.c | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/qxl_drmmode.c b/src/qxl_drmmode.c
|
||||||
|
index 3c288f9..41de92f 100644
|
||||||
|
--- a/src/qxl_drmmode.c
|
||||||
|
+++ b/src/qxl_drmmode.c
|
||||||
|
@@ -937,6 +937,9 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp)
|
||||||
|
for (i = 0; i < drmmode->mode_res->count_connectors; i++)
|
||||||
|
drmmode_output_init(pScrn, drmmode, i);
|
||||||
|
|
||||||
|
+#if XF86_CRTC_VERSION >= 5
|
||||||
|
+ xf86ProviderSetup(pScrn, NULL, "qxl");
|
||||||
|
+#endif
|
||||||
|
xf86InitialConfiguration(pScrn, TRUE);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
BIN
xf86-video-qxl-0.1.5.tar.bz2
Normal file
BIN
xf86-video-qxl-0.1.5.tar.bz2
Normal file
Binary file not shown.
Binary file not shown.
@ -1,19 +1,20 @@
|
|||||||
%undefine _hardened_build
|
%undefine _hardened_build
|
||||||
|
|
||||||
Name: xorg-x11-drv-qxl
|
Name: xorg-x11-drv-qxl
|
||||||
Version: 0.1.6
|
Version: 0.1.5
|
||||||
Release: 2
|
Release: 12
|
||||||
Summary: Qxl video driver for the X Window System
|
Summary: Qxl video driver for the X Window System
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.x.org
|
URL: http://www.x.org
|
||||||
Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-video-qxl-%{version}.tar.xz
|
Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-video-qxl-%{version}.tar.bz2
|
||||||
Patch0001: 0001-worst-hack-of-all-time-to-qxl-driver.patch
|
Patch0001: 0001-worst-hack-of-all-time-to-qxl-driver.patch
|
||||||
Patch0002: 0002-Xspice-Adjust-shebang-to-explicitly-mention-python3.patch
|
Patch0002: 0002-Xspice-Use-print-instead-of-print.patch
|
||||||
Patch0003: 0003-fix-CARD.patch
|
Patch0003: 0004-Xspice-Fix-Python3-str-vs-bytes-confusion.patch
|
||||||
|
Patch0004: 0005-Xspice-Adjust-shebang-to-explicitly-mention-python3.patch
|
||||||
|
Patch0005: 0006-qxl-call-provider-init.patch
|
||||||
BuildRequires: pkgconfig git-core xorg-x11-server-devel >= 1.1.0-1 spice-protocol >= 0.12.1
|
BuildRequires: pkgconfig git-core xorg-x11-server-devel >= 1.1.0-1 spice-protocol >= 0.12.1
|
||||||
BuildRequires: libdrm-devel >= 2.4.46-1 spice-server-devel >= 0.8.0 glib2-devel
|
BuildRequires: libdrm-devel >= 2.4.46-1 spice-server-devel >= 0.8.0 glib2-devel
|
||||||
BuildRequires: libtool libudev-devel libXfont2-devel libXext-devel
|
BuildRequires: libtool libudev-devel libXfont2-devel
|
||||||
Requires: Xorg %(xserver-sdk-abi-requires ansic) %(xserver-sdk-abi-requires videodrv)
|
Requires: Xorg %(xserver-sdk-abi-requires ansic) %(xserver-sdk-abi-requires videodrv)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -41,31 +42,16 @@ install -Dp -m644 examples/spiceqxl.xorg.conf.example $RPM_BUILD_ROOT%{_sysconfd
|
|||||||
%delete_la
|
%delete_la
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING README.md
|
%doc COPYING README
|
||||||
%(pkg-config xorg-server --variable=moduledir)/drivers/qxl_drv.so
|
%(pkg-config xorg-server --variable=moduledir)/drivers/qxl_drv.so
|
||||||
%exclude /usr/share/doc/xf86-video-qxl/spiceqxl.xorg.conf.example
|
%exclude /usr/share/doc/xf86-video-qxl/spiceqxl.xorg.conf.example
|
||||||
|
|
||||||
%files -n xorg-x11-server-Xspice
|
%files -n xorg-x11-server-Xspice
|
||||||
%doc COPYING README.xspice README.md examples/spiceqxl.xorg.conf.example
|
%doc COPYING README.xspice README examples/spiceqxl.xorg.conf.example
|
||||||
%config(noreplace) %{_sysconfdir}/X11/spiceqxl.xorg.conf
|
%config(noreplace) %{_sysconfdir}/X11/spiceqxl.xorg.conf
|
||||||
%{_bindir}/Xspice
|
%{_bindir}/Xspice
|
||||||
%(pkg-config xorg-server --variable=moduledir)/drivers/spiceqxl_drv.so
|
%(pkg-config xorg-server --variable=moduledir)/drivers/spiceqxl_drv.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Mar 07 2025 mahailiang <mahailiang@uniontech.com> - 0.1.6-2
|
|
||||||
- fix sw_64 build error
|
|
||||||
|
|
||||||
* Sat Jan 28 2023 Chenxi Mao <chenxi.mao@suse.com> - 0.1.6-1
|
|
||||||
- Upgrade to 0.1.6
|
|
||||||
|
|
||||||
* Tue Oct 25 2022 wangkerong <wangkerong@h-partners.com> - 0.1.5-15
|
|
||||||
- rebuild for next release
|
|
||||||
|
|
||||||
* Sat Jan 8 2022 yangcheng <yangcheng87@huawei.com> - 0.1.5-14
|
|
||||||
- fix build error with xserver
|
|
||||||
|
|
||||||
* Thu Aug 6 2020 xiaoweiwei <xiaoweiwei5@huawei.com> - 0.1.5-13
|
|
||||||
- Add compilation dependency to solve compilation failture
|
|
||||||
|
|
||||||
* Thu Nov 28 2019 shijian <shijian16@huawei.com> - 0.1.5-11
|
* Thu Nov 28 2019 shijian <shijian16@huawei.com> - 0.1.5-11
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user