RFC: Sort tarballs created by the src-release.sh script
Nick Clifton
nickc@redhat.com
Wed Sep 28 12:59:27 GMT 2022
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
More information about the Binutils
mailing list