Source: botan1.10
Version: 1.10.12-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], I noticed
that botan1.10 could not be built reproducibly.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.diff    1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.diff    2016-08-17 00:11:33.311432266 
+0100
@@ -0,0 +1,25 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-08-17
+
+--- botan1.10-1.10.12.orig/configure.py
++++ botan1.10-1.10.12/configure.py
+@@ -169,13 +169,17 @@ class BuildConfigurationInformation(obje
+                                        self.version_minor)
+ 
+     def username(self):
++        if 'SOURCE_DATE_EPOCH' in os.environ:
++            return 'generic-username'
+         return getpass.getuser()
+ 
+     def hostname(self):
++        if 'SOURCE_DATE_EPOCH' in os.environ:
++            return 'generic-hostname'
+         return platform.node()
+ 
+     def timestamp(self):
+-        return time.ctime()
++        return 
time.asctime(time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
+ 
+ """
+ Handle command line options
--- a/debian/patches/series     2016-08-16 23:57:31.696553944 +0100
--- b/debian/patches/series     2016-08-17 00:08:58.854171545 +0100
@@ -2,3 +2,4 @@
 add-powerpc64le-support.diff
 add-arm64-support.patch.diff
 add-or1k-support.diff
+reproducible-build.diff

Reply via email to