[Reproducible-builds] Bug#795790: rdfind: please produce deterministic output

Reiner Herrmann reiner at reiner-h.de
Sun Aug 16 20:14:44 UTC 2015

Source: rdfind
Version: 1.3.4-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: toolchain fileordering
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org


While working on the "reproducible builds" effort [1], we have noticed
that the behaviour of rdfind is depending on the filesystem order.
When finding duplicates and replacing them with symlinks, the file
that was last created/modified(?) will be used as the destination,
which is not deterministic.

The attached patch will sort the file list by filenames before any
operation is performed on it. This will result in a deterministic
behaviour, so that packages using rdfind can be built reproducibly.


[1]: https://wiki.debian.org/ReproducibleBuilds

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdfind.patch
Type: text/x-diff
Size: 2485 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150816/85e6fff3/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150816/85e6fff3/attachment.sig>

More information about the Reproducible-builds mailing list