Re:NixOS Reproducible Builds: minimal ISO successfully indep...
by ndriscoll on Sunday October 29, 2023 @12:52PM
(#38060383)
Your source would also have to have a reference to which exact version of which compiler to use, which versions of which external headers to use, etc. and now you're inventing Nix.
Conceivably there could be a standard for a sidecar file to specify how something was built (e.g. nixpkgs commit hash, or all of the parameters that went into the build). Or content address the inputs, i.e. invent Nix again.
So we could solve this problem by having everyone standardize on using Nix.
Re:NixOS Reproducible Builds: minimal ISO successfully indep...
by Smaug123 on Sunday October 29, 2023 @01:02PM
(#38060482)
Such standards do exist: https://slsa.dev/spec/v1.0/provenance
Re:NixOS Reproducible Builds: minimal ISO successfully indep...
by londons_explore on Sunday October 29, 2023 @01:49PM
(#38060929)
The usecase is: user wants an easy way to know, from the GUI of some running software, exactly what build/version/git commit/branch/date they're running - perhaps to file a bug report for example.
The actual build date doesn't matter if the software is reproducible - but its a proxy for 'how out of date is this software'.
Re:NixOS Reproducible Builds: minimal ISO successfully indep...
by tripdout on Sunday October 29, 2023 @02:53PM
(#38061461)
In that case, you can report the Git SHA and still be reproducible.
Re:NixOS Reproducible Builds: minimal ISO successfully indep...
by tikhonj on Sunday October 29, 2023 @06:00PM
(#38063271)
If you actually had reproducible builds, the build date would not tell you anything about how out of date the software is—you would only need the date of the source code the binary was built from. By definition, the binary you'd get from building a version of the source today would be identical to the version you'd get building it the day that version of the source was finished.
Having information about which git has was used, as well as the time it was published, is part of the source distribution so an output can contain references to these inputs and still be deterministic w.r.t. those inputs.
If you REALLY want to know when/who built something, you could add in an auxiliary source file which contains that information, which is required to build. Which is essentially what compilers which leverage current time do anyway, it's just implicit.