mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 19:23:03 +01:00
Apply some changes on the Ruby makefiles in order to fix the reproducibility: - use a fixed timestamp, - sort linked objects, - doesn't use the current date, - and use UTC date. [YOCTO #14268] (From OE-Core rev: 59b07ab51ff932a4632a31675445ba4192bae36b) Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From: Christian Hofstaedtler <zeha@debian.org>
|
|
Date: Tue, 10 Oct 2017 15:04:34 -0300
|
|
Subject: 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 ++--
|
|
lib/rdoc/rdoc.rb | 2 +-
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/lib/rdoc/generator/json_index.rb
|
|
+++ b/lib/rdoc/generator/json_index.rb
|
|
@@ -178,7 +178,7 @@
|
|
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 @@
|
|
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
|