Skip to content

Commit

Permalink
xpra: 5.0.9 -> 6.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hxtmdev committed Aug 26, 2024
1 parent dc2c1f1 commit 2004f7c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 61 deletions.
11 changes: 4 additions & 7 deletions pkgs/tools/X11/xpra/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ lib
, fetchFromGitHub
, substituteAll
, pkg-config
, runCommand
, writeText
Expand Down Expand Up @@ -38,6 +37,7 @@
, xdg-utils
, xorg
, xorgserver
, xxHash
}:

let
Expand Down Expand Up @@ -70,20 +70,16 @@ let
'';
in buildPythonApplication rec {
pname = "xpra";
version = "5.0.9";
version = "6.1.2";

src = fetchFromGitHub {
owner = "Xpra-org";
repo = "xpra";
rev = "v${version}";
hash = "sha256-gwo5plCAryGC8/BKVEqyMkgB+3FM8HXG6sESomDOtNM=";
hash = "sha256-SmX0zwScyosiidBdW18vP3tV7BJfYfOmXwuRUbb+gX8=";
};

patches = [
(substituteAll { # correct hardcoded paths
src = ./fix-paths.patch;
inherit libfakeXinerama;
})
./fix-41106.patch # https://github.com/NixOS/nixpkgs/issues/41106
./fix-122159.patch # https://github.com/NixOS/nixpkgs/issues/122159
];
Expand Down Expand Up @@ -137,6 +133,7 @@ in buildPythonApplication rec {
pango
x264
x265
xxHash
] ++ lib.optional withNvenc nvencHeaders;

propagatedBuildInputs = with python3.pkgs; ([
Expand Down
22 changes: 12 additions & 10 deletions pkgs/tools/X11/xpra/fix-122159.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
diff --git a/xpra/scripts/main.py b/xpra/scripts/main.py
index 58c8bf6464..36f4b3cd3d 100755
index 7806612e05..4c7a0ec2dd 100755
--- a/xpra/scripts/main.py
+++ b/xpra/scripts/main.py
@@ -389,11 +389,7 @@ def run_mode(script_file:str, cmdline, error_cb, options, args, mode:str, defaul
"seamless", "desktop", "shadow", "shadow-screen", "expand",
"upgrade", "upgrade-seamless", "upgrade-desktop",
) and not display_is_remote and use_systemd_run(options.systemd_run):
- #make sure we run via the same interpreter,
- #inject it into the command line if we have to:
@@ -444,13 +444,7 @@ def run_mode(script_file: str, cmdline, error_cb, options, args, full_mode: str,
"seamless", "desktop", "shadow", "shadow-screen", "expand",
"upgrade", "upgrade-seamless", "upgrade-desktop",
) and not display_is_remote and options.daemon and use_systemd_run(options.systemd_run):
- # make sure we run via the same interpreter,
- # inject it into the command line if we have to:
argv = list(cmdline)
- if argv[0].find("python")<0:
- argv.insert(0, "python%i.%i" % (sys.version_info.major, sys.version_info.minor))
return systemd_run_wrap(mode, argv, options.systemd_run_args, user=getuid()!=0)
- if argv[0].find("python") < 0:
- major, minor = sys.version_info.major, sys.version_info.minor
- python = which("python%i.%i" % (major, minor)) or which("python%i" % major) or which("python") or "python"
- argv.insert(0, python)
return systemd_run_wrap(mode, argv, options.systemd_run_args, user=getuid() != 0)
configure_env(options.env)
configure_logging(options, mode)
14 changes: 7 additions & 7 deletions pkgs/tools/X11/xpra/fix-41106.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/xpra/server/server_util.py b/xpra/server/server_util.py
index 2e83712bb8..2dd0bf73d2 100644
--- a/xpra/server/server_util.py
+++ b/xpra/server/server_util.py
@@ -166,6 +166,10 @@ def xpra_env_shell_script(socket_dir, env : Dict[str,str]) -> str:
return "\n".join(script)
diff --git a/xpra/server/util.py b/xpra/server/util.py
index 401a9fb959..678e2ce745 100644
--- a/xpra/server/util.py
+++ b/xpra/server/util.py
@@ -175,6 +175,10 @@ def xpra_env_shell_script(socket_dir: str, env: dict[str, str]) -> str:

def xpra_runner_shell_script(xpra_file:str, starting_dir:str) -> str:

def xpra_runner_shell_script(xpra_file: str, starting_dir: str) -> str:
+ # Nixpkgs contortion:
+ # xpra_file points to a shell wrapper, not to the python script.
+ dirname, basename = os.path.split(xpra_file)
Expand Down
37 changes: 0 additions & 37 deletions pkgs/tools/X11/xpra/fix-paths.patch

This file was deleted.

0 comments on commit 2004f7c

Please sign in to comment.