On Sat, Apr 13, 2024 at 3:59 AM Richard W.M. Jones rjones@redhat.com wrote:
On Fri, Apr 12, 2024 at 10:41:43PM +0100, Aoife Moloney wrote:
[https://github.com/keszybz/add-determinism add-determinism] is a Rust program which, as its name suggests, adds determinism to files that are given as input by attempting to standardize metadata contained in binary or source files to ensure consistency and clamping to $SOURCE_DATE_EPOCH in all instances. `add-determinism` is the "Fedora version" of [https://salsa.debian.org/reproducible-builds/strip-nondeterminism strip-nondeterminism] from the Debian project. Since strip-nondeterminism is written in perl, it is undesirable for use in Fedora, as we don't want to pull perl in the buildroot for every package.
https://github.com/keszybz/add-determinism looks like a package with a lot of Rust dependencies just to make some small changes to four different file types. Isn't there an easier way to do this? I would have thought a Python library would be more suitable as the most complicated bit is the *.pyc change which is done using Python code.
Considering Debian's version is in Perl, yes, it's quite reasonable to consider that. It could have been written in Python, C++, or even shell (if you truly hated yourself). I'm not a big fan of Rust for this either. But unless someone offers to make another version that is more appealing, this is what we have.
-- 真実はいつも一つ!/ Always, there's only one truth!