From: Lasse Collin Date: Wed, 8 Jan 2025 17:26:29 +0000 (+0200) Subject: Build: Use --sort=name in TAR_OPTIONS X-Git-Tag: v5.6.4~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=717bee1ec512d0e5762fee221df133c81cb9f7c4;p=thirdparty%2Fxz.git Build: Use --sort=name in TAR_OPTIONS Use also LC_COLLATE=C to make the sorting locale-independent. Sorting makes the file order reproducible. (cherry picked from commit 950da11ce09c90412dcbca29689575037640667a) --- diff --git a/Makefile.am b/Makefile.am index b037e397..16624236 100644 --- a/Makefile.am +++ b/Makefile.am @@ -101,7 +101,8 @@ mydist: SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \ test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \ fi; \ - TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \ + TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w --sort=name' \ + LC_COLLATE=C \ $(MAKE) VERSION="$$VERSION" dist-gzip # NOTE: This only creates the PDFs. The install rules are missing.