Bug#1059013: wxmplot: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Dec 19 10:01:22 GMT 2023


Source: wxmplot
Version: 0.9.58-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-


-------------- next part --------------
--- 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 <lamby at debian.org>
+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


More information about the Reproducible-bugs mailing list