From b0f591d15e20fec7c6b8a8698bcca0b5c840f6ac Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 15 Oct 2019 11:16:27 +0300 Subject: [PATCH] rust: remove internet connection requirement per build. --- extra/rust/build | 13 +++++++++++++ extra/rust/checksums | 3 +++ extra/rust/sources | 3 +++ 3 files changed, 19 insertions(+) diff --git a/extra/rust/build b/extra/rust/build index b8a69641..3397c621 100755 --- a/extra/rust/build +++ b/extra/rust/build @@ -1,5 +1,18 @@ #!/bin/sh -e +# This package mimics the download process of rust's 'x.py' +# bootstrap library to allow for the removal of the internet +# connection requirement per build further enabling checksums +# and signature verification by KISS. +{ + cache_dir=build/cache/2019-08-15 + mkdir -p "$cache_dir" + + for tarball in *.tar.gz\#no-extract; do + mv -f "$tarball" "$cache_dir/${tarball%%\#no-extract}" + done +} + patch -p1 < musl-libressl.patch # 'rust' checksums files in 'vendor/', but we patch a few files. diff --git a/extra/rust/checksums b/extra/rust/checksums index d603abb6..79b67050 100644 --- a/extra/rust/checksums +++ b/extra/rust/checksums @@ -1,2 +1,5 @@ 644263ca7c7106f8ee8fcde6bb16910d246b30668a74be20b8c7e0e9f4a52d80 rustc-1.38.0-src.tar.gz +fa1d98bf18fb49ff58a70d51ff7924e4d1975f7812dc5217ea31652bf8b7bca4 rust-std-1.37.0-x86_64-unknown-linux-musl.tar.gz#no-extract +1981b67c0cbcaf37f40ee9576d6d1b9a554019e571fc4c49ee9457cf011e0f75 rustc-1.37.0-x86_64-unknown-linux-musl.tar.gz#no-extract +cbc10b662b36be72f94803bf3a977051648ccef29d914fede1fa7fff04c784b4 cargo-0.38.0-x86_64-unknown-linux-musl.tar.gz#no-extract 9987f344bbce0424199b1fc65dfd3136b7c562520a371f01ce79321dc55019cf musl-libressl.patch diff --git a/extra/rust/sources b/extra/rust/sources index c039571b..f2f15a83 100644 --- a/extra/rust/sources +++ b/extra/rust/sources @@ -1,2 +1,5 @@ https://static.rust-lang.org/dist/rustc-1.38.0-src.tar.gz +https://static.rust-lang.org/dist/2019-08-15/rust-std-1.37.0-x86_64-unknown-linux-musl.tar.gz#no-extract +https://static.rust-lang.org/dist/2019-08-15/rustc-1.37.0-x86_64-unknown-linux-musl.tar.gz#no-extract +https://static.rust-lang.org/dist/2019-08-15/cargo-0.38.0-x86_64-unknown-linux-musl.tar.gz#no-extract patches/musl-libressl.patch