Skip to content

Commit

Permalink
Build: Use --sort=name in TAR_OPTIONS
Browse files Browse the repository at this point in the history
Use also LC_COLLATE=C to make the sorting locale-independent.
Sorting makes the file order reproducible.
  • Loading branch information
Larhzu committed Jan 8, 2025
1 parent 75d91d6 commit 950da11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 950da11

Please sign in to comment.