Bug#1067098: mpl-sphinx-theme: please make the build reproducible
On 2024-03-27, Andreas Tille wrote: > sorry about your work was lost. I confirm the new upstream > version in Git contains the patch. Unfortunately it needs > new dependencies. If it might help you I could upload your > NMU again. Not urgent, glad to see it is pending again! live well, vagrant signature.asc Description: PGP signature
Bug#1067098: mpl-sphinx-theme: please make the build reproducible
Control: tags -1 pending thanks Hi Vagrant, sorry about your work was lost. I confirm the new upstream version in Git contains the patch. Unfortunately it needs new dependencies. If it might help you I could upload your NMU again. Kind regards Andreas. -- https://fam-tille.de
Bug#1067098: mpl-sphinx-theme: please make the build reproducible
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.0 > +0100 > --- b/debian/patches/reproducible-build.patch 2024-03-18 12:59:19.650123651 > + > @@ -0,0 +1,28 @@ > +Description: Make the build reproducible > +Author: Chris Lamb > +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.0 +0100 > --- b/debian/patches/series 2024-03-18 12:59:16.218124536 + > @@ -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
Bug#1067098: mpl-sphinx-theme: please make the build reproducible
Source: mpl-sphinx-theme Version: 3.5.0-2 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 mpl-sphinx-theme could not be built reproducibly. This is because it embedded the build date in the documentation: │ │ │ ├── ./usr/share/doc/python-mpl-sphinx-theme-doc/html/genindex.html │ │ │ │ @@ -184,15 +184,15 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - Copyright 2024 - 2024 The Matplotlib development team. │ │ │ │ + Copyright 2024 - 2025 The Matplotlib development team. │ │ │ │ (Etc.) Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `- --- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.0 +0100 --- b/debian/patches/reproducible-build.patch 2024-03-18 12:59:19.650123651 + @@ -0,0 +1,28 @@ +Description: Make the build reproducible +Author: Chris Lamb +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.0 +0100 --- b/debian/patches/series 2024-03-18 12:59:16.218124536 + @@ -0,0 +1 @@ +reproducible-build.patch