From d2d6c3a6a74fdeb58b319559694336c6fd896a4f Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Sun, 4 Mar 2018 18:11:54 +0100 Subject: [PATCH] Make the build reproducible Whilst working on the Reproducible Builds effort [0], the team noticed that diskimage-builder could not be built reproducibly as it iterates over XML elements in a non-deterministic order when generating the documentation. This patch sorts the elements, and is a forward of the patch sent to the Debian BTS [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/892020 Change-Id: I40011514a135bc50383b072ab83c7f91689bad5a --- doc/lib/element_deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lib/element_deps.py b/doc/lib/element_deps.py index b9ca0bb3..fc9028e7 100644 --- a/doc/lib/element_deps.py +++ b/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