guix_mirror_bot pushed a commit to branch core-packages-team
in repository guix.

commit 8c047ea1858ea62251bb924615dc65fd2ff5e3f9
Author: Zheng Junjie <[email protected]>
AuthorDate: Mon Nov 2 18:57:13 2026 +0800

    gnu: rust: Fix build.
    
    * gnu/packages/rust.scm (rust)[arguments]<#:phases>: Use which to find sh.
---
 gnu/packages/rust.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index f6d6088410f..f5c6dcb9576 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -2486,11 +2486,11 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
                       '("fn net_err_suggests_fetch_with_cli")))))
              (add-after 'unpack 'patch-process-tests
                (lambda* (#:key inputs #:allow-other-keys)
-                 (let ((bash (assoc-ref inputs "bash")))
+                 (let ((sh (which "sh")))
                    (with-directory-excursion "library/std/src"
                      (substitute* "process/tests.rs"
                        (("\"/bin/sh\"")
-                        (string-append "\"" bash "/bin/sh\"")))
+                        (string-append "\"" sh "\"")))
                      ;; The three tests which are known to fail upstream on 
QEMU
                      ;; emulation on aarch64 and riscv64 also fail on x86_64 in
                      ;; Guix's build system.  Skip them on all builds.

Reply via email to