Package: pristine-tar Version: 1.50 Severity: wishlist Running `pristine-tar gendelta` two times on the very same input tarball generates two different delta files. They contain files in filesystem order and with "current" timestamps.
I suggest to use something along this:
tar --sort=name
\
--mtime="@${SOURCE_DATE_EPOCH:-$(date +%s)}"
\
--owner=0
\
--group=0
\
--numeric-owner
\
--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
-czf "${artifacts_dir}/${tarball_filename}" "${basename_dir}"
For $SOURCE_DATE_EPOCH, I suggest to use the tarball's mtime. I'm
unfortunately not a Perl guy, but looking at the sources, it seems
it's just the sub write() in Pristine/Tar/Delta/Tarball.pm that needs
to be extended, and mtime being handed down all the way.
Thanks,
Jan-Benedict
--
signature.asc
Description: PGP signature

