GNU bug report logs - #76672
[PATCH] gnu: Add xwayland-run.

Previous Next

Package: guix-patches;

Reported by: Hilton Chain <hako <at> ultrarare.space>

Date: Sun, 2 Mar 2025 03:50:02 UTC

Severity: normal

Tags: patch

Done: Hilton Chain <hako <at> ultrarare.space>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Hilton Chain <hako <at> ultrarare.space>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#76672: closed ([PATCH] gnu: Add xwayland-run.)
Date: Tue, 01 Apr 2025 16:48:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 02 Apr 2025 00:46:53 +0800
with message-id <87msczvngi.wl-hako <at> ultrarare.space>
and subject line Re: bug#76672: Acknowledgement ([PATCH] gnu: Add xwayland-run.)
has caused the debbugs.gnu.org bug report #76672,
regarding [PATCH] gnu: Add xwayland-run.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
76672: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76672
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Hilton Chain <hako <at> ultrarare.space>
To: guix-patches <at> gnu.org
Cc: Hilton Chain <hako <at> ultrarare.space>
Subject: [PATCH] gnu: Add xwayland-run.
Date: Sun,  2 Mar 2025 11:49:19 +0800
* gnu/packages/xorg.scm (xwayland-run): New variable.

Change-Id: I447913a9ef4fca8ec8cad128b15eeb61041ca734
---
 gnu/packages/xorg.scm | 55 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index 698f3d4c91..780d2811b2 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -6841,6 +6841,61 @@ (define-public xvfb-run
     (license (list license:x11          ; the script
                    license:gpl2+))))    ; the man page
 
+(define-public xwayland-run
+  (package
+    (name "xwayland-run")
+    (version "0.0.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.freedesktop.org/ofourdan/xwayland-run.git")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1nhrdjk1zbxfxkqwsz992g6xg04gankprzks543931fysclgdzql"))))
+    (build-system meson-build-system)
+    (arguments
+     (list
+      #:imported-modules
+      (append %meson-build-system-modules
+              %python-build-system-modules)
+      #:modules
+      '((guix build utils)
+        (guix build meson-build-system)
+        ((guix build python-build-system) #:prefix python:))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'enable-bytecode-determinism
+            (assoc-ref python:%standard-phases 'enable-bytecode-determinism))
+          (add-after 'install 'add-install-to-pythonpath
+            (assoc-ref python:%standard-phases 'add-install-to-pythonpath))
+          (add-after 'add-install-to-pythonpath 'add-install-to-path
+            (assoc-ref python:%standard-phases 'add-install-to-path))
+          (add-after 'add-install-to-path 'wrap
+            (assoc-ref python:%standard-phases 'wrap))
+          (add-after 'unpack 'fix-paths
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "src/wlheadless/xwayland.py"
+                (("'(xauth|Xwayland)'" _ command)
+                 (format #f "'~a'" (search-input-file
+                                    inputs (in-vicinity "bin" command))))))))))
+    (inputs (list python xauth xorg-server-xwayland))
+    (home-page "https://gitlab.freedesktop.org/ofourdan/xwayland-run")
+    (synopsis "Run X11 client on dedicated Xwayland server")
+    (description
+     "@code{xwayland-run} contains a set of small utilities revolving around
+running @command{Xwayland} and various Wayland compositor headless, namely:
+@itemize
+@item @command{xwayland-run}: Spawn X11 client within its own dedicated
+@command{Xwayland} rootful instance.
+@item @command{wlheadless-run}: Run Wayland client on a set of supported
+Wayland headless compositors.
+@item @command{xwfb-run}: Combination of above two tools to be used as a
+direct replacement for @command{xvfb-run} specifically.
+@end itemize")
+    (license license:gpl2+)))
+
 (define-public setroot
   (package
     (name "setroot")

base-commit: f9dcb84550b85aa816899b2106b1a5ae546167a3
-- 
2.48.1



[Message part 3 (message/rfc822, inline)]
From: Hilton Chain <hako <at> ultrarare.space>
To: 76672-done <at> debbugs.gnu.org
Subject: Re: bug#76672: Acknowledgement ([PATCH] gnu: Add xwayland-run.)
Date: Wed, 02 Apr 2025 00:46:53 +0800
Applied as ee1a40745ccde94cf18d90a80566ca65b0ea0408, closing.


This bug report was last modified 109 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.