From 784c9ebb7fb5011d7037c2355a275c580a16dcc8 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 17 Jun 2020 11:14:25 +0200 Subject: Normalize dist tarballs. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 67af6f84..2f9517ad 100644 --- a/Makefile +++ b/Makefile @@ -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 $< >$@ -- cgit v1.2.3