This is an automated email from the git hooks/post-receive script.

fgeyer pushed a commit to branch master
in repository bam.

commit 632895751a0de7ecefa215a299c580beac888e33
Author: Felix Geyer <[email protected]>
Date:   Thu Oct 20 19:14:32 2016 +0200

    Make the documentation build reproducible. (Closes: #834160)
    
    * Make the documentation build reproducible. (Closes: #834160)
      - Add reproducible-build.diff
      - Thanks to Chris Lamb for the patch.
---
 debian/changelog                       |  8 ++++++++
 debian/patches/reproducible-build.diff | 30 ++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 39 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 95d038c..1cbaa18 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+bam (0.4.0-5) unstable; urgency=medium
+
+  * Make the documentation build reproducible. (Closes: #834160)
+    - Add reproducible-build.diff
+    - Thanks to Chris Lamb for the patch.
+
+ -- Felix Geyer <[email protected]>  Thu, 20 Oct 2016 19:10:16 +0200
+
 bam (0.4.0-4) unstable; urgency=medium
 
   * Rename use-debian-liblua.diff to make-unix.diff and:
diff --git a/debian/patches/reproducible-build.diff 
b/debian/patches/reproducible-build.diff
new file mode 100644
index 0000000..29b155a
--- /dev/null
+++ b/debian/patches/reproducible-build.diff
@@ -0,0 +1,30 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2016-08-12
+
+--- bam-0.4.0.orig/scripts/tinydoc.py
++++ bam-0.4.0/scripts/tinydoc.py
+@@ -1,5 +1,5 @@
+ 
+-import re, time
++import re, time, os
+ 
+ class Node:
+       def __init__(self, name):
+@@ -167,11 +167,15 @@ class HTMLOutput(Output):
+                       %s
+               ''' %(img, self.docinfo.name, self.docinfo.note, 
self.docinfo.copyright)
+       def render_end(self):
++              try:
++                      now = time.gmtime(int(os.environ['SOURCE_DATE_EPOCH']))
++              except KeyError:
++                      now = time.localtime()
+               return '''
+                       <hr/>
+                       <small>Generated at %s.</small>
+                       </body>
+-              ''' % (time.asctime())
++              ''' % (time.asctime(now))
+ 
+       def index_begin(self): return '<h2>Contents</h2><ul>'
+       def index_end(self): return '</ul><hr/>'
diff --git a/debian/patches/series b/debian/patches/series
index bb83b08..48093a5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ make-unix.diff
 test-error-exit-code.diff
 fix-ftbfs-kfreebsd.diff
 fix-ftbfs-tests-fpic.diff
+reproducible-build.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/bam.git

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to