[Debian-med-packaging] Bug#811002: Please help tracking down this issue in test suite [Was: Bug#811002: python-ruffus: FTBFS: sre_constants.error: unbalanced parenthesis at position 2]

Dmitry Shachnev mitya57 at debian.org
Fri Jan 15 12:14:14 UTC 2016


Hi Andreas,

On Fri, Jan 15, 2016 at 12:50:42PM +0100, Andreas Tille wrote:
> Before I upload I would like to ask for some proper advise how to
> deal with
>
>    privacy-breach-uses-embedded-file ... You may use libjs-mathjax package.
>
> lintian errors.  I have done this in d/rules by
>
>    find debian/$(docpkg)/usr/share/doc/$(docpkg)/html -type f -name "*.html" -exec sed -i 's?http://cdn.mathjax.org/mathjax/latest/?/usr/share/javascript/mathjax?g' \{\} \;
>
> which is not reliable since probably due to some change in sphinx the
> expression has changed.  I wonder whether I could elegantly patch the
> file doc/conf.py which has:
>
> # Add any Sphinx extension module names here, as strings. They can be extensions
> # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
> extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo',
>               'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
>
> Is there anything I could do here to use local mathjax from beginning
> instead of patching the resulting docs afterwards?

Yes, add this line to doc/conf.py:

mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'

And add libjs-mathjax to Depends.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160115/dda71310/attachment.sig>


More information about the Debian-med-packaging mailing list