cfields mentioned that it's likely possible to simplify our use of find, sort, tar and gzip inside our gitian descriptors by taking use of modern command line flags.
We currently chain multiple commands together like so:
However it should be possible to drop sort by taking advantage of tar's --sort=name command line flag:
--sort=ORDER Using --sort=name ensures the member ordering in the created archive is uniform and reproducible.
We should also be able to drop gzip and instead pass --gzip straight to tar:
-z, --gzip, --gunzip, --ungzip Filter the archive through gzip(1).
or, we may need to use -I so we can pass gzip -9n:
-I, --use-compress-program=COMMAND Filter data through COMMAND. It must accept the -d option, for decompression. The argument can contain command line options.