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

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

Change-Id: I541767f19740b954e8c0f631bd5e77743ae3fb14
This commit is contained in:
Efraim Flashner 2024-01-16 20:48:05 +02:00
parent b3b273ff89
commit c4f676b24e
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -763,6 +763,15 @@ safety and thread safety guarantees.")
'("src/llvm-project"
"vendor/openssl-src/openssl"
"vendor/tikv-jemalloc-sys/jemalloc"))
;; Adjust rustix to always build with cc.
(substitute* '("Cargo.lock"
"src/bootstrap/Cargo.lock")
(("\"errno\",") "\"cc\",\n \"errno\","))
;; Add a dependency on the the 'cc' feature of rustix.
(substitute* "vendor/fd-lock/Cargo.toml"
(("\"fs\"") "\"fs\", \"cc\""))
(substitute* "vendor/is-terminal/Cargo.toml"
(("\"termios\"") "\"termios\", \"cc\""))
;; Also remove the bundled (mostly Windows) libraries.
(for-each delete-file
(find-files "vendor" "\\.(a|dll|exe|lib)$")))))))))