[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1042601: python-apt: FTBFS with Sphinx 7.1, docutils 0.20: error: invalid command 'build_sphinx'



Source: python-apt
Version: 2.6.0
Severity: important
Tags: ftbfs
User: python-modules-team@lists.alioth.debian.org
Usertags: sphinx7.1

Hi,

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

Relevant part (hopefully):
> x86_64-linux-gnu-g++ -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-write-strings "-DDATE=\"May 22 2023\"" -DTIME=\"14:14:05\" -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-cpython-311/python/apt_instmodule.o build/temp.linux-x86_64-cpython-311/python/arfile.o build/temp.linux-x86_64-cpython-311/python/generic.o build/temp.linux-x86_64-cpython-311/python/tarfile.o -L/usr/lib/x86_64-linux-gnu -lapt-pkg -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_apt/build/apt_inst.cpython-311-x86_64-linux-gnu.so
> running build_i18n
> intltool-update -p -g python-apt
> msgfmt po/tl.po -o build/mo/tl/LC_MESSAGES/python-apt.mo
> msgfmt po/es.po -o build/mo/es/LC_MESSAGES/python-apt.mo
> msgfmt po/ne.po -o build/mo/ne/LC_MESSAGES/python-apt.mo
> msgfmt po/be.po -o build/mo/be/LC_MESSAGES/python-apt.mo
> msgfmt po/csb.po -o build/mo/csb/LC_MESSAGES/python-apt.mo
> msgfmt po/ca.po -o build/mo/ca/LC_MESSAGES/python-apt.mo
> msgfmt po/cs.po -o build/mo/cs/LC_MESSAGES/python-apt.mo
> msgfmt po/lv.po -o build/mo/lv/LC_MESSAGES/python-apt.mo
> msgfmt po/it.po -o build/mo/it/LC_MESSAGES/python-apt.mo
> msgfmt po/mk.po -o build/mo/mk/LC_MESSAGES/python-apt.mo
> msgfmt po/hu.po -o build/mo/hu/LC_MESSAGES/python-apt.mo
> msgfmt po/en_CA.po -o build/mo/en_CA/LC_MESSAGES/python-apt.mo
> msgfmt po/th.po -o build/mo/th/LC_MESSAGES/python-apt.mo
> msgfmt po/zh_CN.po -o build/mo/zh_CN/LC_MESSAGES/python-apt.mo
> msgfmt po/bn.po -o build/mo/bn/LC_MESSAGES/python-apt.mo
> msgfmt po/lt.po -o build/mo/lt/LC_MESSAGES/python-apt.mo
> msgfmt po/zh_HK.po -o build/mo/zh_HK/LC_MESSAGES/python-apt.mo
> msgfmt po/gl.po -o build/mo/gl/LC_MESSAGES/python-apt.mo
> msgfmt po/sq.po -o build/mo/sq/LC_MESSAGES/python-apt.mo
> msgfmt po/ru.po -o build/mo/ru/LC_MESSAGES/python-apt.mo
> msgfmt po/de.po -o build/mo/de/LC_MESSAGES/python-apt.mo
> msgfmt po/da.po -o build/mo/da/LC_MESSAGES/python-apt.mo
> msgfmt po/fi.po -o build/mo/fi/LC_MESSAGES/python-apt.mo
> msgfmt po/ja.po -o build/mo/ja/LC_MESSAGES/python-apt.mo
> msgfmt po/id.po -o build/mo/id/LC_MESSAGES/python-apt.mo
> msgfmt po/nb.po -o build/mo/nb/LC_MESSAGES/python-apt.mo
> msgfmt po/ka.po -o build/mo/ka/LC_MESSAGES/python-apt.mo
> msgfmt po/nl.po -o build/mo/nl/LC_MESSAGES/python-apt.mo
> msgfmt po/pl.po -o build/mo/pl/LC_MESSAGES/python-apt.mo
> msgfmt po/pt_BR.po -o build/mo/pt_BR/LC_MESSAGES/python-apt.mo
> msgfmt po/he.po -o build/mo/he/LC_MESSAGES/python-apt.mo
> msgfmt po/ar.po -o build/mo/ar/LC_MESSAGES/python-apt.mo
> msgfmt po/zh_TW.po -o build/mo/zh_TW/LC_MESSAGES/python-apt.mo
> msgfmt po/eo.po -o build/mo/eo/LC_MESSAGES/python-apt.mo
> msgfmt po/sk.po -o build/mo/sk/LC_MESSAGES/python-apt.mo
> msgfmt po/oc.po -o build/mo/oc/LC_MESSAGES/python-apt.mo
> msgfmt po/en_AU.po -o build/mo/en_AU/LC_MESSAGES/python-apt.mo
> msgfmt po/fr.po -o build/mo/fr/LC_MESSAGES/python-apt.mo
> msgfmt po/vi.po -o build/mo/vi/LC_MESSAGES/python-apt.mo
> msgfmt po/pt.po -o build/mo/pt/LC_MESSAGES/python-apt.mo
> msgfmt po/bg.po -o build/mo/bg/LC_MESSAGES/python-apt.mo
> msgfmt po/ro.po -o build/mo/ro/LC_MESSAGES/python-apt.mo
> msgfmt po/uk.po -o build/mo/uk/LC_MESSAGES/python-apt.mo
> msgfmt po/ko.po -o build/mo/ko/LC_MESSAGES/python-apt.mo
> msgfmt po/ku.po -o build/mo/ku/LC_MESSAGES/python-apt.mo
> msgfmt po/tr.po -o build/mo/tr/LC_MESSAGES/python-apt.mo
> msgfmt po/sr.po -o build/mo/sr/LC_MESSAGES/python-apt.mo
> msgfmt po/sv.po -o build/mo/sv/LC_MESSAGES/python-apt.mo
> msgfmt po/hr.po -o build/mo/hr/LC_MESSAGES/python-apt.mo
> msgfmt po/el.po -o build/mo/el/LC_MESSAGES/python-apt.mo
> msgfmt po/sl.po -o build/mo/sl/LC_MESSAGES/python-apt.mo
> PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_apt/build python3 setup.py build_sphinx
> W: [python3.1] Sphinx import error.
> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>    or: setup.py --help [cmd1 cmd2 ...]
>    or: setup.py --help-commands
>    or: setup.py cmd --help
> 
> error: invalid command 'build_sphinx'
> make[1]: *** [debian/rules:21: override_dh_auto_build] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/07/30/exp/python-apt_2.6.0_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 sphinx@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-team@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-team@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 to: