xpra: 3.0.9 -> 4.0.2

This commit is contained in:
Michael Lingelbach 2020-05-16 21:19:00 +02:00 committed by Jon
parent 482a82b062
commit e5b7f1325c
3 changed files with 22 additions and 23 deletions

View File

@ -30,11 +30,11 @@ let
in buildPythonApplication rec { in buildPythonApplication rec {
pname = "xpra"; pname = "xpra";
version = "3.0.9"; version = "4.0.2";
src = fetchurl { src = fetchurl {
url = "https://xpra.org/src/${pname}-${version}.tar.xz"; url = "https://xpra.org/src/${pname}-${version}.tar.xz";
sha256 = "04qskz1x1pvbdfirpxk58d3dfnf1n6dc69q2rdkak0avzl1nlzi7"; sha256 = "1cs39jzi59hkl421xmhi549ndmdfzkg0ap45f4nlsn9zr9zwmp3x";
}; };
patches = [ patches = [
@ -85,7 +85,6 @@ in buildPythonApplication rec {
"--with-Xdummy" "--with-Xdummy"
"--without-strict" "--without-strict"
"--with-gtk3" "--with-gtk3"
"--without-gtk2"
# Override these, setup.py checks for headers in /usr/* paths # Override these, setup.py checks for headers in /usr/* paths
"--with-pam" "--with-pam"
"--with-vsock" "--with-vsock"

View File

@ -1,15 +1,15 @@
diff --git a/xpra/server/server_util.py b/xpra/server/server_util.py diff --git a/xpra/server/server_util.py b/xpra/server/server_util.py
index 2ff2c0c..513201a 100644 index dd7c7c1..066b9ff 100644
--- a/xpra/server/server_util.py --- a/xpra/server/server_util.py
+++ b/xpra/server/server_util.py +++ b/xpra/server/server_util.py
@@ -17,6 +17,10 @@ if PYTHON3: @@ -37,6 +37,10 @@ def sh_quotemeta(s):
return b"'" + s.replace(b"'", b"'\\''") + b"'" return b"'" + s.replace(b"'", b"'\\''") + b"'"
def xpra_runner_shell_script(xpra_file, starting_dir, socket_dir): def xpra_runner_shell_script(xpra_file, starting_dir, socket_dir):
+ # Nixpkgs contortion: + # Nixpkgs contortion:
+ # xpra_file points to a shell wrapper, not to the python script. + # xpra_file points to a shell wrapper, not to the python script.
+ dirname, basename = os.path.split(xpra_file) + dirname, basename = os.path.split(xpra_file)
+ xpra_file = os.path.join(dirname, "."+basename+"-wrapped") + xpra_file = os.path.join(dirname, "."+basename+"-wrapped")
script = [] script = []
script.append(b"#!/bin/sh\n") script.append(b"#!/bin/sh\n")
for var, value in os.environb.items(): for var, value in os.environb.items():

View File

@ -1,13 +1,13 @@
gdiff --git a/setup.py b/setup.py diff --git a/setup.py b/setup.py
index 8d3df15..6156206 100755 index f962330..b02b6dd 100755
--- a/setup.py --- a/setup.py
+++ b/setup.py +++ b/setup.py
-2322,11 +2322,7 @@ if v4l2_ENABLED: @@ -2224,11 +2224,7 @@ if v4l2_ENABLED:
videodev2_h = "/usr/include/linux/videodev2.h" videodev2_h = "/usr/include/linux/videodev2.h"
constants_pxi = "xpra/codecs/v4l2/constants.pxi" constants_pxi = "xpra/codecs/v4l2/constants.pxi"
if not os.path.exists(videodev2_h) or should_rebuild(videodev2_h, constants_pxi): if not os.path.exists(videodev2_h) or should_rebuild(videodev2_h, constants_pxi):
- ENABLE_DEVICE_CAPS = 0 - ENABLE_DEVICE_CAPS = 0
- if os.path.exists(videodev2_h): - if os.path.exists(videodev2_h):
- with open(videodev2_h) as f: - with open(videodev2_h) as f:
- hdata = f.read() - hdata = f.read()
- ENABLE_DEVICE_CAPS = int(hdata.find("device_caps")>=0) - ENABLE_DEVICE_CAPS = int(hdata.find("device_caps")>=0)