Source: python-diskimage-builder Version: 2.10.1-2 Severity: wishlist Tags: patch User: [email protected] Usertags: randomness X-Debbugs-Cc: [email protected]
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 `. `'` [email protected] / chris-lamb.co.uk `-
--- 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 <[email protected]> +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

