mirror of https://github.com/zcash/mpc.git
Improve reproducibility and checksums of dependencies.
This commit is contained in:
parent
66d238729e
commit
4b1b205e40
|
@ -5,3 +5,6 @@
|
|||
[submodule "iso/alpine-iso"]
|
||||
path = iso/alpine-iso
|
||||
url = git://git.alpinelinux.org/alpine-iso
|
||||
[submodule "iso/musl-builder/musl"]
|
||||
path = iso/musl-builder/musl
|
||||
url = git://git.musl-libc.org/musl
|
||||
|
|
|
@ -206,7 +206,29 @@ version = "0.1.1"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[metadata]
|
||||
"checksum aho-corasick 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ca972c2ea5f742bfce5687b9aef75506a764f61d37f8f649047846a9686ddb66"
|
||||
"checksum ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "23ac7c30002a5accbf7e8987d0632fa6de155b7c3d39d0067317a391e00a2ef6"
|
||||
"checksum bincode 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9fbba641f73d3e74a5431d4a6d9e42a70bcce76d466d796c852ba1db31ba41bc"
|
||||
"checksum blake2-rfc 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)" = "0c6a476f32fef3402f1161f89d0d39822809627754a126f8441ff2a9d45e2d59"
|
||||
"checksum bn 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3d604627d84eb6ff9fa501004bae20f6366f88ec7e45e0d9c599c3814e5cd030"
|
||||
"checksum byteorder 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "0fc10e8cc6b2580fda3f36eb6dc5316657f812a3df879a44a66fc9f0fdbc4855"
|
||||
"checksum constant_time_eq 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "07dcb7959f0f6f1cf662f9a7ff389bcb919924d99ac41cf31f10d611d8721323"
|
||||
"checksum crossbeam 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "fb974f835e90390c5f9dfac00f05b06dc117299f5ea4e85fbc7bb443af4911cc"
|
||||
"checksum env_logger 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "15abd780e45b3ea4f76b4e9a26ff4843258dd8a3eed2775a0e7368c2e7936c2f"
|
||||
"checksum gcc 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)" = "dcb000abd6df9df4c637f75190297ebe56c1d7e66b56bbf3b4aa7aece15f61a2"
|
||||
"checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
|
||||
"checksum lazy_static 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "cf186d1a8aa5f5bee5fd662bc9c1b949e0259e1bcc379d1f006847b0080c7417"
|
||||
"checksum libc 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "39dfaaa0f4da0f1a06876c5d94329d739ad0150868069cc235f1ddf80a0480e7"
|
||||
"checksum log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ab83497bf8bf4ed2a74259c1c802351fcd67a65baa86394b6ba73c36f4838054"
|
||||
"checksum memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "d8b629fb514376c675b98c1421e80b151d3817ac42d7c667717d282761418d20"
|
||||
"checksum num-traits 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)" = "8359ea48994f253fa958b5b90b013728b06f54872e5a58bce39540fcdd0f2527"
|
||||
"checksum rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)" = "2791d88c6defac799c3f20d74f094ca33b9332612d9aef9078519c82e4fe04a5"
|
||||
"checksum regex 0.1.77 (registry+https://github.com/rust-lang/crates.io-index)" = "64b03446c466d35b42f2a8b203c8e03ed8b91c0f17b56e1f84f7210a257aa665"
|
||||
"checksum regex-syntax 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "279401017ae31cf4e15344aa3f085d0e2e5c1e70067289ef906906fdbe92c8fd"
|
||||
"checksum rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)" = "6159e4e6e559c81bd706afe9c8fd68f547d3e851ce12e76b1de7914bab61691b"
|
||||
"checksum thread-id 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a9539db560102d1cef46b8b78ce737ff0bb64e7e18d35b2a5688f7d097d0ff03"
|
||||
"checksum thread_local 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "55dd963dbaeadc08aa7266bf7f91c3154a7805e32bb94b820b769d2ef3b4744d"
|
||||
"checksum time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)" = "3c7ec6d62a20df54e07ab3b78b9a3932972f4b7981de295563686849eb3989af"
|
||||
"checksum utf8-ranges 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a1ca13c08c41c9c3e04224ed9ff80461d97e121589ff27c753a16cb10830ae0f"
|
||||
"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
|
||||
"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
|
||||
|
|
|
@ -48,30 +48,14 @@ ADD cargo-config.toml /home/rust/.cargo/config
|
|||
# clean up when you're done.
|
||||
WORKDIR /home/rust/libs
|
||||
|
||||
ADD musl /home/rust/libs/musl
|
||||
|
||||
# Build the musl-libc toolchain, which installs itself in /usr/local/musl.
|
||||
RUN sudo chown rust:rust /home/rust/libs && \
|
||||
git clone git://git.musl-libc.org/musl && cd musl && \
|
||||
RUN sudo chown -R rust:rust /home/rust/libs && \
|
||||
cd musl && \
|
||||
./configure && make && sudo make install && \
|
||||
cd .. && rm -rf musl
|
||||
|
||||
# Build a static library version of OpenSSL using musl-libc. This is
|
||||
# needed by the popular Rust `hyper` crate.
|
||||
RUN VERS=1.0.2g && \
|
||||
curl -O https://www.openssl.org/source/openssl-$VERS.tar.gz && \
|
||||
tar xvzf openssl-$VERS.tar.gz && cd openssl-$VERS && \
|
||||
env CC=musl-gcc ./config --prefix=/usr/local/musl && \
|
||||
env C_INCLUDE_PATH=/usr/local/musl/include/ make depend && \
|
||||
make && sudo make install && \
|
||||
cd .. && rm -rf openssl-$VERS.tar.gz openssl-$VERS
|
||||
ENV OPENSSL_INCLUDE_DIR=/usr/local/musl/include/ \
|
||||
DEP_OPENSSL_INCLUDE=/usr/local/musl/include/ \
|
||||
OPENSSL_LIB_DIR=/usr/local/musl/lib/ \
|
||||
OPENSSL_STATIC=1
|
||||
|
||||
# (Please feel free to submit pull requests for musl-libc builds of other C
|
||||
# libraries needed by the most popular and common Rust crates, to avoid
|
||||
# everybody needing to build them manually.)
|
||||
|
||||
# Expect our source code to live in /home/rust/src. We'll run the build as
|
||||
# user `rust`, which will be uid 1000, gid 1000 outside the container.
|
||||
WORKDIR /home/rust/src
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 8d7a3f40c8de414122eb8eb2131291782ee8ed15
|
Loading…
Reference in New Issue