Bugzilla – Bug 1218191
trackerbug: packages do not build reproducibly from tar file
Last modified: 2024-02-16 21:10:11 UTC
Background: https://reproducible-builds.org/ Some packages include tar files. Tar files often suffer from several sources of non-determinism: 1) filesystem readdir order during recursion (bug 1041090) 2) embedded mtime/atime/ctime values (bug 1047218) 3) pax headers contains the PID of tar 1) can be avoided by calling tar with --sort=name 2) can be avoided by calling tar with --mtime=@$SOURCE_DATE_EPOCH 3) can be avoided with --format=gnu or --pax-option=exthdr.name=%%d/PaxHeaders/%%f,delete=atime,delete=ctime https://reproducible-builds.org/docs/archives/ has information on problems and solutions