New versions of Sphinx started using defusedxml in sphinx.testing.util. This is not part of the "public" API, and so it's not declared as a runtime dependency upstream. However, the lack of dep breaks random revdeps that use sphinx.testing, i.e. most of dev-python/sphinx*. That said, the relevant function is not universally used, so probably the cleanest solution would be to move the import into the function. This affects upstreams too, so let's take it there.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bbc3003717c55edd91b2b8cccaa8355d6e51d5b commit 1bbc3003717c55edd91b2b8cccaa8355d6e51d5b Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 12:19:53 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 12:23:00 +0000 dev-python/sphinx: Add a temporary RDEP on dev-python/defusedxml Add an explicit RDEPEND on dev-python/defusedxml since it is used by sphinx.testing.util, and this breaks a number of reverse dependencies. This is a temporary hack, until we figure out a better solution. Bug: https://bugs.gentoo.org/931580 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/sphinx/{sphinx-7.3.7.ebuild => sphinx-7.3.7-r1.ebuild} | 5 +++++ 1 file changed, 5 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01f1140e16b69956b2d6171e0a503c043296fb14 commit 01f1140e16b69956b2d6171e0a503c043296fb14 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-11 19:05:25 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-11 19:11:01 +0000 dev-python/sphinx: Make dev-python/defusedxml import optional Closes: https://bugs.gentoo.org/931580 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../sphinx/files/sphinx-7.3.7-opt-defusedxml.patch | 34 ++++++++++++++++++++++ ...hinx-7.3.7-r1.ebuild => sphinx-7.3.7-r2.ebuild} | 7 ++--- 2 files changed, 36 insertions(+), 5 deletions(-)