unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] doc: make gzipped man pages reproducible
@ 2020-07-11 16:04 Jonas Witschel
  2020-07-11 16:40 ` Tomi Ollila
  2020-07-11 17:02 ` David Bremner
  0 siblings, 2 replies; 3+ messages in thread
From: Jonas Witschel @ 2020-07-11 16:04 UTC (permalink / raw)
  To: notmuch; +Cc: Jonas Witschel

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/Makefile.local b/doc/Makefile.local
index 769438ed..19b953ed 100644
--- a/doc/Makefile.local
+++ b/doc/Makefile.local
@@ -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
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] doc: make gzipped man pages reproducible
  2020-07-11 16:04 [PATCH] doc: make gzipped man pages reproducible Jonas Witschel
@ 2020-07-11 16:40 ` Tomi Ollila
  2020-07-11 17:02 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: Tomi Ollila @ 2020-07-11 16:40 UTC (permalink / raw)
  To: Jonas Witschel, notmuch

On Sat, Jul 11 2020, Jonas Witschel wrote:

> 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

LGTM.

Tomi

> ---
>  doc/Makefile.local | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/doc/Makefile.local b/doc/Makefile.local
> index 769438ed..19b953ed 100644
> --- a/doc/Makefile.local
> +++ b/doc/Makefile.local
> @@ -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
> -- 
> 2.27.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] doc: make gzipped man pages reproducible
  2020-07-11 16:04 [PATCH] doc: make gzipped man pages reproducible Jonas Witschel
  2020-07-11 16:40 ` Tomi Ollila
@ 2020-07-11 17:02 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2020-07-11 17:02 UTC (permalink / raw)
  To: Jonas Witschel, notmuch

Jonas Witschel <diabonas@archlinux.org> writes:

> 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

Applied to master. Thanks for your contribution.

David

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-11 17:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-11 16:04 [PATCH] doc: make gzipped man pages reproducible Jonas Witschel
2020-07-11 16:40 ` Tomi Ollila
2020-07-11 17:02 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).