diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-16 20:48:05 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:57:42 +0200 |
commit | c4f676b24edc0769c396eea5b98332ca050ab0f3 (patch) | |
tree | e8e505f7659554f05fe82096abfbb89e356fcf19 /gnu/packages/rust.scm | |
parent | b3b273ff89eb120caf5e99ec419fe710f4cc4ac4 (diff) |
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
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r-- | gnu/packages/rust.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 3680ab12f1..73c63cf801 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -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)$"))))))))) |