Source: python-os-faults
Version: 0.2.1-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
python-os-faults could not be built reproducibly.

This is because the documentation runs "os-inject-fault --help" (etc)
and embeds the output. However,, as this would fail to execute due to
the lack of the "os_faults" Python module being available, it would
result in a stack trace that included the (varying) absolute build
path being added to the documentation itself.

It is likely you did not see this locally during development as you
had "os_faults" installed already.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2019-07-17 09:33:22.956981175 -0300
--- b/debian/rules      2019-07-17 09:45:36.913524618 -0300
@@ -26,7 +26,7 @@
 
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
-       PATH=$$PATH:$(CURDIR)/debian/bin PYTHON=python3 python3 -m sphinx -b 
html doc/source 
debian/python-os-faults-doc/usr/share/doc/python-os-faults-doc/html
+       PATH=$$PATH:$(CURDIR)/debian/bin PYTHON=python3 PYTHONPATH=$(CURDIR) 
python3 -m sphinx -b html doc/source 
debian/python-os-faults-doc/usr/share/doc/python-os-faults-doc/html
        dh_sphinxdoc
 endif
 

Reply via email to