[PKG-Openstack-devel] Bug#892020: python-diskimage-builder: please make the build reproducible

Chris Lamb lamby at debian.org
Sun Mar 4 08:54:14 UTC 2018


Source: python-diskimage-builder
Version: 2.10.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that python-diskimage-builder could not be built reproducibly as
it iterates over XML elements in a non-deterministic order when
generating the documentation.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch	2018-03-04 08:47:14.158753284 +0000
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2018-03-04
+
+--- python-diskimage-builder-2.10.1.orig/doc/lib/element_deps.py
++++ python-diskimage-builder-2.10.1/doc/lib/element_deps.py
+@@ -33,7 +33,7 @@ def make_dep_list(title, deps):
+     lines = []
+     lines.append(title)
+     lines.append("+" * len(title))
+-    for dep in deps:
++    for dep in sorted(deps):
+         lines.append("* :doc:`../%s/README`" % dep)
+     lines.append('')  # careful to end with a blank line
+     return lines
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2018-03-04 08:47:13.238731889 +0000
@@ -0,0 +1 @@
+reproducible-build.patch


More information about the Openstack-devel mailing list