Deterministic builds?

Erik Cederstrand erik at cederstrand.dk
Mon Nov 15 11:56:36 UTC 2010


Den 15/11/2010 kl. 12.40 skrev Tom Evans:

> The important things for us are that given a binary, you should be
> able to easily reproduce the source environment that the binary was
> produced from, and any two binaries produced from the same sources
> should be identical.

I'm leaning towards not even recording the svn rev. within the binary. A commit only changing comments or style(9) would not change the bits of the binary, but the differing revision number would. A solution could be to have an external file, e.g. /etc/kernel-buildinfo and /etc/world-buildinfo, containing the output of "svn stat", "svn diff", src.conf, make.conf, SRCDIR and OBJDIR locations, the full buildworld/kernel command and whatever else could affect the build outcome.

Erik


More information about the freebsd-hackers mailing list