mirror of
https://git.yoctoproject.org/poky
synced 2026-02-28 20:39:39 +01:00
Rebase: ruby/0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch Drop: ruby/0001-fiddle-Use-C11-_Alignof-to-define-ALIGN_OF-when-poss.patch (merged upstream) ruby/0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch ruby/0002-template-Makefile.in-filter-out-f-prefix-map.patch ruby/remove_has_include_macros.patch (code rewritten upstream) (From OE-Core rev: 6e3326838f888912a76e9a1ce77fb76550d27169) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From 5079e678ce2a81416088c04f9123cd8207d5def2 Mon Sep 17 00:00:00 2001
|
|
From: Christian Hofstaedtler <zeha@debian.org>
|
|
Date: Tue, 10 Oct 2017 15:04:34 -0300
|
|
Subject: [PATCH] rdoc: build reproducible documentation
|
|
|
|
- provide a fixed timestamp to the gzip compression
|
|
|
|
Upstream-Status: Backport [debian]
|
|
|
|
Signed-off-by: Antonio Terceiro <terceiro@debian.org>
|
|
Signed-off-by: Christian Hofstaedtler <zeha@debian.org>
|
|
---
|
|
lib/rdoc/generator/json_index.rb | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/rdoc/generator/json_index.rb b/lib/rdoc/generator/json_index.rb
|
|
index c454910..24feab0 100644
|
|
--- a/lib/rdoc/generator/json_index.rb
|
|
+++ b/lib/rdoc/generator/json_index.rb
|
|
@@ -178,7 +178,7 @@ class RDoc::Generator::JsonIndex
|
|
debug_msg "Writing gzipped search index to %s" % outfile
|
|
|
|
Zlib::GzipWriter.open(outfile) do |gz|
|
|
- gz.mtime = File.mtime(search_index_file)
|
|
+ gz.mtime = -1
|
|
gz.orig_name = search_index_file.basename.to_s
|
|
gz.write search_index
|
|
gz.close
|
|
@@ -196,7 +196,7 @@ class RDoc::Generator::JsonIndex
|
|
debug_msg "Writing gzipped file to %s" % outfile
|
|
|
|
Zlib::GzipWriter.open(outfile) do |gz|
|
|
- gz.mtime = File.mtime(dest)
|
|
+ gz.mtime = -1
|
|
gz.orig_name = dest.basename.to_s
|
|
gz.write data
|
|
gz.close
|