Created attachment 729932 [details] cmake build log When enabling USE=doc I get the following error: cd /home/.root/var/tmp/portage/dev-util/cmake-3.18.5/work/cmake-3.18.5_build/Utilities/Sphinx && /usr/bin/sphinx-build -c /home/.root/var/tmp/portage/dev-util/cmake-3.18.5/work/cmake-3.18.5_build/Utilities/Sphinx -d /home/.root/var/tmp/portage/dev-util/cmake-3.18.5/work/cmake-3.18.5_build/Utilities/Sphinx/doctrees -b html /home/.root/var/tmp/portage/dev-util/cmake-3.18.5/work/cmake-3.18.5/Help /home/.root/var/tmp/portage/dev-util/cmake-3.18.5/work/cmake-3.18.5_build/Utilities/Sphinx/html > build-html.log Extension error: No puede importar la extensión cmake (exception: cannot import name 'htmlescape' from 'sphinx.util.pycompat' (/usr/lib/python3.9/site-packages/sphinx/util/pycompat.py)) (I have no idew ahy this error is in spanish despite LC_MESSAGES=C in make.conf, it says "can't import cmake extension") ===================================== $ emerge -pqv cmake [ebuild R ] dev-util/cmake-3.18.5 USE="doc* ncurses -emacs -qt5 -test" $ emerge -pqv sphinx [ebuild R ] dev-python/sphinx-4.0.3 USE="-doc -latex -test" PYTHON_TARGETS="python3_9 (-pypy3) (-python3_10) -python3_8"
Created attachment 729934 [details] cmake emerge --info
Apparently sphinx 4.x breaks this ebuild, it needs sphinx 3.x.
*** This bug has been marked as a duplicate of bug 789375 ***
The error is completely different and seems unrelated. The patch referenced in the "duplicate" bug doesn't exist in the repository anymore and was never applied to the version of cmake that's being reported as broken. Reopening.
Because the patch is upstream. Please test with cmake-3.20.5.
This is cmake-3.18.5, which is currently in the repository and marked stable, and I can confirm it doesn't work as-is with USE=doc... 3.20.5 works fine with sphinx-4, yes.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7edefc2a2392e483ec628386fea4dcbe235f35a2 commit 7edefc2a2392e483ec628386fea4dcbe235f35a2 Author: Esteve Varela Colominas <esteve.varela@gmail.com> AuthorDate: 2021-08-05 09:46:51 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-08-05 14:36:45 +0000 dev-util/cmake: Require sphinx <4 for cmake 3.18 or lower This was tested, sphinx 3.x still works for the newer cmake versions. Closes: https://bugs.gentoo.org/806318 Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/21890 Signed-off-by: Sam James <sam@gentoo.org> dev-util/cmake/cmake-3.18.5.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)