Source: debci
Version: 1.7.1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that debci could not be built reproducibly.

This is because the documentation generation depends on (non-
determinstic) filesystem ordering.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/Makefile  2017-11-04 20:39:49.834381915 +0000
--- b/Makefile  2017-11-04 20:43:51.787362179 +0000
@@ -59,7 +59,7 @@
 
 doc: public/doc/index.html public/doc/architecture.svg
 
-public/doc/index.html public/doc/jq/jquery.js: README.md docs/*.md $(shell 
find lib -name '*.rb')
+public/doc/index.html public/doc/jq/jquery.js: README.md $(sort $(wildcard 
docs/*.md)) $(shell find lib -name '*.rb' | LC_ALL=C sort)
        $(RM) public/doc/js/jquery.js
        yardoc --markup markdown --output-dir public/doc --main README.md lib - 
$^
        ln -sf ../../jquery.js public/doc/js/jquery.js

Reply via email to