]> 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>
Fri, 17 Jan 2025 14:54:00 +0000 (16:54 +0200)
Use also LC_COLLATE=C to make the sorting locale-independent.
Sorting makes the file order reproducible.

(cherry picked from commit 950da11ce09c90412dcbca29689575037640667a)

Makefile.am

index b037e397504882aa16bc19942ededaa4e9f530cc..16624236bb4fd833f9111f3dd6b8133336130e14 100644 (file)
@@ -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.