Overview

Request 954300 accepted

Add 0002-unix-reproducible-directory-order-scandir.patch
to make zip file creation reproducible
- Add build time %check

Loading...

Martin Pluskal's avatar

I would like to point out to comment from original patch: "I am too lazy to add a switch to change how it is supposed to work. This is only a proof-of-concept." and it never got any reply from upstream ...


Bernhard Wiedemann's avatar

This patch came from the sourceforce infozip bugtracker, so if there is any upstream left, this is from as close from upstream as I could get. Also I do not see a need for a switch. We can just always have deterministic recursion order instead of random one from the filesystem. Or maybe he was referring to the case, where the OS does not provide a scandir implementation - but I guess we can leave those poor Windows users behind here.

The "PoC" means he never tested it, but I did, found and fixed one bug and then it worked fine as established by the added test.



Danilo Spinella's avatar

Would it be possible to implement the test in the codebase? I'd prefer to avoid maintaining the test manually in the spec file.

Request History
Bernhard Wiedemann's avatar

bmwiedemann created request

Add 0002-unix-reproducible-directory-order-scandir.patch
to make zip file creation reproducible
- Add build time %check


Danilo Spinella's avatar

dspinella accepted request

Thank you!

openSUSE Build Service is sponsored by