Source: sagemath
Version: 9.5-6
Severity: important
Tags: ftbfs
User: python-modules-t...@lists.alioth.debian.org
Usertags: sphinx7.1

Hi,

sagemath fails to build with Sphinx 7.1 and docutils 0.20, both of which
are currently available in experimental.

Relevant part (hopefully):
> make[3]: Entering directory '/<<PKGBUILDDIR>>'
> cd sage && SAGE_ROOT=/<<PKGBUILDDIR>>/sage 
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/<<PKGBUILDDIR>>/sage/build/bin
>  src/doc/bootstrap
> mv sage/src/sage sage/src/sage.bak # Use the installed sage, not the one from 
> the source tree
> cd sage/src && \
> export 
> PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.11/dist-packages \
>        SAGE_SRC=/<<PKGBUILDDIR>>/sage/src \
>        SAGE_DOC_SRC=/<<PKGBUILDDIR>>/sage/src/doc \
>        SAGE_DOC=/<<PKGBUILDDIR>>/sage/src/doc \
>        MATHJAX_DIR=/usr/share/javascript/mathjax \
>        LANG=C && \
> python3 -m sage_docbuild --no-pdf-links --mathjax all html
> /<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py:1728: DeprecationWarning: 
> avoid using "sage --docbuild all html" and "sage --docbuild all pdf"; use 
> "make doc" and "make doc-pdf" instead, if available.
> See https://trac.sagemath.org/31948 for details.
>   builder = getattr(get_builder(name), typ)
> 
> Building reference manual, first pass.
> 
> [reference] writing output...
> [reference] building [inventory]: targets for 1 source files that are out of 
> date
> [reference] updating environment: [new config] 1 added, 0 changed, 0 removed
> [reference] reading sources... [100%] index
> [reference] copying assets... failed
> [reference] Exception occurred:
> [reference]   File 
> "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/ext/inventory_builder.py", line 80, 
> in removed_method_error
> [reference]     raise RuntimeError("This function shouldn't be called in 
> \"%s\" builder"%(self.name))
> [reference] RuntimeError: This function shouldn't be called in "inventory" 
> builder
> [reference] The full traceback has been saved in 
> /tmp/sphinx-err-n_6kvmbs.log, if you want to report the issue to the 
> developers.
> [reference] Please also report this if it was a user error, so that a better 
> error message can be provided next time.
> [reference] A bug report can be filed in the tracker at 
> <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
> Error building the documentation.
> Traceback (most recent call last):
>   File "<frozen runpy>", line 198, in _run_module_as_main
>   File "<frozen runpy>", line 88, in _run_code
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__main__.py", line 2, in 
> <module>
>     main()
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 1729, in 
> main
>     builder()
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 348, in 
> _wrapper
>     getattr(get_builder(document), 'inventory')(*args, **kwds)
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 535, in 
> _wrapper
>     self._build_bibliography(format, *args, **kwds)
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 510, in 
> _build_bibliography
>     build_many(build_ref_doc, references)
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 299, in 
> build_many
>     _build_many(target, args, processes=processes)
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/utils.py", line 289, in 
> build_many
>     raise worker_exc.original_exception
> OSError: Exception occurred:
> 
>     Note: incremental documentation builds sometimes cause spurious
>     error messages. To be certain that these are real errors, run
>     "make doc-clean doc-uninstall" first and try again.
> make[3]: *** [debian/rules:84: override_dh_auto_build-indep] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/07/30/exp/sagemath_9.5-6_unstable_sphinx-exp.log

Please see [1] for Sphinx changelog and [2] for Docutils changelog.

Also see [3] for the list of deprecated/removed APIs in Sphinx and possible
alternatives to them.

Some notable changes in Sphinx 6 and Sphinx 7:

- Sphinx no longer includes jquery.js and underscore.js by default.
  Please use python3-sphinxcontrib.jquery package if you are using a custom
  template and it still needs jquery.

- The setup.py build_sphinx command was removed. Please instead call
  sphinx-build or "python3 -m sphinx" directly.

- For packages using the extlinks extension, the caption should contain
  exactly one "%s" placeholder (if caption is not None).

In case you have questions, please Cc sph...@packages.debian.org on reply.

[1]: https://www.sphinx-doc.org/en/master/changes.html
[2]: 
https://repo.or.cz/docutils.git/blob/refs/tags/docutils-0.20.1:/RELEASE-NOTES.txt
[3]: 
https://www.sphinx-doc.org/en/master/extdev/deprecated.html#dev-deprecated-apis

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=sphinx7.1;users=python-modules-t...@lists.alioth.debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=sphinx7.1&fusertaguser=python-modules-t...@lists.alioth.debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

Reply via email to