Source: pelican
Version: 3.6.0-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that pelican could not be built reproducibly.

The attached patch removes randomness from the build system by not
shipping the test suite - they aren't run anyway (although we could
still run them even with this change), they are kind auseless in the
shipped .deb (and they fail anyway), saves ~2MiB in the final .deb
and—from the reproducible point of view—they vary by locale.

Once applied, pelican can be built reproducibly in our reproducible
toolchain.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --no-dereference -urNad pelican.orig/pelican-3.6.0/debian/rules 
pelican/pelican-3.6.0/debian/rules
--- pelican.orig/pelican-3.6.0/debian/rules     2015-06-27 23:20:13.395182476 
+0100
+++ pelican/pelican-3.6.0/debian/rules  2015-06-27 23:48:40.286229105 +0100
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f
 
+# Don't ship tests; unused (see below), useless in production, saves ~2MiB and
+# they vary by locale.
+export PYBUILD_AFTER_INSTALL = rm -rf {destdir}/{install_dir}/pelican/tests
+
 %:
        dh $@ --with python2,sphinxdoc  --buildsystem=pybuild
 

Reply via email to