From 6abb7bc42234fd2c0dfe67b5de80dd609625ecb9 Mon Sep 17 00:00:00 2001 From: bdunahu Date: Mon, 13 Apr 2026 22:20:57 -0400 Subject: gnu: emacs-xelb: Patch call to xauth with store path. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures login cookies used to authenticate with the X server can be found at runtime without requiring xauth be in the user's profile. * gnu/packages/emacs-xyz.scm (emacs-xelb)[#:phases]: Add ‘patch-xauth-path’. [inputs]: Add xauth. Change-Id: Ic24cb12d6103a3f6dc24c89f2dd43c1e1f7dc95c Signed-off-by: Liliana Marie Prikler --- gnu/packages/emacs-xyz.scm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index a49816dcd7..801b9e752b 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -24580,6 +24580,13 @@ Meow’s motions.") #:tests? #f ; no test suite #:phases #~(modify-phases %standard-phases + (add-before 'patch-el-files 'patch-xauth-path + ;; Uses xauth directly at runtime to authenticate with the X server. + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "xcb.el" + (("xauth list") + (string-append (search-input-file inputs "/bin/xauth") + " list"))))) (add-after 'expand-load-path 'regenerate-el-files (lambda* (#:key inputs native-inputs #:allow-other-keys) (substitute* "xelb-gen" @@ -24587,6 +24594,7 @@ Meow’s motions.") (invoke "make" (format #f "PROTO_PATH=~a/share/xcb" #$(this-package-native-input "xcb-proto")))))))) + (inputs (list xauth)) (native-inputs (list xcb-proto)) (propagated-inputs (list emacs-compat)) (home-page "https://github.com/emacs-exwm/xelb") -- cgit v1.3