[Python-modules-team] Bug#841141: /usr/bin/dh_sphinxdoc: dh_sphinxdoc doesn't recognise search pages with nonstandard paths

Ximin Luo infinity0 at debian.org
Fri Oct 21 17:06:00 UTC 2016


Dmitry Shachnev:
> Hi Ximin,
> 
> On Tue, Oct 18, 2016 at 01:42:56AM +0200, Ximin Luo wrote:
>> SageMath generates docs with search indexes like this:
>>
>>     jQuery(function() { Search.loadIndex("../searchindex.js"); });
>>
>> This is not recognised by dh_sphinxdoc. If you change
>>
>> 192: my $loads_searchindex = $search =~ m/\QjQuery(function() { Search.loadIndex("searchindex.js"); });\E/;
>>
>> to 
>>
>> 192: my $loads_searchindex = $search =~ m/\QjQuery(function() { Search.loadIndex("\E([^\/]*\/)?\Qsearchindex.js"); });\E/;
>>
>> it will fix the problem.
> 
> Thanks for catching this. According to the template, the path can be
> arbitrary, so I went further and disabled the path check at all (left
> only the check for loadIndex(...) call).
> 
> Do you want me to do a new upload now, or this can wait?
> 

Hey Dmitry, thanks for the quick response! We're not in a rush to release SageMath yet, so this is not super-urgent for us. However "soon" (say, < 1 month) would be nice - we do have to edit /usr/bin/dh_sphinxdoc manually in the meantime.

Otherwise the build fails, as opposed to "just" generating a package with missing functionality. I'm a bit hesistant to add "|| true" since that would hide other stuff.

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Python-modules-team mailing list