rust: remove internet connection requirement per build.

This commit is contained in:
Dylan Araps 2019-10-15 11:16:27 +03:00
parent af7d59772f
commit b0f591d15e
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
3 changed files with 19 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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