summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-02-07 09:16:05 +0000
committertnn <tnn@pkgsrc.org>2022-02-07 09:16:05 +0000
commit1dc6b3faeea29c9c09f4626cc5142e8f47ce0c87 (patch)
tree29b8e400c7e5814f39b8134273e37f910edec51b /lang/rust
parent4fc5e55c0cfa295503b71863f8ac47ab3361a6a3 (diff)
downloadpkgsrc-1dc6b3faeea29c9c09f4626cc5142e8f47ce0c87.tar.gz
rust: fix build with rust-1.57.0
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/distinfo4
-rw-r--r--lang/rust/patches/patch-src_bootstrap_lib.rs23
2 files changed, 22 insertions, 5 deletions
diff --git a/lang/rust/distinfo b/lang/rust/distinfo
index 9bacbfb8673..c50a71f7332 100644
--- a/lang/rust/distinfo
+++ b/lang/rust/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.140 2022/01/21 23:20:36 he Exp $
+$NetBSD: distinfo,v 1.141 2022/02/07 09:16:05 tnn Exp $
BLAKE2s (rust-1.56.0-x86_64-unknown-illumos.tar.gz) = 2cfc266e0ac44f0e0ddca2e3f17a3137cfa6c33cce917eb7bd05f60afb8eef24
SHA512 (rust-1.56.0-x86_64-unknown-illumos.tar.gz) = 5b74ecb03cec82ee524b83439fd3f029de7bcdcbc3696fd3897441a9c1bc719e0cd19cedb2e35613377cfc09435476ae53d9cdf71734f9437d185acc2dfaa5ad
@@ -114,7 +114,7 @@ SHA1 (patch-library_unwind_build.rs) = df092d5c07fa0be63a9510f1d6a77e5094ca3b15
SHA1 (patch-src_bootstrap_bootstrap.py) = 353c3b079756bb4a250cdda5752c60b5a7289ce8
SHA1 (patch-src_bootstrap_builder.rs) = b686a545c001936f6da22f7a5b38ac1300c9869b
SHA1 (patch-src_bootstrap_compile.rs) = c57799aee9c12603f5e6a13cb6b5befc8f96b4b6
-SHA1 (patch-src_bootstrap_lib.rs) = f6918e0939b6fe63ae9b524d4c809375149efb15
+SHA1 (patch-src_bootstrap_lib.rs) = e4b96b0120451cc6a1708fc6d936a5c47c40ee4b
SHA1 (patch-src_llvm-project_llvm_CMakeLists.txt) = 7666d5d3254506a0a69bc68e99b68a9c61cf357b
SHA1 (patch-src_llvm-project_llvm_cmake_modules_AddLLVM.cmake) = a59dcdcd34ca24df8b381ae84ff58e2c61a44dd3
SHA1 (patch-src_llvm-project_llvm_include_llvm-c_DataTypes.h) = cb011fc19957883c01725797f7c85ed1b20f96f1
diff --git a/lang/rust/patches/patch-src_bootstrap_lib.rs b/lang/rust/patches/patch-src_bootstrap_lib.rs
index 6745a670cb5..9c850d9614d 100644
--- a/lang/rust/patches/patch-src_bootstrap_lib.rs
+++ b/lang/rust/patches/patch-src_bootstrap_lib.rs
@@ -1,11 +1,28 @@
-$NetBSD: patch-src_bootstrap_lib.rs,v 1.11 2021/11/20 16:09:46 he Exp $
+$NetBSD: patch-src_bootstrap_lib.rs,v 1.12 2022/02/07 09:16:05 tnn Exp $
Don't filter out optimization flags.
FreeBSD has a particular C++ runtime library name
---- src/bootstrap/lib.rs.orig 2021-09-06 18:42:35.000000000 +0000
+With rust-1.57.0 as bootstrap we get this:
+error: field is never read: `id`
+ --> src/bootstrap/lib.rs:280:5
+ |
+280 | id: String,
+ | ^^^^^^^^^^
+ |
+ = note: `-D dead-code` implied by `-D warnings`
+
+--- src/bootstrap/lib.rs.orig 2021-11-29 19:27:11.000000000 +0000
+++ src/bootstrap/lib.rs
-@@ -954,14 +954,13 @@ impl Build {
+@@ -273,6 +273,7 @@ pub struct Build {
+ RefCell<HashMap<TargetSelection, HashMap<String, (&'static str, PathBuf, Vec<String>)>>>,
+ }
+
++#[allow(dead_code)]
+ #[derive(Debug)]
+ struct Crate {
+ name: Interned<String>,
+@@ -954,14 +955,13 @@ impl Build {
.args()
.iter()
.map(|s| s.to_string_lossy().into_owned())