diff options
| author | Andy Tai <atai@atai.org> | 2026-06-19 23:06:41 -0700 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-06-22 11:44:31 +0200 |
| commit | 4d498935b8b6483fc5211b60b050013ee7820944 (patch) | |
| tree | 85f93df8b87e77dd2c164686af840a3781168bc1 /gnu | |
| parent | f0f5fd22107cff68eee0eaddfd86c7dbf62a8eb2 (diff) | |
gnu: xpra: Update to 6.5.
* gnu/packages/xorg.scm: (xpra): Update to 6.5.
[source](origin): Update patch file names.
* gnu/packages/patches/xpra-6.4-systemd-run.patch: Delete
* gnu/packages/patches/xpra-6.5-systemd-run.patch: New file.
* gnu/local.mk: Unregister deleted files and register new file.
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 2 | ||||
| -rw-r--r-- | gnu/packages/patches/xpra-6.4-systemd-run.patch | 45 | ||||
| -rw-r--r-- | gnu/packages/patches/xpra-6.5-systemd-run.patch | 50 | ||||
| -rw-r--r-- | gnu/packages/xorg.scm | 6 |
4 files changed, 54 insertions, 49 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 0f920bdc495..fc69c79a842 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -2655,7 +2655,7 @@ dist_patch_DATA = \ | |||
| 2655 | %D%/packages/patches/xplanet-1.3.1-xpUtil-Add2017LeapSecond.cpp.patch \ | 2655 | %D%/packages/patches/xplanet-1.3.1-xpUtil-Add2017LeapSecond.cpp.patch \ |
| 2656 | %D%/packages/patches/xpra-5.0-install_libs.patch \ | 2656 | %D%/packages/patches/xpra-5.0-install_libs.patch \ |
| 2657 | %D%/packages/patches/xpra-5.0-systemd-run.patch \ | 2657 | %D%/packages/patches/xpra-5.0-systemd-run.patch \ |
| 2658 | %D%/packages/patches/xpra-6.4-systemd-run.patch \ | 2658 | %D%/packages/patches/xpra-6.5-systemd-run.patch \ |
| 2659 | %D%/packages/patches/xpra-6.4-install_libs.patch \ | 2659 | %D%/packages/patches/xpra-6.4-install_libs.patch \ |
| 2660 | %D%/packages/patches/xterm-370-explicit-xcursor.patch \ | 2660 | %D%/packages/patches/xterm-370-explicit-xcursor.patch \ |
| 2661 | %D%/packages/patches/xygrib-fix-finding-data.patch \ | 2661 | %D%/packages/patches/xygrib-fix-finding-data.patch \ |
diff --git a/gnu/packages/patches/xpra-6.4-systemd-run.patch b/gnu/packages/patches/xpra-6.4-systemd-run.patch deleted file mode 100644 index 8ca71e76651..00000000000 --- a/gnu/packages/patches/xpra-6.4-systemd-run.patch +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 1 | Distriction specific patch, not going upstream | ||
| 2 | |||
| 3 | Disable systemd-run if the command is not found. | ||
| 4 | |||
| 5 | diff --git a/xpra/scripts/main.py b/xpra/scripts/main.py | ||
| 6 | index 734e488eb9..36410d2d85 100755 | ||
| 7 | --- a/xpra/scripts/main.py | ||
| 8 | +++ b/xpra/scripts/main.py | ||
| 9 | @@ -437,20 +437,26 @@ def use_systemd_run(s) -> bool: | ||
| 10 | cmd = ["systemd-run", "--quiet"] | ||
| 11 | if getuid() != 0: | ||
| 12 | cmd += ["--user"] | ||
| 13 | - cmd += ["--scope", "--", "true"] | ||
| 14 | - proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) | ||
| 15 | try: | ||
| 16 | - proc.communicate(timeout=2) | ||
| 17 | - r = proc.returncode | ||
| 18 | - except TimeoutExpired: # pragma: no cover | ||
| 19 | - r = None | ||
| 20 | - if r is None: | ||
| 21 | - noerr(proc.terminate) | ||
| 22 | + cmd = ["systemd-run", "--quiet", "--user", "--scope", "--", "true"] | ||
| 23 | + proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) | ||
| 24 | try: | ||
| 25 | - proc.communicate(timeout=1) | ||
| 26 | + proc.communicate(timeout=2) | ||
| 27 | + r = proc.returncode | ||
| 28 | except TimeoutExpired: # pragma: no cover | ||
| 29 | r = None | ||
| 30 | - return r == 0 | ||
| 31 | + if r is None: | ||
| 32 | + try: | ||
| 33 | + proc.terminate() | ||
| 34 | + except Exception: | ||
| 35 | + pass | ||
| 36 | + try: | ||
| 37 | + proc.communicate(timeout=1) | ||
| 38 | + except TimeoutExpired: # pragma: no cover | ||
| 39 | + r = None | ||
| 40 | + return r==0 | ||
| 41 | + except FileNotFoundError: | ||
| 42 | + return False | ||
| 43 | |||
| 44 | |||
| 45 | def verify_gir() -> None: | ||
diff --git a/gnu/packages/patches/xpra-6.5-systemd-run.patch b/gnu/packages/patches/xpra-6.5-systemd-run.patch new file mode 100644 index 00000000000..05f209d6ebf --- /dev/null +++ b/gnu/packages/patches/xpra-6.5-systemd-run.patch | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | Distribution specific patch, not going upstream | ||
| 2 | |||
| 3 | Disable systemd-run if the command is not found. | ||
| 4 | |||
| 5 | diff --git a/xpra/scripts/main.py b/xpra/scripts/main.py | ||
| 6 | index f3aaf7547b..0218de8a98 100755 | ||
| 7 | --- a/xpra/scripts/main.py | ||
| 8 | +++ b/xpra/scripts/main.py | ||
| 9 | @@ -470,24 +470,24 @@ def use_systemd_run(s) -> bool: | ||
| 10 | if not is_systemd_pid1(): | ||
| 11 | return False # pragma: no cover | ||
| 12 | # test it: | ||
| 13 | - cmd = ["systemd-run", "--quiet"] | ||
| 14 | - if getuid() != 0: | ||
| 15 | - cmd += ["--user"] | ||
| 16 | - cmd += ["--scope", "--", "true"] | ||
| 17 | - proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) | ||
| 18 | try: | ||
| 19 | - proc.communicate(timeout=2) | ||
| 20 | - r = proc.returncode | ||
| 21 | - except TimeoutExpired: # pragma: no cover | ||
| 22 | - r = None | ||
| 23 | - if r is None: | ||
| 24 | - stop_proc(proc, "systemd-run") | ||
| 25 | - if proc.poll() is None: | ||
| 26 | - try: | ||
| 27 | - proc.communicate(timeout=1) | ||
| 28 | - except TimeoutExpired: # pragma: no cover | ||
| 29 | - r = None | ||
| 30 | - return r == 0 | ||
| 31 | + cmd = ["systemd-run", "--quiet", "--user", "--scope", "--", "true"] | ||
| 32 | + proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) | ||
| 33 | + try: | ||
| 34 | + proc.communicate(timeout=2) | ||
| 35 | + r = proc.returncode | ||
| 36 | + except TimeoutExpired: # pragma: no cover | ||
| 37 | + r = None | ||
| 38 | + if r is None: | ||
| 39 | + stop_proc(proc, "systemd-run") | ||
| 40 | + if proc.poll() is None: | ||
| 41 | + try: | ||
| 42 | + proc.communicate(timeout=1) | ||
| 43 | + except TimeoutExpired: # pragma: no cover | ||
| 44 | + r = None | ||
| 45 | + return r == 0 | ||
| 46 | + except FileNotFoundError: | ||
| 47 | + return False | ||
| 48 | |||
| 49 | |||
| 50 | def verify_gir() -> None: | ||
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index e17bc111ccd..c39be479f71 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm | |||
| @@ -6536,7 +6536,7 @@ basic eye-candy effects.") | |||
| 6536 | (define-public xpra | 6536 | (define-public xpra |
| 6537 | (package | 6537 | (package |
| 6538 | (name "xpra") | 6538 | (name "xpra") |
| 6539 | (version "6.4.4") | 6539 | (version "6.5") |
| 6540 | (source | 6540 | (source |
| 6541 | (origin | 6541 | (origin |
| 6542 | (method git-fetch) | 6542 | (method git-fetch) |
| @@ -6545,8 +6545,8 @@ basic eye-candy effects.") | |||
| 6545 | (commit (string-append "v" version)))) | 6545 | (commit (string-append "v" version)))) |
| 6546 | (file-name (git-file-name name version)) | 6546 | (file-name (git-file-name name version)) |
| 6547 | (sha256 | 6547 | (sha256 |
| 6548 | (base32 "0zbr3vghn4qhng1kgxyncc2bizc9cjbkhyf8gvn3i29g9g33lcnc")) | 6548 | (base32 "05nww5ay9hj6340p9smicmggwa2m9bmrinmnqxjaqr64xni1pisd")) |
| 6549 | (patches (search-patches "xpra-6.4-systemd-run.patch" | 6549 | (patches (search-patches "xpra-6.5-systemd-run.patch" |
| 6550 | "xpra-6.4-install_libs.patch")))) | 6550 | "xpra-6.4-install_libs.patch")))) |
| 6551 | (build-system pyproject-build-system) | 6551 | (build-system pyproject-build-system) |
| 6552 | (inputs | 6552 | (inputs |
