#1135303 sphinx: New version breaks a bunch of packages

Package:
src:sphinx
Source:
src:sphinx
Submitter:
Santiago Vila
Date:
2026-05-09 19:41:01 UTC
Severity:
normal
Tags:
#1135303#5
Date:
2026-04-30 23:32:12 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, many packages using sphinx
do not build from source anymore.

For example, bme280 fails in this way:

Traceback
=========

       File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/_dynamic/_loader.py", line 204, in _make_props_from_impo
rted_object
         _obj___module__=obj.__name__,
                         ^^^^^^^^^^^^
     AttributeError: '_const' object has no attribute '__name__'. Did you mean: '__ne__'?


The full traceback has been saved in:
/tmp/sphinx-err-u1f23xzf.log

Full build log available here:

https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/bme280_0.2.4-3.rbuild.log.gz

The affected packages are:

src:bme280
src:buildbot
src:fmtlib
src:imath
src:jupyter-server
src:khard
src:libmemcached
src:pythondialog
src:python-odoorpc
src:python-treq
src:python-validate-pyproject
src:sentry-python
src:sphinxcontrib-emojicodes
src:tombo
src:votca

I've triggered rebuilds for all of them in reproducible-builds,
and I expect all of them to fail in similar ways.

This can be either a bug in sphinx, or a bug in the individual packages, but I don't
really know which one is the case.

If this is a bug in sphinx, please add an "affects" on all the above src packages, so that
we know that sphinx is the reason we can't currently build them from source.

On the other hand, if this really is a bug in the affected packages, please clone this
bug as many times as required, reassign to the affected packages, and (if you can) give
the maintainers some hint about the proper way to fix the issue.

Thanks.

#1135303#10
Date:
2026-05-01 22:33:55 UTC
From:
To:
Ok, I'm going to assume that this is a bug in the affected packages,
but I will file the individual reports myself.

Feel free to keep the severity at serious (temporarily) if you want
the breakage not to propagate to testing yet, or not, at your
option.

Thanks.

#1135303#13
Date:
2026-05-02 07:52:05 UTC
From:
To:
Hi Santiago!

Thank you for doing this.

I would also assume that they are bugs in the affected packages. Some of
them may be bugs in Sphinx, but I searched for some of the errors in the
upstream bug tracker and did not find anything.

Also the FTBFS of python-validate-pyproject seems to be caused by
python3-sphinxemoji being incompatible with Sphinx 9.

I will try to fix some of those bugs myself.

OK, let's keep this bug serious for a week.

When I was preparing this upload, I fixed all reverse dependencies that
had failed autopkgtests, but I did not do a test rebuild this time.

#1135303#18
Date:
2026-05-09 19:38:55 UTC
From:
To:
Hi,

A week has passed, so downgrading the severity to important. Sphinx already
migrated anyway somehow, so there is no point in keeping it serious.