xpra: 2.5.3 -> 3.0.5

Closes #78707.
This commit is contained in:
Markus S. Wamser 2020-01-28 23:18:19 +01:00
parent 40e30f9652
commit 55d3b6b1b1
2 changed files with 15 additions and 13 deletions

View File

@ -14,11 +14,11 @@ let
xf86videodummy = callPackage ./xf86videodummy { }; xf86videodummy = callPackage ./xf86videodummy { };
in buildPythonApplication rec { in buildPythonApplication rec {
pname = "xpra"; pname = "xpra";
version = "2.5.3"; version = "3.0.5";
src = fetchurl { src = fetchurl {
url = "https://xpra.org/src/${pname}-${version}.tar.xz"; url = "https://xpra.org/src/${pname}-${version}.tar.xz";
sha256 = "1ys35lj28903alccks9p055psy1fsk1nxi8ncchvw8bfxkkkvbys"; sha256 = "1zy4q8sq0j00ybxw3v8ylaj2aj10x2gb0a05aqbcnrwp3hf983vz";
}; };
patches = [ patches = [

View File

@ -2,18 +2,20 @@ gdiff --git a/setup.py b/setup.py
index 8d3df15..6156206 100755 index 8d3df15..6156206 100755
--- a/setup.py --- a/setup.py
+++ b/setup.py +++ b/setup.py
@@ -2359,10 +2359,7 @@ if v4l2_ENABLED: -2322,11 +2322,7 @@ if v4l2_ENABLED:
v4l2_pkgconfig = pkgconfig() videodev2_h = "/usr/include/linux/videodev2.h"
#fuly warning: cython makes this difficult, constants_pxi = "xpra/codecs/v4l2/constants.pxi"
#we have to figure out if "device_caps" exists in the headers: if not os.path.exists(videodev2_h) or should_rebuild(videodev2_h, constants_pxi):
- ENABLE_DEVICE_CAPS = False - ENABLE_DEVICE_CAPS = 0
- if os.path.exists("/usr/include/linux/videodev2.h"): - if os.path.exists(videodev2_h):
- hdata = open("/usr/include/linux/videodev2.h").read() - with open(videodev2_h) as f:
- ENABLE_DEVICE_CAPS = hdata.find("device_caps")>=0 - hdata = f.read()
+ ENABLE_DEVICE_CAPS = True - ENABLE_DEVICE_CAPS = int(hdata.find("device_caps")>=0)
kwargs = {"ENABLE_DEVICE_CAPS" : ENABLE_DEVICE_CAPS} + ENABLE_DEVICE_CAPS = 1
make_constants("xpra", "codecs", "v4l2", "constants", **kwargs) with open(constants_pxi, "wb") as f:
f.write(b"DEF ENABLE_DEVICE_CAPS=%i" % ENABLE_DEVICE_CAPS)
cython_add(Extension("xpra.codecs.v4l2.pusher", cython_add(Extension("xpra.codecs.v4l2.pusher",
diff --git a/xpra/x11/bindings/keyboard_bindings.pyx b/xpra/x11/bindings/keyboard_bindings.pyx diff --git a/xpra/x11/bindings/keyboard_bindings.pyx b/xpra/x11/bindings/keyboard_bindings.pyx
index bd7023d..064c6b5 100644 index bd7023d..064c6b5 100644
--- a/xpra/x11/bindings/keyboard_bindings.pyx --- a/xpra/x11/bindings/keyboard_bindings.pyx