Source: ruby-pgplot Version: 0.2.0-3 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0] we noticed that ruby-pgplot could not be built reproducibly. This is because it writes a timezone-dependent date to the docs: │ │ │ │ │ - <div>Last update: Apr 14 2018</div> │ │ │ │ │ + <div>Last update: Apr 16 2018</div> Patch attached that converts this value to UTC first. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1969-12-31 16:00:00.000000000 -0800 --- b/debian/patches/reproducible-build.patch 2023-02-10 08:00:17.285056814 -0800 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2023-02-10 + +--- ruby-pgplot-0.2.0.orig/doc/myrd2html.rb ++++ ruby-pgplot-0.2.0/doc/myrd2html.rb +@@ -13,7 +13,7 @@ while /^--/ =~ ARGV[0] + end + + rdfile = ARGV.shift +-$date = File.mtime(rdfile).strftime("%b %d %Y") ++$date = File.mtime(rdfile).utc.strftime("%b %d %Y ") + + case $lang + when 'ja' --- a/debian/patches/series 1969-12-31 16:00:00.000000000 -0800 --- b/debian/patches/series 2023-02-10 07:58:18.020123036 -0800 @@ -0,0 +1 @@ +reproducible-build.patch