On Sat, 2024-04-27 21:23:37 +0200, Jan-Benedict Glaw <jbg...@lug-owl.de> wrote: > I'm trying to generate a reproducible archive of a directory > contianing a number of files using tar 1.34; there are just [...] > It boils down to a call like this: > > tar --sort=name > \ > --mtime="@${SOURCE_DATE_EPOCH:-$(date +%s)}" > \ > --owner=0 > \ > --group=0 > \ > --numeric-owner > \ > --format=pax > \ > > --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime,delete=devmajor,delete=devminor > \ > -cf - "${basename_dir}" > | \ > gzip -n9 > "${artifacts_dir}/${tarball_filename}"
Turns out: Running an update to 1.35 (actually to Debian's 1.35+dfsg-3) seems to allow creating reproducible tarballs using the above command. Thanks, Jan-Benedict --
signature.asc
Description: PGP signature