From 619b578a09059ead3554ed4451f97358b6dcb289 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Wed, 1 Aug 2018 13:24:17 +0200 Subject: [PATCH] create reproducible tarballs tar's default pax/posix format stores ctime and atime that vary. ustar format works everywhere and creates more reproducible output. gzip --no-name causes it to not store a 4-byte UNIX timestamp in .gz header --- man/html/cpuperf/GNUmakefile | 2 +- man/html/diskmodel/GNUmakefile | 2 +- man/html/diskperf/GNUmakefile | 2 +- man/html/pmie/GNUmakefile | 2 +- man/html/pmview/GNUmakefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/man/html/cpuperf/GNUmakefile b/man/html/cpuperf/GNUmakefile index 76c7ab564ae..7c07e81ea2c 100644 --- a/man/html/cpuperf/GNUmakefile +++ b/man/html/cpuperf/GNUmakefile @@ -15,7 +15,7 @@ $(BINTAR): $(PCPLOGS) $(CONFIGS) for f in `echo $^`; do \ echo $(BUNDLE)/$$f >> $$CDIR/manifest; \ done; \ - $(TAR) -T $$CDIR/manifest -cf - | $(ZIP) --best > $$CDIR/$(BINTAR); \ + $(TAR) --format ustar -T $$CDIR/manifest -cf - | $(ZIP) --best --no-name > $$CDIR/$(BINTAR); \ echo "Created $(BINTAR)" include $(BUILDRULES) diff --git a/man/html/diskmodel/GNUmakefile b/man/html/diskmodel/GNUmakefile index 13789375b56..27c08d96d81 100644 --- a/man/html/diskmodel/GNUmakefile +++ b/man/html/diskmodel/GNUmakefile @@ -16,7 +16,7 @@ $(BINTAR): $(PCPLOGS) $(CONFIGS) $(MODELS) for f in `echo $^`; do \ echo $(BUNDLE)/$$f >> $$CDIR/manifest; \ done; \ - $(TAR) -T $$CDIR/manifest -cf - | $(ZIP) --best > $$CDIR/$(BINTAR); \ + $(TAR) --format ustar -T $$CDIR/manifest -cf - | $(ZIP) --best --no-name > $$CDIR/$(BINTAR); \ echo "Created $(BINTAR)" include $(BUILDRULES) diff --git a/man/html/diskperf/GNUmakefile b/man/html/diskperf/GNUmakefile index e30070da895..e111f13db6a 100644 --- a/man/html/diskperf/GNUmakefile +++ b/man/html/diskperf/GNUmakefile @@ -15,7 +15,7 @@ $(BINTAR): $(PCPLOGS) $(CONFIGS) for f in `echo $^`; do \ echo $(BUNDLE)/$$f >> $$CDIR/manifest; \ done; \ - $(TAR) -T $$CDIR/manifest -cf - | $(ZIP) --best > $$CDIR/$(BINTAR); \ + $(TAR) --format ustar -T $$CDIR/manifest -cf - | $(ZIP) --best --no-name > $$CDIR/$(BINTAR); \ echo "Created $(BINTAR)" include $(BUILDRULES) diff --git a/man/html/pmie/GNUmakefile b/man/html/pmie/GNUmakefile index 07336fa9187..3ee2e9885a5 100644 --- a/man/html/pmie/GNUmakefile +++ b/man/html/pmie/GNUmakefile @@ -15,7 +15,7 @@ $(BINTAR): $(PCPLOGS) $(CONFIGS) for f in `echo $^`; do \ echo $(BUNDLE)/$$f >> $$CDIR/manifest; \ done; \ - $(TAR) -T $$CDIR/manifest -cf - | $(ZIP) --best > $$CDIR/$(BINTAR); \ + $(TAR) --format ustar -T $$CDIR/manifest -cf - | $(ZIP) --best --no-name > $$CDIR/$(BINTAR); \ echo "Created $(BINTAR)" include $(BUILDRULES) diff --git a/man/html/pmview/GNUmakefile b/man/html/pmview/GNUmakefile index f33a089483d..38c943dd3f6 100644 --- a/man/html/pmview/GNUmakefile +++ b/man/html/pmview/GNUmakefile @@ -15,7 +15,7 @@ $(BINTAR): $(PCPLOGS) $(CONFIGS) for f in `echo $^`; do \ echo $(BUNDLE)/$$f >> $$CDIR/manifest; \ done; \ - $(TAR) -T $$CDIR/manifest -cf - | $(ZIP) --best > $$CDIR/$(BINTAR); \ + $(TAR) --format ustar -T $$CDIR/manifest -cf - | $(ZIP) --best --no-name > $$CDIR/$(BINTAR); \ echo "Created $(BINTAR)" include $(BUILDRULES)