FS#76972 - [python-sphinx] 6.0.0-1 breaks kernel builds due to removal of sphinx.util.pycompat.execfile_()

Attached to Project: Community Packages
Opened by Pascal Ernster (hardfalcon) - Saturday, 31 December 2022, 02:12 GMT
Last edited by Daniel M. Capella (polyzen) - Thursday, 11 May 2023, 20:03 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Johannes Löthberg (demize)
Daniel M. Capella (polyzen)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

sphinx.util.pycompat.execfile_() has been deprecated since Sphinx 4.0 and has been removed in Sphinx 6.0:

https://www.sphinx-doc.org/en/master/extdev/deprecated.html


This breaks kernel builds that include building the kernel documentation. Excerpt from build run for a customized linux-hardened package:




Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 350, in eval_config_file
exec(code, namespace)
File "/build/linux-hardened/src/linux-6.1.1/Documentation/conf.py", line 39, in <module>
from load_config import loadConfig
File "/build/linux-hardened/src/linux-6.1.1/Documentation/sphinx/load_config.py", line 6, in <module>
from sphinx.util.pycompat import execfile_
ModuleNotFoundError: No module named 'sphinx.util.pycompat'

UPD include/generated/uapi/linux/version.h
make[1]: *** [Documentation/Makefile:96: htmldocs] Error 2
make: *** [Makefile:1791: htmldocs] Error 2
This task depends upon

Closed by  Daniel M. Capella (polyzen)
Thursday, 11 May 2023, 20:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 6.1.4.arch1-1
Comment by Pascal Ernster (hardfalcon) - Saturday, 31 December 2022, 02:14 GMT
The package version in the bug title should have been 6.0.0-1, not 6.0-1.
Comment by loqs (loqs) - Saturday, 31 December 2022, 17:33 GMT
What if you patch the kernel to provide its own implementation of execfile_?
Comment by Pascal Ernster (hardfalcon) - Saturday, 31 December 2022, 20:06 GMT
Thanks, your patch fixes the issue for me. :)
Comment by loqs (loqs) - Wednesday, 04 January 2023, 21:36 GMT Comment by Toolybird (Toolybird) - Thursday, 05 January 2023, 03:36 GMT
Thanks @loqs! So this needs fixing on the kernel side? Adding kernel PM.

Loading...