Reproducible Justbuild binaries can be obtained by building and statically
linking with the musl libc. To achieve reproducibility
that is independent of the x86_64 Linux build host, the
compiler toolchain
is acquired via Bootstrappable Builds.
Independent of the x86_64 Linux build host, we can predict that for
- Justbuild Version: v1.6.3
- Toolchain: gcc-14.2.0-musl+tools
binaries with the following hashes will be produced:
- Git blob IDs for
x86_64 - Git blob IDs for
arm64 - SHA256 checksums for
x86_64 - SHA245 checksums for
arm64
First, install Justbuild and make sure to fulfill the toolchain requirements.
For building, clone this repository and run:
$ just-mr buildFor verifying Git blob IDs, run:
$ just-mr build --dump-artifacts - | diff hashes/x86_64.GITBLOBIDS -For verifying SHA256 checksums (requires install), run:
$ just-mr install -o .
$ sha256sum -c hashes/x86_64.SHA256SUMSNote that to obtain cross-compiled binaries for arm64, you need to specify
-D'{"TARGET_ARCH":"arm64"}' for building and use arm64.GITBLOBIDS or
arm64.SHA256SUMS for verification.