]> git.notmuchmail.org Git - notmuch/commitdiff
doc: make gzipped man pages reproducible
authorJonas Witschel <diabonas@archlinux.org>
Sat, 11 Jul 2020 16:04:35 +0000 (18:04 +0200)
committerDavid Bremner <david@tethera.net>
Sat, 11 Jul 2020 16:57:17 +0000 (13:57 -0300)
gzip includes the name of the uncompressed file and its modification
timestamp into the compressed archive. The latter makes it hard to
reproduce the generated files bit for bit at a later time, so omit this
information from the archive using the "--no-name" option. This is a
reproducibility best practice, see
https://wiki.debian.org/ReproducibleBuilds/TimestampsInGzipHeaders

doc/Makefile.local

index 769438ed24756962d34d8b99348df1e0b2d93eac..19b953ed22b8695f982f0e13fff5c344de045735 100644 (file)
@@ -40,7 +40,7 @@ INFO_INFO_FILES := $(INFO_TEXI_FILES:.texi=.info)
 .PHONY: install-man build-man apidocs install-apidocs
 
 %.gz: %
-       rm -f $@ && gzip --stdout $^ > $@
+       rm -f $@ && gzip --no-name --stdout $^ > $@
 
 ifeq ($(WITH_EMACS),1)
 $(DOCBUILDDIR)/.roff.stamp sphinx-html sphinx-texinfo: docstring.stamp