Bug 2329903

Summary: tbb fails to build with sphinx 8.x: ERROR: Invalid value `'/usr/share/doc/python3-docs/html/objects.inv'` in intersphinx_mapping['https://docs.python.org/'].
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: tbbAssignee: Jonathan Wakely <jwakely>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: codonell, jwakely, loganjerry, me
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tbb-2022.0.0-2.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-13 14:38:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2275375    

Description Tomáš Hrnčiar 2024-12-02 11:35:40 UTC
tbb fails to build with sphinx 8.x in Fedora 42 (currently Rawhide).

The issue detected:
```
ERROR: Invalid value `'/usr/share/doc/python3-docs/html/objects.inv'` in intersphinx_mapping['https://docs.python.org/']. Expected a two-element tuple or list.

Configuration error:
Invalid `intersphinx_mapping` configuration (1 error).
```

The intersphinx_mapping error can be easily fixed by adjusting conf.py.
You can take an inspiration from this PR: https://github.com/jupyterlab/jupyterlab/pull/14423

Please work with upstream on this issue, I plan to ship sphinx 8 in two weeks.


For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/python-sphinx/package/tbb/

You can test you package in mock running:

$ mock -r fedora-rawhide-x86_64
--addrepo=https://download.copr.fedorainfracloud.org/results/thrnciar/python-sphinx/fedora-rawhide-x86_64/ --no-clean your.src.rpm
$ mock -r fedora-rawhide-x86_64
--addrepo=https://download.copr.fedorainfracloud.org/results/thrnciar/python-sphinx/fedora-rawhide-x86_64/ shell

We'd like to include Sphinx 8 in Fedora 42.
Let us know here if you have any questions. Thank you!

Comment 1 Jonathan Wakely 2024-12-04 20:28:30 UTC
The upstream files have:

intersphinx_mapping = {'https://docs.python.org/': None}

and we were modifying them in the tbb.spec file to use the local objects.inv.

I'm testing a fix for rawhide and I've reported https://github.com/uxlfoundation/oneTBB/issues/1576 upstream.

Comment 2 Jonathan Wakely 2024-12-04 22:20:09 UTC
I've pushed a fix to rawhide now.

Comment 3 Carlos O'Donell 2024-12-13 14:38:07 UTC
The bodhi update is all green so I'm marking this CLOSED RAWHIDE. Thanks Jonathan!