Source: sphinx
Version: 4.3.1-1
Severity: normal

Hi,

sagemath uses a custom sphinx build where some of the search.html files load 
searchindex.js like this:

  <script src="../searchindex.js" defer></script>

This causes dh_sphinxdoc to throw an error:

dh_sphinxdoc: error: */search.html does not load searchindex.js

This was already discussed in #866166 where we went around this by patching 
sagemath, but the question why this strict check in dh_sphinxdoc is necessary 
was never answered. It was eventually fixed in sagemath but at some point the 
issue returned.

Could you please make the regex in dh_sphinxdoc less strict to accept the line 
used by sagemath? Or at least provide an option to dh_sphinxdoc to allow us to 
ignore this check? At the moment we are not running dh_sphinxdoc at all, which 
causes a ton of lintian warnings.

Best wishes,
Tobias

Reply via email to