On 2023-12-19, Chris Lamb wrote: > Whilst working on the Reproducible Builds effort [0], we noticed that > wxmplot could not be built reproducibly. > > This is because it embedded the current build date in the manual > pages. Patch attached that seeds this value from SOURCE_DATE_EPOCH if > available.
The patch still applies, and works around the problem, although technically... I suspect the copyright date for the upstream contents may not always be the same as the date of the latest debian/changelog entry, which is where SOURCE_DATE_EPOCH is set from when building Debian packages... That said... I would like upload an NMU with this workaround applied sometime in the next week or two. live well, vagrant > --- a/debian/patches/0003-reproducible-build.patch 1970-01-01 > 01:00:00.000000000 +0100 > --- b/debian/patches/0003-reproducible-build.patch 2023-12-19 > 09:55:20.149244757 +0000 > @@ -0,0 +1,29 @@ > +Description: Make the build reproducible > +Author: Chris Lamb <[email protected]> > +Last-Update: 2023-12-19 > + > +--- wxmplot-0.9.58.orig/doc/conf.py > ++++ wxmplot-0.9.58/doc/conf.py > +@@ -7,15 +7,20 @@ > + # serve to show the default. > + > + import os > ++import time > + import sys > +-from datetime import date > + > + from packaging.version import parse as version_parse > + > + import wxmplot > + > ++date_str = time.strftime( > ++ "%Y-%m-%d", > ++ time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))) > ++) > ++ > + project = 'wxmplot' > +-copyright = f'{date.today()}, Matthew Newville, The University of Chicago' > ++copyright = f'{date_str}, Matthew Newville, The University of Chicago' > + > + release = version_parse(wxmplot.__version__).public > + > --- a/debian/patches/series 2023-12-19 09:51:50.852805288 +0000 > --- b/debian/patches/series 2023-12-19 09:55:19.281243090 +0000 > @@ -1,2 +1,3 @@ > sphinx_support_mathjax.patch > 0002-removed-sphinxcontrib.video-extension.patch > +0003-reproducible-build.patch
signature.asc
Description: PGP signature

