Bug#885853: sasview: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Dec 30 13:48:20 UTC 2017


Source: sasview
Version: 4.2.0~git20171031-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
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 at g"
 	ln -sf /usr/share/javascript/mathjax/ docs/sphinx-docs/build/html/_static/mathjax
 	touch test/__init__.py
 


More information about the debian-science-maintainers mailing list