diff options
| author | Andy Tai <atai@atai.org> | 2026-01-17 01:00:40 -0800 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:30:51 +0100 |
| commit | f00df02125ded8b40dedba8f7f95deb33c8ebe3d (patch) | |
| tree | e6b3e49d76d32d12959ffcf45cead9da7dba2051 | |
| parent | 8384dc2e6ee81ea840182c80a7c362a6be8c5988 (diff) | |
gnu: xpra: Update to 6.4.1.
* gnu/packages/xorg.scm (xpra): Update to 6.4.1.
[source](origin): Update patch file names.
[arguments]<#:phases>{fix-paths}: Adapt substitution.
* gnu/packages/patches/xpra-6.0-systemd-run.patch: Delete.
* gnu/packages/patches/xpra-6.4-systemd-run.patch: New file.
* gnu/packages/patches/xpra-6.1-install_libs.patch: Delete.
* gnu/packages/patches/xpra-6.4-install_libs.patch: New file.
* gnu/local.mk: Unregister deleted files and register new files.
Change-Id: Ib026b49114f5afca39ee8ec1a8a209cd6c11c7d6
Signed-off-by: Andreas Enge <andreas@enge.fr>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
| -rw-r--r-- | gnu/local.mk | 4 | ||||
| -rw-r--r-- | gnu/packages/patches/xpra-6.4-install_libs.patch (renamed from gnu/packages/patches/xpra-6.1-install_libs.patch) | 26 | ||||
| -rw-r--r-- | gnu/packages/patches/xpra-6.4-systemd-run.patch (renamed from gnu/packages/patches/xpra-6.0-systemd-run.patch) | 11 | ||||
| -rw-r--r-- | gnu/packages/xorg.scm | 10 |
4 files changed, 25 insertions, 26 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 1676508e029..da92f92d939 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -2534,8 +2534,8 @@ dist_patch_DATA = \ | |||
| 2534 | %D%/packages/patches/xplanet-1.3.1-xpUtil-Add2017LeapSecond.cpp.patch \ | 2534 | %D%/packages/patches/xplanet-1.3.1-xpUtil-Add2017LeapSecond.cpp.patch \ |
| 2535 | %D%/packages/patches/xpra-5.0-install_libs.patch \ | 2535 | %D%/packages/patches/xpra-5.0-install_libs.patch \ |
| 2536 | %D%/packages/patches/xpra-5.0-systemd-run.patch \ | 2536 | %D%/packages/patches/xpra-5.0-systemd-run.patch \ |
| 2537 | %D%/packages/patches/xpra-6.0-systemd-run.patch \ | 2537 | %D%/packages/patches/xpra-6.4-systemd-run.patch \ |
| 2538 | %D%/packages/patches/xpra-6.1-install_libs.patch \ | 2538 | %D%/packages/patches/xpra-6.4-install_libs.patch \ |
| 2539 | %D%/packages/patches/xterm-370-explicit-xcursor.patch \ | 2539 | %D%/packages/patches/xterm-370-explicit-xcursor.patch \ |
| 2540 | %D%/packages/patches/xygrib-fix-finding-data.patch \ | 2540 | %D%/packages/patches/xygrib-fix-finding-data.patch \ |
| 2541 | %D%/packages/patches/xygrib-newer-proj.patch \ | 2541 | %D%/packages/patches/xygrib-newer-proj.patch \ |
diff --git a/gnu/packages/patches/xpra-6.1-install_libs.patch b/gnu/packages/patches/xpra-6.4-install_libs.patch index 0ec2aee288b..c755c34b85e 100644 --- a/gnu/packages/patches/xpra-6.1-install_libs.patch +++ b/gnu/packages/patches/xpra-6.4-install_libs.patch | |||
| @@ -4,11 +4,11 @@ This workaround for Gentoo interferes with our use of --no-compile during | |||
| 4 | the 'install stage. | 4 | the 'install stage. |
| 5 | 5 | ||
| 6 | diff --git a/setup.py b/setup.py | 6 | diff --git a/setup.py b/setup.py |
| 7 | index be7a3758e8..28dc1be191 100755 | 7 | index bd65109379..a97a310ea3 100755 |
| 8 | --- a/setup.py | 8 | --- a/setup.py |
| 9 | +++ b/setup.py | 9 | +++ b/setup.py |
| 10 | @@ -953,8 +953,6 @@ if modules_ENABLED: | 10 | @@ -1081,8 +1081,6 @@ if verbose_ENABLED and not os.environ.get("DISTUTILS_DEBUG"): |
| 11 | # Utility methods for building with Cython | 11 | |
| 12 | 12 | ||
| 13 | def do_add_cython_ext(*args, **kwargs) -> None: | 13 | def do_add_cython_ext(*args, **kwargs) -> None: |
| 14 | - if "--no-compile" in sys.argv and not ("build" in sys.argv and "install" in sys.argv): | 14 | - if "--no-compile" in sys.argv and not ("build" in sys.argv and "install" in sys.argv): |
| @@ -16,17 +16,19 @@ index be7a3758e8..28dc1be191 100755 | |||
| 16 | if not cython_ENABLED: | 16 | if not cython_ENABLED: |
| 17 | raise ValueError(f"cannot build {args}: cython compilation is disabled") | 17 | raise ValueError(f"cannot build {args}: cython compilation is disabled") |
| 18 | if cython_tracing_ENABLED: | 18 | if cython_tracing_ENABLED: |
| 19 | @@ -2175,9 +2173,6 @@ else: | 19 | @@ -2301,11 +2299,6 @@ else: |
| 20 | if root_prefix.endswith("/usr"): | 20 | |
| 21 | # ie: "/" or "/usr/src/rpmbuild/BUILDROOT/xpra-0.18.0-0.20160513r12573.fc23.x86_64/" | 21 | def _get_root_prefix(self) -> str: |
| 22 | root_prefix = root_prefix[:-4] | 22 | root_prefix = "" |
| 23 | - for x in sys.argv: | 23 | - for x in sys.argv: |
| 24 | - if x.startswith("--root="): | 24 | - if x.startswith("--root="): |
| 25 | - root_prefix = x[len("--root="):] | 25 | - return x[len("--root="):] |
| 26 | print(f" root_prefix={root_prefix!r}") | 26 | - if x.startswith("--prefix="): |
| 27 | build_xpra_conf(root_prefix) | 27 | - root_prefix = x[len("--prefix="):] |
| 28 | 28 | if not root_prefix: | |
| 29 | @@ -2320,13 +2315,6 @@ else: | 29 | install_dir = self._get_install_dir() |
| 30 | root_prefix = install_dir.rstrip("/") | ||
| 31 | @@ -2466,13 +2459,6 @@ else: | ||
| 30 | if uinput_ENABLED: | 32 | if uinput_ENABLED: |
| 31 | add_data_files("lib/udev/rules.d/", ["fs/lib/udev/rules.d/71-xpra-virtual-pointer.rules"]) | 33 | add_data_files("lib/udev/rules.d/", ["fs/lib/udev/rules.d/71-xpra-virtual-pointer.rules"]) |
| 32 | 34 | ||
diff --git a/gnu/packages/patches/xpra-6.0-systemd-run.patch b/gnu/packages/patches/xpra-6.4-systemd-run.patch index 2d60c294236..8ca71e76651 100644 --- a/gnu/packages/patches/xpra-6.0-systemd-run.patch +++ b/gnu/packages/patches/xpra-6.4-systemd-run.patch | |||
| @@ -3,10 +3,10 @@ Distriction specific patch, not going upstream | |||
| 3 | Disable systemd-run if the command is not found. | 3 | Disable systemd-run if the command is not found. |
| 4 | 4 | ||
| 5 | diff --git a/xpra/scripts/main.py b/xpra/scripts/main.py | 5 | diff --git a/xpra/scripts/main.py b/xpra/scripts/main.py |
| 6 | index 1c5e8ddaad..084aabe792 100755 | 6 | index 734e488eb9..36410d2d85 100755 |
| 7 | --- a/xpra/scripts/main.py | 7 | --- a/xpra/scripts/main.py |
| 8 | +++ b/xpra/scripts/main.py | 8 | +++ b/xpra/scripts/main.py |
| 9 | @@ -396,23 +396,26 @@ def use_systemd_run(s) -> bool: | 9 | @@ -437,20 +437,26 @@ def use_systemd_run(s) -> bool: |
| 10 | cmd = ["systemd-run", "--quiet"] | 10 | cmd = ["systemd-run", "--quiet"] |
| 11 | if getuid() != 0: | 11 | if getuid() != 0: |
| 12 | cmd += ["--user"] | 12 | cmd += ["--user"] |
| @@ -18,10 +18,7 @@ index 1c5e8ddaad..084aabe792 100755 | |||
| 18 | - except TimeoutExpired: # pragma: no cover | 18 | - except TimeoutExpired: # pragma: no cover |
| 19 | - r = None | 19 | - r = None |
| 20 | - if r is None: | 20 | - if r is None: |
| 21 | - try: | 21 | - noerr(proc.terminate) |
| 22 | - proc.terminate() | ||
| 23 | - except Exception: | ||
| 24 | - pass | ||
| 25 | + cmd = ["systemd-run", "--quiet", "--user", "--scope", "--", "true"] | 22 | + cmd = ["systemd-run", "--quiet", "--user", "--scope", "--", "true"] |
| 26 | + proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) | 23 | + proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) |
| 27 | try: | 24 | try: |
| @@ -45,4 +42,4 @@ index 1c5e8ddaad..084aabe792 100755 | |||
| 45 | + return False | 42 | + return False |
| 46 | 43 | ||
| 47 | 44 | ||
| 48 | def verify_gir(): | 45 | def verify_gir() -> None: |
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index 6c476f72869..0cfa552b277 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm | |||
| @@ -6520,7 +6520,7 @@ basic eye-candy effects.") | |||
| 6520 | (define-public xpra | 6520 | (define-public xpra |
| 6521 | (package | 6521 | (package |
| 6522 | (name "xpra") | 6522 | (name "xpra") |
| 6523 | (version "6.3.6") | 6523 | (version "6.4.1") |
| 6524 | (source | 6524 | (source |
| 6525 | (origin | 6525 | (origin |
| 6526 | (method git-fetch) | 6526 | (method git-fetch) |
| @@ -6529,9 +6529,9 @@ basic eye-candy effects.") | |||
| 6529 | (commit (string-append "v" version)))) | 6529 | (commit (string-append "v" version)))) |
| 6530 | (file-name (git-file-name name version)) | 6530 | (file-name (git-file-name name version)) |
| 6531 | (sha256 | 6531 | (sha256 |
| 6532 | (base32 "0lrhj1xipgx839bvjwp2mbxf72c1c5g3y66vcaqs0zzk50zvyxwi")) | 6532 | (base32 "0y6b70g16bh1pbjzmwsrrdjgnm0vgw8ff934n1y69vfb93sdfbc0")) |
| 6533 | (patches (search-patches "xpra-6.0-systemd-run.patch" | 6533 | (patches (search-patches "xpra-6.4-systemd-run.patch" |
| 6534 | "xpra-6.1-install_libs.patch")))) | 6534 | "xpra-6.4-install_libs.patch")))) |
| 6535 | (build-system pyproject-build-system) | 6535 | (build-system pyproject-build-system) |
| 6536 | (inputs | 6536 | (inputs |
| 6537 | (list bash-minimal ; for wrap-program | 6537 | (list bash-minimal ; for wrap-program |
| @@ -6617,7 +6617,7 @@ basic eye-candy effects.") | |||
| 6617 | "EndSection\n\n")) | 6617 | "EndSection\n\n")) |
| 6618 | (substitute* '("xpra/scripts/config.py" | 6618 | (substitute* '("xpra/scripts/config.py" |
| 6619 | "fs/etc/xpra/conf.d/60_server.conf.in" | 6619 | "fs/etc/xpra/conf.d/60_server.conf.in" |
| 6620 | "tests/unittests/unit/server/mixins/notification_test.py") | 6620 | "tests/unittests/unit/server/subsystem/notification_test.py") |
| 6621 | ;; The trailing -- is intentional, so we only replace it inside | 6621 | ;; The trailing -- is intentional, so we only replace it inside |
| 6622 | ;; a command line. | 6622 | ;; a command line. |
| 6623 | (("dbus-launch --") | 6623 | (("dbus-launch --") |
