From patchwork Mon Sep 11 03:50:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 53713 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2E42E27BBE9; Mon, 11 Sep 2023 04:51:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4C07C27BBE2 for ; Mon, 11 Sep 2023 04:51:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfXwz-0001dr-2G; Sun, 10 Sep 2023 23:51:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfXww-0001dR-Rn for guix-patches@gnu.org; Sun, 10 Sep 2023 23:50:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfXww-0007rr-Jp for guix-patches@gnu.org; Sun, 10 Sep 2023 23:50:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfXx0-0004fd-9l for guix-patches@gnu.org; Sun, 10 Sep 2023 23:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65849] [PATCH v2] gnu: xpra: Update to 5.0.1 References: In-Reply-To: Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 11 Sep 2023 03:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65849 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65849@debbugs.gnu.org Cc: Andy Tai Received: via spool by 65849-submit@debbugs.gnu.org id=B65849.169440423917922 (code B ref 65849); Mon, 11 Sep 2023 03:51:02 +0000 Received: (at 65849) by debbugs.gnu.org; 11 Sep 2023 03:50:39 +0000 Received: from localhost ([127.0.0.1]:51722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfXwb-0004ey-1w for submit@debbugs.gnu.org; Sun, 10 Sep 2023 23:50:39 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:49177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfXwV-0004eg-Fj for 65849@debbugs.gnu.org; Sun, 10 Sep 2023 23:50:35 -0400 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-26b44247123so3185642a91.2 for <65849@debbugs.gnu.org>; Sun, 10 Sep 2023 20:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694404221; x=1695009021; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=qcQqpu63dH0S741IJEj9d2VZJufFyAm4DsVshOau92w=; b=qBoR3Pd/hit1QCHPNVyjfR3j5LcGMHeZjH92lW/ukyM6Yf++7ZS4khMI2irstXNJI3 mfsVKDiJFK5tjdmVhFUEMVQ+3jQGg94mmgTEa3FKG2GYdJhu2pq4bDnL9jHCtYpnTnH1 yt6/rl4wTeUEeG3GinsznkQC2h17pSVC8JSSPIJV+0k8yGo5eaC7DS4gE6HbqNYgNW9x nXh76DpHXsaeVaKA78BuwasVKwjFobFvbbWqRBMLVmyQ8gdHCZwUZRKt4p3aypIS3QRL /4BDkXHgJEspJ70rC/Hz5JFvicEAjtDK/9aWUHTr6eAVBbgieNUbTaeDJ8VJZVzcTlGT Ealg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694404221; x=1695009021; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qcQqpu63dH0S741IJEj9d2VZJufFyAm4DsVshOau92w=; b=T+DUOKzUScRW0fz4di4GU2CH8BmF5lbL5wxicK12Ttx4YTXpfF8I6/bfNGMDiyJrpL hVfdJQvMDAUzsJmKTfpQeFQkwIrcIoBt+4mILSNt02Mux6mANe1YDRp/00ZhWeXMsr2r Yd0qXgRpcqIjOl4qUCge4i9slpeYLSAALc6E84TLmgDqWVa0lbNzp40Kj24LR3sr/yvN SGTTnBBD7lhoOxdwV34yFebylMr/gioOJeIvsqriS6I8qqN33jYB8R2DbNmVTGKa6sG/ WgO0PdOfdl3AFXS9aTDuRqwpyJZTBEoJhFLkQOmpPfaehjvHQx/nwdMijFSjiSqbINAT 3hCg== X-Gm-Message-State: AOJu0YzgeMzuzq9EAU1moFeFvmL0vIMOJ2v+aR+M2cGUusdGbbgujWEg 2JYRtLovgTgZ/cWSs/EDC7BHWb3mJgG2mw== X-Google-Smtp-Source: AGHT+IGwY7l2/gPdWWxQKxNpWVK3oXHa88bpH15CmSm9tlaD0dpir3f+1J5wr8pGxFogt/AgIewlAQ== X-Received: by 2002:a17:90a:868a:b0:260:d40f:6ade with SMTP id p10-20020a17090a868a00b00260d40f6ademr7751862pjn.15.1694404221370; Sun, 10 Sep 2023 20:50:21 -0700 (PDT) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id z10-20020a17090a8b8a00b002676e961261sm9482076pjn.1.2023.09.10.20.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Sep 2023 20:50:20 -0700 (PDT) From: Andy Tai Date: Sun, 10 Sep 2023 20:50:17 -0700 Message-ID: <3311247b0b9368e217e37b7810e0a86f5f32c78c.1694404192.git.atai@atai.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 9d1118eab79d4fe7fa20490209780dbd88c9fbb0 Mon Sep 17 00:00:00 2001 Message-Id: <9d1118eab79d4fe7fa20490209780dbd88c9fbb0.1694305735.git.ltai@roku.com> From: Andy Tai Date: Sat, 9 Sep 2023 17:26:39 -0700 Subject: [PATCH] gnu: xpra: Update to 5.0.1 To: guix-patches@gnu.org * gnu/packages/xorg.scm (xpra): Update to 5.0.1. [inputs]: Add cups. * gnu/packages/patches/xpra-5.0-install_libs.patch: New file. * gnu/packages/patches/xpra-5.0-systemd-run.patch: New file. * gnu/packages/patches/xpra-4.2-install_libs.patch: Removed. * gnu/packages/patches/xpra-4.2-systemd-run.patch: Removed. --- ...libs.patch => xpra-5.0-install_libs.patch} | 32 ++++++++++++------- ...d-run.patch => xpra-5.0-systemd-run.patch} | 31 +++++++++--------- gnu/packages/xorg.scm | 14 ++++---- 3 files changed, 43 insertions(+), 34 deletions(-) rename gnu/packages/patches/{xpra-4.2-install_libs.patch => xpra-5.0-install_libs.patch} (52%) rename gnu/packages/patches/{xpra-4.2-systemd-run.patch => xpra-5.0-systemd-run.patch} (66%) base-commit: 2eb6df537c36da8bf8e81ff698421f6fb1bfd1ab diff --git a/gnu/packages/patches/xpra-4.2-install_libs.patch b/gnu/packages/patches/xpra-5.0-install_libs.patch similarity index 52% rename from gnu/packages/patches/xpra-4.2-install_libs.patch rename to gnu/packages/patches/xpra-5.0-install_libs.patch index 65d489a3b8..fd5394d931 100644 --- a/gnu/packages/patches/xpra-4.2-install_libs.patch +++ b/gnu/packages/patches/xpra-5.0-install_libs.patch @@ -1,18 +1,27 @@ -This workaround for Gentoo interferes with our use of --no-compile during -the 'install stage. - ---- a/setup.py 2022-01-04 10:10:05.039825000 +0100 -+++ b/setup.py 2022-01-06 15:10:31.952656039 +0100 -@@ -589,8 +589,6 @@ - }) +diff --git a/setup.py b/setup.py +index e254bf99c..90db55c3f 100755 +--- a/setup.py ++++ b/setup.py +@@ -663,8 +663,6 @@ if modules_ENABLED: + # Utility methods for building with Cython def add_cython_ext(*args, **kwargs): - if "--no-compile" in sys.argv and not ("build" in sys.argv and "install" in sys.argv): - return - assert cython_ENABLED, "cython compilation is disabled" + if not cython_ENABLED: + raise ValueError(f"cannot build {args}: cython compilation is disabled") if cython_tracing_ENABLED: - kwargs["define_macros"] = [ -@@ -1703,14 +1701,6 @@ +@@ -1809,9 +1807,6 @@ else: + if root_prefix.endswith("/usr"): + #ie: "/" or "/usr/src/rpmbuild/BUILDROOT/xpra-0.18.0-0.20160513r12573.fc23.x86_64/" + root_prefix = root_prefix[:-4] +- for x in sys.argv: +- if x.startswith("--root="): +- root_prefix = x[len("--root="):] + print(f"install_data_override.run() root_prefix={root_prefix}") + build_xpra_conf(root_prefix) + +@@ -1955,13 +1950,6 @@ else: if uinput_ENABLED: add_data_files("lib/udev/rules.d/", ["fs/lib/udev/rules.d/71-xpra-virtual-pointer.rules"]) @@ -23,7 +32,6 @@ the 'install stage. - #otherwise we use the flags to skip pkgconfig - if ("--no-compile" in sys.argv or "--skip-build" in sys.argv) and not ("build" in sys.argv and "install" in sys.argv): - pkgconfig = no_pkgconfig -- + if OSX and "py2app" in sys.argv: import py2app #@UnresolvedImport - assert py2app is not None diff --git a/gnu/packages/patches/xpra-4.2-systemd-run.patch b/gnu/packages/patches/xpra-5.0-systemd-run.patch similarity index 66% rename from gnu/packages/patches/xpra-4.2-systemd-run.patch rename to gnu/packages/patches/xpra-5.0-systemd-run.patch index 8dfd9c82f0..4343b2e8c1 100644 --- a/gnu/packages/patches/xpra-4.2-systemd-run.patch +++ b/gnu/packages/patches/xpra-5.0-systemd-run.patch @@ -1,13 +1,12 @@ -Disable systemd-run if the command is not found. - -diff -ru xpra-4.2~/xpra/scripts/main.py xpra-4.2/xpra/scripts/main.py ---- xpra-4.2~/xpra/scripts/main.py 2021-06-06 08:51:13.756815842 -0700 -+++ xpra-4.2/xpra/scripts/main.py 2021-06-06 16:07:13.371024486 -0700 -@@ -331,23 +331,26 @@ - if not is_systemd_pid1(): - return False # pragma: no cover - #test it: -- cmd = ["systemd-run", "--quiet", "--user", "--scope", "--", "true"] +diff --git a/xpra/scripts/main.py b/xpra/scripts/main.py +index 3813331a5..46e2c83a6 100755 +--- a/xpra/scripts/main.py ++++ b/xpra/scripts/main.py +@@ -337,23 +337,26 @@ def use_systemd_run(s) -> bool: + cmd = ["systemd-run", "--quiet"] + if getuid()!=0: + cmd += ["--user"] +- cmd += ["--scope", "--", "true"] - proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) try: - proc.communicate(timeout=2) @@ -15,13 +14,13 @@ diff -ru xpra-4.2~/xpra/scripts/main.py xpra-4.2/xpra/scripts/main.py - except TimeoutExpired: # pragma: no cover - r = None - if r is None: -+ cmd = ["systemd-run", "--quiet", "--user", "--scope", "--", "true"] -+ proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) - try: +- try: - proc.terminate() - except Exception: - pass -- try: ++ cmd = ["systemd-run", "--quiet", "--user", "--scope", "--", "true"] ++ proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=False) + try: - proc.communicate(timeout=1) + proc.communicate(timeout=2) + r = proc.returncode @@ -41,5 +40,5 @@ diff -ru xpra-4.2~/xpra/scripts/main.py xpra-4.2/xpra/scripts/main.py + except FileNotFoundError: + return False - - def run_mode(script_file, error_cb, options, args, mode, defaults): + def verify_gir(): + try: diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index 08cbd8d757..67e046f507 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm @@ -72,6 +72,7 @@ (define-module (gnu packages xorg) #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages check) + #:use-module (gnu packages cups) #:use-module (gnu packages compression) #:use-module (gnu packages emacs) #:use-module (gnu packages flex) @@ -6110,16 +6111,16 @@ (define-public xcompmgr (define-public xpra (package (name "xpra") - (version "4.4.6") + (version "5.0.1") (source (origin (method url-fetch) (uri (string-append "https://www.xpra.org/src/xpra-" version ".tar.xz")) (sha256 - (base32 "0d3s13wqbn9jwqp4i55mn4chgjkrckq3jx4jrq1bcjjz5agzfrq5")) - (patches (search-patches "xpra-4.2-systemd-run.patch" - "xpra-4.2-install_libs.patch")))) + (base32 "03mny5516g6iczp6cgbllpl0q2bz38nh2z7s36qjrlkfm9xc68cl")) + (patches (search-patches "xpra-5.0-systemd-run.patch" + "xpra-5.0-install_libs.patch")))) (build-system python-build-system) (inputs (list bash-minimal ; for wrap-program @@ -6158,7 +6159,8 @@ (define-public xpra python-dbus ; For desktop notifications. dbus ; For dbus-launch command. python-lz4 ; Faster compression than zlib. - python-netifaces)) + python-netifaces + python-pycups)) (native-inputs (list pkg-config pandoc python-cython)) (arguments (list @@ -6193,7 +6195,7 @@ (define-public xpra (format #f "~s" (search-input-file inputs "bin/xauth")))) ;; Fix directory of config files. (substitute* '("xpra/scripts/config.py" - "xpra/platform/xposix/paths.py") + "xpra/platform/posix/paths.py") (("\"/etc/xpra/?\"") (string-append "\"" #$output "/etc/xpra/\""))) ;; XXX: Stolen from (gnu packages linux)