The term "Reproducible Builds" refers to making sure the build process for various artifacts is so deterministic that building the same sources twice results in a bit-by-bit identical artifact. You can read more about it on https://reproducible-builds.org/.

One of the advantages of Reproducible Builds is that, when those two builds happen on independently-managed infrastructure, validating that both environments produce the same bit-by-bit artifact improves the confidence that no backdoor or other malware was injected into the artifact due to a compromise of the infrastructure.

Reproducible Builds for ASF releases

It is good practice for all artifacts released by the ASF to be reproducible. For projects that want to build and sign artifacts on CI, Reproducible Builds are required. This means:

Ecosystem-specific notes

See below for any ecosystem-specific notes that could be helpful for other projects to make their builds reproducible. If you have additional input to share, feel free to edit this wiki page. If you have questions or want to discuss approaches, you can use the security-discuss mailinglist or Slack channel.

Java / Maven

If you have a project that is built with Apache Maven, refer to the Configuring for Reproducible Builds guide.

Python

Modern Python tooling (For example Flit and Hatch  support reproducible builds for pure - Python project. You can read more about reproducible build support in Flit reproducible build docs and Hatch reproducible build docs. It's a bit more complex if your assets require native compilation, but If you can assure that your native compilation produces reproducible libraries on it's own the packaging tool will produce reproducible builds..

Few guidelines:

You can read more about reproducible build support in Flit reproducible build docs and Hatch reproducible build docs.

If you prepare source-tarball, you can have script similar to this one - which takes the same source_date_epoch and repacks the .tar.gz file to be reproducible.