Source: sasview
Version: 4.2.0~git20171031-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

Hi,

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

This is because of absolute build paths in the documentation.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git a/debian/rules b/debian/rules
index 694b22c..4b07bdd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -34,6 +34,9 @@ override_dh_auto_build:
        # reassemble the docs from dependent packages to make the overall
        ./debian/fetchdocs
        python ./docs/sphinx-docs/build_sphinx.py
+       # Strip absolute build paths from HTML documentation
+       find -type f -name '*.html' -print0 | \
+               xargs -0r sed -i -e "s@$(CURDIR)/`echo build/lib.*`@path/to@g"
        ln -sf /usr/share/javascript/mathjax/ 
docs/sphinx-docs/build/html/_static/mathjax
        touch test/__init__.py
 
-- 
debian-science-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to