]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Build: Use --sort=name in TAR_OPTIONS
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 8 Jan 2025 17:26:29 +0000 (19:26 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 8 Jan 2025 17:29:53 +0000 (19:29 +0200)
Use also LC_COLLATE=C to make the sorting locale-independent.
Sorting makes the file order reproducible.

Makefile.am

index 8eba4e329bd20aa3a8429134cb4eb093864e9b0e..eee12647bfcce99c393e0c4c9cd00f9611b47826 100644 (file)
@@ -104,7 +104,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.