From b8a061797b3d96e724bee7e44c1cf24b5577cbd7 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Tue, 30 Jan 2024 15:05:05 -0800 Subject: [PATCH] deterministic rustlib manifests --- src/core/rust/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/core/rust/Dockerfile b/src/core/rust/Dockerfile index da78156..3ccac80 100644 --- a/src/core/rust/Dockerfile +++ b/src/core/rust/Dockerfile @@ -170,7 +170,15 @@ RUN set -eux; \ FROM build as install USER 0:0 -RUN python3 x.py install +RUN set -eux; \ + python3 x.py install; \ + cd /rootfs/usr/lib/rustlib; \ + rm install.log; \ + sort -o manifest-cargo manifest-cargo; \ + sort -o manifest-rustc manifest-rustc; \ + sort -o \ + manifest-rust-std-x86_64-unknown-linux-musl \ + manifest-rust-std-x86_64-unknown-linux-musl COPY --from=musl /lib/* /rootfs/lib/ COPY --from=gcc /usr/lib/* /rootfs/usr/lib/ COPY --from=gcc /usr/lib64/* /rootfs/usr/lib/