Source: cvs2svn Version: 2.4.0-2 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi, Whilst working on the "reproducible builds" effort [0], we noticed that cvs2svn could not be built reproducibly. Patch attached. It can probably be sent upstream. [0] https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1970-01-01 02:00:00.000000000 +0200 --- b/debian/patches/reproducible-build.patch 2016-07-14 10:00:16.906179422 +0200 @@ -0,0 +1,33 @@ +Author: Chris Lamb <la...@debian.org> +Last-Update: 2016-07-14 + +--- cvs2svn-2.4.0.orig/cvs2svn_lib/man_writer.py ++++ cvs2svn-2.4.0/cvs2svn_lib/man_writer.py +@@ -93,7 +93,7 @@ class ManWriter(object): + '.TH %s "%s" "%s" "%s" "%s"\n' % ( + self.parser.get_prog_name().upper(), + self.section, +- self.date.strftime('%b %d, %Y'), ++ self.date.strftime('%Y-%m-%d'), + self.source, + self.manual, + ) +--- cvs2svn-2.4.0.orig/cvs2svn_lib/run_options.py ++++ cvs2svn-2.4.0/cvs2svn_lib/run_options.py +@@ -16,6 +16,7 @@ + + """This module contains classes to set common cvs2xxx run options.""" + ++import os + import sys + import re + import optparse +@@ -884,7 +885,7 @@ class RunOptions(object): + f = codecs.getwriter('utf_8')(sys.stdout) + writer = ManWriter(parser, + section='1', +- date=datetime.date.today(), ++ date=datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))).date(), + source='Version %s' % (VERSION,), + manual='User Commands', + short_desc=self.short_desc, --- a/debian/patches/series 2016-07-14 09:50:20.779343614 +0200 --- b/debian/patches/series 2016-07-14 10:00:05.066043395 +0200 @@ -1,2 +1,3 @@ fix-co-dashv-obsolete.patch update_gcs_email.patch +reproducible-build.patch
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds