On 2024-03-18, Chris Lamb wrote: > Whilst working on the Reproducible Builds effort [0], we noticed that > mpl-sphinx-theme could not be built reproducibly. > > This is because it embedded the build date in the documentation: ... > --- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 > +0100 > --- b/debian/patches/reproducible-build.patch 2024-03-18 12:59:19.650123651 > +0000 > @@ -0,0 +1,28 @@ > +Description: Make the build reproducible > +Author: Chris Lamb <la...@debian.org> > +Last-Update: 2024-03-18 > + > +--- mpl-sphinx-theme-3.5.0.orig/docs/conf.py > ++++ mpl-sphinx-theme-3.5.0/docs/conf.py > +@@ -1,5 +1,12 @@ > ++import os > ++import time > + import datetime > + > ++build_date = datetime.datetime.fromtimestamp( > ++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time())), > ++ tz=datetime.timezone.utc, > ++) > ++ > + # Configuration file for the Sphinx documentation builder for > + # matplotlib projects. > + > +@@ -10,7 +17,7 @@ is_release_build = tags.has('release') > + > + project = "Matplotlib Sphinx Theme" > + copyright = ( > +- f"2012 - {datetime.datetime.now().year} The Matplotlib development team" > ++ f"2012 - {build_date.year} The Matplotlib development team" > + ) > + author = "Matplotlib Developers" > + > --- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 > --- b/debian/patches/series 2024-03-18 12:59:16.218124536 +0000 > @@ -0,0 +1 @@ > +reproducible-build.patch
FWIW, I uploaded an NMU fixing this based on your earlier patch, but it was reverted when the maintainer attempted to orphan the package without incorporating the NMU... https://bugs.debian.org/1005826 https://bugs.debian.org/1065042 live well, vagrant
signature.asc
Description: PGP signature