Closed bmwiedemann closed 5 years ago
hmm. how does it fail? I guess, the tar is older and does not have the sort option?
During make I get:
TAR dot_cardpeek_dir
tar: --clamp-mtime needs a date specified using --mtime
Try 'tar --help' or 'tar --usage' for more information.
Removing --clamp-mtime
fixes the problem
try this instead: --mtime @1 --clamp-mtime
This has reproducible build results without influences from timestamps of dirs touched during build.
OK that works on Ubuntu and MacOS.
Create tar.gz in a reproducible way by sorting entries, overriding UID, mtime and using gzip -n to not add a timestamp in .gz header
See https://reproducible-builds.org/ for why this is good.