Skip to content

Commit

Permalink
Make the build reproducible
Browse files Browse the repository at this point in the history
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
  • Loading branch information
thomasgoirand committed Mar 4, 2018
1 parent 3fb0950 commit d2d6c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/lib/element_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2d6c3a

Please sign in to comment.