Bug#866166: sagemath: FTBFS with Sphinx 1.5: AttributeError: 'BuildEnvironment' object has no attribute 'citations'
Dmitry Shachnev
mitya57 at debian.org
Tue Jun 27 20:12:17 UTC 2017
Source: sagemath
Version: 7.6-2
Severity: important
User: python-modules-team at lists.alioth.debian.org
Usertags: sphinx1.5
Dear maintainer,
Sagemath fails to build with Sphinx 1.5 (available in experimental, but
pending upload to unstable):
# Sometimes, parts of the docbuild fail with MemoryError or OSError but
# Sage doesn't detect this. Here we detect it and fail the build if so.
! grep Error sage/logs/dochtml.log
AttributeError: 'BuildEnvironment' object has no attribute 'citations'
WARNING: intersphinx inventory '/<<PKGBUILDDIR>>/debian/build/usr/share/doc/sagemath/inventory/en/reference/objects.inv' not fetchable due to <type 'exceptions.IOError'>: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/debian/build/usr/share/doc/sagemath/inventory/en/reference/objects.inv'
AttributeError: 'BuildEnvironment' object has no attribute 'citations'
(repeats multiple times)
debian/rules:90: recipe for target 'check-dochtml-log' failed
This can be fixed by backporting upstream commit [1], but then it fails with
dh_sphinxdoc error:
debian/rules override_dh_sphinxdoc
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_sphinxdoc -XMathJax.js -Xtranslations.js -Xsearchtools.js
dh_sphinxdoc: ignoring unknown JavaScript code: debian/sagemath-doc-ca/usr/share/doc/sagemath/html/ca/intro/_static/mathjax_sage.js
dh_sphinxdoc: ignoring unknown JavaScript code: debian/sagemath-doc-ca/usr/share/doc/sagemath/html/ca/intro/_static/thebe-sage.js
(more harmless warnings)
dh_sphinxdoc: debian/sagemath-doc-en/usr/share/doc/sagemath/html/en/reference/_sources/sage/algebras/affine_nil_temperley_lieb.rst.txt is missing
debian/rules:192: recipe for target 'override_dh_sphinxdoc' failed
This is most probably related to a change in Sphinx [2], which changed how
searchtools.js looks for source files. dh_sphinxdoc now follows the same
logic and expects to find these files in their new locations.
[1]: https://github.com/sagemath/sage/commit/78e671810360d3e0
[2]: https://github.com/sphinx-doc/sphinx/pull/2454
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20170627/0312745d/attachment.sig>
More information about the debian-science-maintainers
mailing list