1From 09a6df0d32e2177406ed391e536c0c7c4b503c5d Mon Sep 17 00:00:00 2001 2From: Christian Hofstaedtler <zeha@debian.org> 3Date: Tue, 10 Oct 2017 15:04:34 -0300 4Subject: [PATCH] rdoc: build reproducible documentation 5 6- provide a fixed timestamp to the gzip compression 7 8Upstream-Status: Backport [debian] 9 10Signed-off-by: Antonio Terceiro <terceiro@debian.org> 11Signed-off-by: Christian Hofstaedtler <zeha@debian.org> 12--- 13 lib/rdoc/generator/json_index.rb | 4 ++-- 14 1 file changed, 2 insertions(+), 2 deletions(-) 15 16diff --git a/lib/rdoc/generator/json_index.rb b/lib/rdoc/generator/json_index.rb 17index c454910..24feab0 100644 18--- a/lib/rdoc/generator/json_index.rb 19+++ b/lib/rdoc/generator/json_index.rb 20@@ -178,7 +178,7 @@ class RDoc::Generator::JsonIndex 21 debug_msg "Writing gzipped search index to %s" % outfile 22 23 Zlib::GzipWriter.open(outfile) do |gz| 24- gz.mtime = File.mtime(search_index_file) 25+ gz.mtime = -1 26 gz.orig_name = search_index_file.basename.to_s 27 gz.write search_index 28 gz.close 29@@ -196,7 +196,7 @@ class RDoc::Generator::JsonIndex 30 debug_msg "Writing gzipped file to %s" % outfile 31 32 Zlib::GzipWriter.open(outfile) do |gz| 33- gz.mtime = File.mtime(dest) 34+ gz.mtime = -1 35 gz.orig_name = dest.basename.to_s 36 gz.write data 37 gz.close 38