makedist: Use fixed sort in generated tarball (#10615)

Instead of some undefined order, the files will now be includes in alphabetical
order to make the tarball more reproducible.
This commit is contained in:
Tim Düsterhus 2023-02-22 20:14:54 +01:00 committed by GitHub
parent 8c87a5cc6f
commit 9660a7fa59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,7 @@ cd ..
echo "" echo ""
echo "makedist: Creating $prefix.tar archive." echo "makedist: Creating $prefix.tar archive."
"$tar" cf "$prefix".tar --owner=0 --group=0 --numeric-owner "$prefix" "$tar" cf "$prefix".tar --owner=0 --group=0 --numeric-owner --sort=name "$prefix"
rm -rf "$prefix" "$prefix".tar.* rm -rf "$prefix" "$prefix".tar.*
echo "makedist: Creating $prefix.tar.gz archive." echo "makedist: Creating $prefix.tar.gz archive."