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