From 802d0930602fe8fef6bc9f021760b3da9ab8650e Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 12 Aug 2025 09:36:45 +0200 Subject: [PATCH] Makefile: release: make .tar.gz reproducible Drop the timestamp from the .tar.gz to make it reproducible, similar to how it is done in support/download/helpers. Notice: .xz files do not contain a timestamp Signed-off-by: Peter Korsgaard Signed-off-by: Julien Olivain --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index db2f522c7e..c740c6783d 100644 --- a/Makefile +++ b/Makefile @@ -1255,7 +1255,7 @@ release: $(MAKE) O=$(OUT) distclean tar rf $(OUT).tar --owner=0 --group=0 \ --mtime="$$(git log -1 --pretty=format:%ci)" $(OUT) - gzip -9 -c < $(OUT).tar > $(OUT).tar.gz + gzip -9 -n -c < $(OUT).tar > $(OUT).tar.gz xz -9 -c < $(OUT).tar > $(OUT).tar.xz rm -rf $(OUT) $(OUT).tar