[rb-general] Reproducing tarballs under various toolchains

Bernhard M. Wiedemann bernhardout at lsmod.de
Thu Sep 20 21:55:54 CEST 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 20/09/2018 15.34, Daniel Shahaf wrote:
> 
> To summarize the action items so far:
> 
> 1. Patch the site to mention bsdtar support for these flags 2. Ask
> bsdtar to support the gtar flag names 3. Ask gtar to support the
> bsdtar flag names

but bsdtar has no --sort and --mtime options, making this rather ugly.

Thus my tar patches so far looked like
https://github.com/SawfishWM/sawfish/pull/30/files
https://github.com/L1L1/cardpeek/pull/97/files
https://github.com/sylabs/singularity/pull/1083/files
https://github.com/performancecopilot/pcp/pull/540/files

[ -n "${SOURCE_DATE_EPOCH}" ] && tar --help|grep -q sort= &&
taropts="--sort=name --clamp-mtime --mtime @${SOURCE_DATE_EPOCH}
- --format=gnu" ;\
cd newroot; tar c . --owner=0 --group=0 $$taropts | gzip -n9 > foo.tgz

Luckily the explicit gzip can soon be dropped in favor of more
standard/readable
 tar czf
because of https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32342
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQRk4KvQEtfG32NHprVJNgs7HfuhZAUCW6P7QgAKCRBJNgs7Hfuh
ZJgmAKCLJ2zw0oy9HPWjGcZWUfRde08idQCgu4VbWB4BQ4ae+otOcM2vU4u7MX0=
=/MH9
-----END PGP SIGNATURE-----


More information about the rb-general mailing list