[python-dtcwt] 02/03: make build reproducible

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Aug 8 19:51:37 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit 6634cf54a66719dc3dc161406a1947c1d66ecbae
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sat Aug 8 20:39:20 2015 +0100

    make build reproducible
    
    use patch provided by Chris Lamb
---
 debian/changelog                        |  3 ++-
 debian/patches/reproducible-build.patch | 20 ++++++++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index aef00fd..1659cfe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 python-dtcwt (0.10.1+dfsg1-2) UNRELEASED; urgency=medium
 
-  * 
+  * Make build reproducible. (Closes: #794005)
+    Thanks to Chris Lamb for providing the patch.
 
  -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Sat, 08 Aug 2015 20:25:15 +0100
 
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..9b31668
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,20 @@
+Description: make build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794005 
+Forwarded: not needed 
+Last-Update: 2015-07-29
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -26,6 +26,10 @@
+ import dtcwt
+ version = release = dtcwt.__version__
+ 
++# Ensure a deterministic build by setting the random seed
++import numpy
++numpy.random.seed(0)
++
+ # If extensions (or modules to document with autodoc) are in another directory,
+ # add these directories to sys.path here. If the directory is relative to the
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
diff --git a/debian/patches/series b/debian/patches/series
index e283f80..afdd7ac 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 use-system-mathjax.patch
+reproducible-build.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list