pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust Add patch to fix build for rust 1.33.0;



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d044a2448481
branches:  trunk
changeset: 330868:d044a2448481
user:      rin <rin%pkgsrc.org@localhost>
date:      Wed Mar 06 16:51:53 2019 +0000

description:
Add patch to fix build for rust 1.33.0;
trim_left_matches has been superseded by trim_start_matches.

diffstat:

 lang/rust/distinfo                                     |   3 ++-
 lang/rust/patches/patch-src_tools_tidy_src_features.rs |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r e723cc44e8bc -r d044a2448481 lang/rust/distinfo
--- a/lang/rust/distinfo        Wed Mar 06 14:35:56 2019 +0000
+++ b/lang/rust/distinfo        Wed Mar 06 16:51:53 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.65 2019/03/04 15:37:54 he Exp $
+$NetBSD: distinfo,v 1.66 2019/03/06 16:51:53 rin Exp $
 
 SHA1 (rust-1.32.0-i686-apple-darwin.tar.gz) = 53b4b0c4a05a4fb3fa5f601151df166dd488f911
 RMD160 (rust-1.32.0-i686-apple-darwin.tar.gz) = 91949e77519a8a1b0330d69faf06817a6d8ba856
@@ -122,6 +122,7 @@
 SHA1 (patch-src_tools_rls_src_cmd.rs) = 754bfb8806e209cb0ef01690b48bf4b145017ab9
 SHA1 (patch-src_tools_rls_src_server_io.rs) = 74b90c1aeb70b0c3a20709145d6568ddf4647877
 SHA1 (patch-src_tools_rust-installer_install-template.sh) = f2ec6dced2be1fa23773d5827503ad07d0913dc2
+SHA1 (patch-src_tools_tidy_src_features.rs) = 229be34bb91ce50ceeb69bee3833bba77600afda
 SHA1 (patch-vendor_backtrace-sys_src_libbacktrace_configure) = 90e54f66edce65ebe23fbf2480deb193ca926733
 SHA1 (patch-vendor_libc_src_unix_solaris_mod.rs) = 1fd66c000eeae9b61e5e05c46604c574d2b2106c
 SHA1 (patch-vendor_rand_src_rngs_os.rs) = 7a1c6d91d9418e1f8e378c4baca33045cc768f2d
diff -r e723cc44e8bc -r d044a2448481 lang/rust/patches/patch-src_tools_tidy_src_features.rs
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/rust/patches/patch-src_tools_tidy_src_features.rs    Wed Mar 06 16:51:53 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_tools_tidy_src_features.rs,v 1.1 2019/03/06 16:51:53 rin Exp $
+
+Fix build for rust 1.33.0;
+trim_left_matches has been superseded by trim_start_matches.
+
+--- src/tools/tidy/src/features.rs.orig        2019-03-07 00:36:26.836890152 +0900
++++ src/tools/tidy/src/features.rs     2019-03-07 00:36:45.715999809 +0900
+@@ -188,7 +188,7 @@ pub fn collect_lang_features(base_src_pa
+             }
+ 
+             let mut parts = line.split(',');
+-            let level = match parts.next().map(|l| l.trim().trim_left_matches('(')) {
++            let level = match parts.next().map(|l| l.trim().trim_start_matches('(')) {
+                 Some("active") => Status::Unstable,
+                 Some("removed") => Status::Removed,
+                 Some("accepted") => Status::Stable,



Home | Main Index | Thread Index | Old Index