diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-16 20:48:51 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:57:42 +0200 |
| commit | 4e058aa7e885a0c10fdeee3e0621d580a6c35b23 (patch) | |
| tree | fe4c40044447104f5bde9197855b223f021ecc3a /gnu/packages/rust.scm | |
| parent | fb295a6a1269c9375a4251192775221e584a7afd (diff) | |
gnu: rust-1.71: Fix building on powerpc64le-linux.
* gnu/packages/rust.scm (rust-1.71)[source]: Adjust snippet to fix
building rustix on all architectures.
Change-Id: I1661ebd9071b3dba92e0f871fad9ed5bcbef38ea
Diffstat (limited to 'gnu/packages/rust.scm')
| -rw-r--r-- | gnu/packages/rust.scm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 85f497d0417..5ad219f668b 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm | |||
| @@ -815,6 +815,26 @@ safety and thread safety guarantees.") | |||
| 815 | rust-1.70 "1.71.1" "0bj79syjap1kgpg9pc0r4jxc0zkxwm6phjf3digsfafms580vabg"))) | 815 | rust-1.70 "1.71.1" "0bj79syjap1kgpg9pc0r4jxc0zkxwm6phjf3digsfafms580vabg"))) |
| 816 | (package | 816 | (package |
| 817 | (inherit base-rust) | 817 | (inherit base-rust) |
| 818 | (source | ||
| 819 | (origin | ||
| 820 | (inherit (package-source base-rust)) | ||
| 821 | (snippet | ||
| 822 | '(begin | ||
| 823 | (for-each delete-file-recursively | ||
| 824 | '("src/llvm-project" | ||
| 825 | "vendor/openssl-src/openssl" | ||
| 826 | "vendor/tikv-jemalloc-sys/jemalloc")) | ||
| 827 | ;; Adjust rustix to always build with cc. | ||
| 828 | (substitute* '("Cargo.lock" | ||
| 829 | "src/tools/cargo/Cargo.lock") | ||
| 830 | (("\"errno\",") "\"cc\",\n \"errno\",")) | ||
| 831 | ;; Add a dependency on the the 'cc' feature of rustix. | ||
| 832 | (substitute* '("vendor/is-terminal/Cargo.toml" | ||
| 833 | "vendor/is-terminal-0.4.6/Cargo.toml") | ||
| 834 | (("\"termios\"") "\"termios\", \"cc\"")) | ||
| 835 | ;; Also remove the bundled (mostly Windows) libraries. | ||
| 836 | (for-each delete-file | ||
| 837 | (find-files "vendor" "\\.(a|dll|exe|lib)$")))))) | ||
| 818 | (arguments | 838 | (arguments |
| 819 | (substitute-keyword-arguments (package-arguments base-rust) | 839 | (substitute-keyword-arguments (package-arguments base-rust) |
| 820 | ((#:phases phases) | 840 | ((#:phases phases) |
