RFC: Sort tarballs created by the src-release.sh script

Nick Clifton via Gdb-patches
2022-09-28T12:59:53Z

Hi Guys,

A contributor recently pointed out that the binutils release tarballs are
not sorted by name, making it hard to reproducibly recreate them. At first
we thought that using tar's --sort=name option would solve this, but it
turns out that the src-release.sh script creates its own list of input file
names, so instead I am proposing this patch:

diff --git a/src-release.sh b/src-release.sh
index 079b545ae7c..caae5148034 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -185,7 +185,7 @@ do_tar()
echo "==> Making $package-$ver.tar"
rm -f $package-$ver.tar
find $package-$ver -follow \( $CVS_NAMES \) -prune \
- -o -type f -print \
+ -o -type f -print | sort \
| tar cTfh - $package-$ver.tar
}

Any comments or objections ?

Cheers
Nick