Source: python-fluids Version: 1.0.9-1 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 python-fluids could not be built reproducibly. Patch attached. [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 2022-01-26 07:56:28.105224591 -0800 @@ -0,0 +1,21 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2022-01-26 + +--- python-fluids-1.0.9.orig/docs/conf.py ++++ python-fluids-1.0.9/docs/conf.py +@@ -77,8 +77,13 @@ master_doc = 'index' + + # General information about the project. + project = u'Fluids' ++import os ++import time + import datetime +-copyright = u'2016 - %s, Caleb Bell <caleb.andrew.b...@gmail.com>' %datetime.datetime.now().year ++build_date = datetime.datetime.utcfromtimestamp( ++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time())) ++) ++copyright = u'2016 - %s, Caleb Bell <caleb.andrew.b...@gmail.com>' % build_date.year + + # The version info for the project you're documenting, acts as replacement for + # |version| and |release|, also used in various other places throughout the --- a/debian/patches/series 2022-01-26 07:44:49.337938744 -0800 --- b/debian/patches/series 2022-01-26 07:56:27.369225246 -0800 @@ -2,3 +2,4 @@ remove-shields-dot-io-images.patch use-debian-mathjax.patch fix-online-tests.patch +reproducible-build.patch