diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-06-17 11:14:25 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-06-18 13:18:26 +0200 |
commit | 784c9ebb7fb5011d7037c2355a275c580a16dcc8 (patch) | |
tree | dd37a1cb212ada6bb47916cd9162ce22ac8cedc9 | |
parent | 34fb88a477b6e5cb97845a304d062770a2596f43 (diff) |
Normalize dist tarballs.
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -28,6 +28,12 @@ GPG ?= gpg CODESPELL ?= codespell CODESPELL_FLAGS ?= --disable-colors --write-changes +SOURCE_DATE_EPOCH = $(shell git show -s --no-show-signature --format=%cI) +TAR_FLAGS = --sort=name \ + --mtime="$(SOURCE_DATE_EPOCH)" \ + --owner=0 --group=0 --numeric-owner \ + --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime + ifeq ($(shell uname -s), Darwin) INSTALL ?= ginstall else @@ -124,7 +130,7 @@ $(CARGO_TARGET_DIR)/dist/sequoia-$(VERSION): $(CARGO_TARGET_DIR)/dist/sequoia-$(VERSION).tar: \ $(CARGO_TARGET_DIR)/dist/sequoia-$(VERSION) - $(TAR) cf $@ -C $(CARGO_TARGET_DIR)/dist sequoia-$(VERSION) + $(TAR) $(TAR_FLAGS) -cf $@ -C $(CARGO_TARGET_DIR)/dist sequoia-$(VERSION) %.xz: % $(XZ) -c $< >$@ |