From 6169762d534607588634036fe0d69b0e78bbea28 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 30 Jun 2021 23:46:09 +0000 Subject: [PATCH] rust: 1.53.0 --- extra/rust/build | 16 ++++++++++------ extra/rust/checksums | 10 +++++----- extra/rust/patches/libressl.patch | 4 ++-- extra/rust/sources | 8 ++++---- extra/rust/version | 2 +- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/extra/rust/build b/extra/rust/build index 4a2472ef..89434b95 100755 --- a/extra/rust/build +++ b/extra/rust/build @@ -6,19 +6,22 @@ patch -p1 < libressl.patch # bootstrap library to allow for the removal of the internet # connection requirement per build. { - mkdir -p "${cache_dir:=build/cache/2020-08-27}" + mkdir -p "${cache_dir:=build/cache/2021-05-06}" for tarball in *.tar.xz\?no-extract; do mv -f "$tarball" "$cache_dir/${tarball%%\?no-extract}" done } -# We modified openssl-sys. -sed -i 's/\("files":{\)[^}]*/\1/' \ - vendor/openssl-sys/.cargo-checksum.json - +# Set shared linking as the default. sed -i 's/crt_static_default = true/crt_static_default = false/' \ - src/librustc_target/spec/linux_musl_base.rs + compiler/rustc_target/src/spec/linux_musl_base.rs \ + vendor/rustc-ap-rustc_target/src/spec/linux_musl_base.rs + +# Ignore checksums of files modified above. +sed -i 's/\("files":{\)[^}]*/\1/' \ + vendor/openssl-sys/.cargo-checksum.json \ + vendor/rustc-ap-rustc_target/.cargo-checksum.json cat > config.toml < ('3', '1', 'x'), (3, 2, 0) => ('3', '2', '0'), + (3, 2, 1) => ('3', '2', '1'), -+ (3, 2, _) => ('3', '2', 'x'), ++ (3, 3, _) => ('3', '3', 'x'), _ => version_error(), }; - + diff --git a/extra/rust/sources b/extra/rust/sources index fd2b4968..74a699d1 100644 --- a/extra/rust/sources +++ b/extra/rust/sources @@ -1,5 +1,5 @@ -https://static.rust-lang.org/dist/rustc-1.47.0-src.tar.xz -https://static.rust-lang.org/dist/2020-08-27/rust-std-1.46.0-x86_64-unknown-linux-musl.tar.xz?no-extract -https://static.rust-lang.org/dist/2020-08-27/rustc-1.46.0-x86_64-unknown-linux-musl.tar.xz?no-extract -https://static.rust-lang.org/dist/2020-08-27/cargo-0.47.0-x86_64-unknown-linux-musl.tar.xz?no-extract +https://static.rust-lang.org/dist/rustc-1.53.0-src.tar.xz +https://static.rust-lang.org/dist/2021-05-06/rust-std-1.52.0-x86_64-unknown-linux-musl.tar.xz?no-extract +https://static.rust-lang.org/dist/2021-05-06/rustc-1.52.0-x86_64-unknown-linux-musl.tar.xz?no-extract +https://static.rust-lang.org/dist/2021-05-06/cargo-1.52.0-x86_64-unknown-linux-musl.tar.xz?no-extract patches/libressl.patch diff --git a/extra/rust/version b/extra/rust/version index a42aadef..c56ed413 100644 --- a/extra/rust/version +++ b/extra/rust/version @@ -1 +1 @@ -1.47.0 2 +1.53.0 1