Source: guiqwt
Version: 3.0.1-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed that
guiqwt could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, guiqwt can be built reproducibly using our reproducible
toolchain.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/doc/conf.py b/doc/conf.py
index ebb5e52..a2a55a9 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -45,8 +45,10 @@ master_doc = 'index'
 
 # General information about the project.
 project = 'guiqwt'
+import os
 import time
-this_year = time.strftime("%Y", time.localtime())
+import datetime
+this_year = 
datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', 
time.time()))).strftime("%Y")
 copyright = "2009-%s, CEA - Commissariat à l'Energie Atomique et aux Energies 
Alternatives" % this_year
 
 # The version info for the project you're documenting, acts as replacement for
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to