guix_mirror_bot pushed a commit to branch crypto-team
in repository guix.
commit c691a03b43a8834384eb26dade863e235171c50c
Author: Yelninei <[email protected]>
AuthorDate: Tue Jun 2 17:08:47 2026 +0000
gnu: openssh: Set path to xauth when cross compiling.
* gnu/packages/ssh.scm (openssh)[#:configure-flags]: When cross-compiling,
set
--with-xauth flag.
Change-Id: I11aae7af14872d980be3679410d0f700e6b41137
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/ssh.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm
index 4e26f1ee91..b277218565 100644
--- a/gnu/packages/ssh.scm
+++ b/gnu/packages/ssh.scm
@@ -276,7 +276,11 @@ a server that supports the SSH-2 protocol.")
;; cross-compiled binaries because it invokes 'strip' instead of
;; 'TRIPLET-strip'. Work around this.
(if #$(%current-target-system)
- (list "--disable-strip")
+ (append (list "--disable-strip")
+ (let ((xauth #$(this-package-input "xauth")))
+ (if xauth
+ (list (string-append "--with-xauth=" xauth
"/bin/xauth"))
+ '())))
'()))
#:phases
#~(modify-phases %standard-phases