From 950da11ce09c90412dcbca29689575037640667a Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 8 Jan 2025 19:26:29 +0200 Subject: [PATCH] Build: Use --sort=name in TAR_OPTIONS Use also LC_COLLATE=C to make the sorting locale-independent. Sorting makes the file order reproducible. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 8eba4e32..eee12647 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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.