[DRE-commits] [yard] 01/02: Remove timestamps for reproducible builds
zeha at debian.org
zeha at debian.org
Wed Apr 8 15:32:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
zeha pushed a commit to branch master
in repository yard.
commit 47820119ea6e79c459c771127e2d388f6e36c093
Author: Christian Hofstaedtler <zeha at debian.org>
Date: Wed Apr 8 17:28:28 2015 +0200
Remove timestamps for reproducible builds
Closes: #776648
---
debian/patches/no-timestamps.patch | 29 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 30 insertions(+)
diff --git a/debian/patches/no-timestamps.patch b/debian/patches/no-timestamps.patch
new file mode 100644
index 0000000..b2b4bb0
--- /dev/null
+++ b/debian/patches/no-timestamps.patch
@@ -0,0 +1,29 @@
+Description: remove timestamps where possible, for reproducible builds
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776648
+Last-Update: 2015-04-08
+
+diff --git a/lib/yard/i18n/pot_generator.rb b/lib/yard/i18n/pot_generator.rb
+index df04614..c790ee0 100644
+--- a/lib/yard/i18n/pot_generator.rb
++++ b/lib/yard/i18n/pot_generator.rb
+@@ -158,7 +158,7 @@ EOH
+ end
+
+ def current_time
+- @current_time ||= Time.now
++ @current_time ||= Time.gm(0)
+ end
+
+ def generate_pot_creation_date_value
+diff --git a/templates/default/layout/html/footer.erb b/templates/default/layout/html/footer.erb
+index e57a0f2..5baa1ce 100644
+--- a/templates/default/layout/html/footer.erb
++++ b/templates/default/layout/html/footer.erb
+@@ -1,5 +1,5 @@
+ <div id="footer">
+- Generated on <%= Time.now.strftime("%c") %> by
++ Generated by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ <%= YARD::VERSION %> (ruby-<%= RUBY_VERSION %>).
+ </div>
diff --git a/debian/patches/series b/debian/patches/series
index 0c7401b..31ce620 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ remove_rubygems_and_path_manipulation_from_spec.patch
deactivate_failing_test_with_sbuild.patch
move_yard_config_to_tmp_in_spec.patch
fix_template_root_var.patch
+no-timestamps.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/yard.git
More information about the Pkg-ruby-extras-commits
mailing list