gnu: rust-1.72: Fix building on powerpc64le-linux.

* gnu/packages/rust.scm (rust-1.72)[source]: Adjust snippet to fix
building rustix on all architectures.

Change-Id: If8e6b5c4d0c29d2ee2fdfe58fa7d4d2c1585740e
This commit is contained in:
Efraim Flashner 2024-01-16 20:49:15 +02:00
parent 4e058aa7e8
commit 6302731750
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -868,7 +868,10 @@ (define-public rust-1.72
;; Also remove the bundled (mostly Windows) libraries.
(for-each delete-file
(find-files "vendor" "\\.(a|dll|exe|lib)$"))
;; Adjust rustc_driver to explicitly use rustix with libc backend.
;; Adjust some crates to explicitly use rustix with the libc backend.
(substitute* '("vendor/is-terminal/Cargo.toml"
"vendor/is-terminal-0.4.7/Cargo.toml")
(("\"termios\"") "\"termios\", \"use-libc\""))
(substitute* "compiler/rustc_driver/Cargo.toml"
(("rustix = \"=0.37.11\"")
(string-append "rustix = { version = \"=0.37.11\","