[master] 975b409 Hardcode the timestamp in the gzip header to get reproducible builds.

Poul-Henning Kamp phk at FreeBSD.org
Sun Jun 11 00:57:05 CEST 2017


commit 975b40926179165766bbe92eee8b019edbc31b90
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Jun 10 22:56:06 2017 +0000

    Hardcode the timestamp in the gzip header to get reproducible builds.

diff --git a/lib/libvcc/vsctool.py b/lib/libvcc/vsctool.py
index 93c7d2d..0b38843 100644
--- a/lib/libvcc/vsctool.py
+++ b/lib/libvcc/vsctool.py
@@ -55,7 +55,7 @@ PARAMS = {
 
 def gzip_str(s):
 	out = StringIO.StringIO()
-	gzip.GzipFile(fileobj=out, mode="w").write(s)
+	gzip.GzipFile(fileobj=out, mode="w", mtime=0x12bfd58).write(s)
 	return out.getvalue()
 
 def genhdr(fo, name):



More information about the varnish-commit mailing list