1
0
mirror of https://git.tukaani.org/xz.git synced 2025-03-01 14:10:47 +00:00

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)
This commit is contained in:
Lasse Collin 2025-01-08 19:26:29 +02:00
parent 27a503b8dd
commit 717bee1ec5
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -101,7 +101,8 @@ mydist:
SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \ SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \ test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
fi; \ 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 $(MAKE) VERSION="$$VERSION" dist-gzip
# NOTE: This only creates the PDFs. The install rules are missing. # NOTE: This only creates the PDFs. The install rules are missing.