Bug 2180484 - python-sphinx-notfound-page fails to build with Sphinx 6.1.3
Summary: python-sphinx-notfound-page fails to build with Sphinx 6.1.3
Alias: None
Product: Fedora
Classification: Fedora
Component: python-sphinx-notfound-page
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 2135122
TreeView+ depends on / blocked
Reported: 2023-03-21 14:51 UTC by Karolina Surma
Modified: 2023-04-17 17:46 UTC (History)
2 users (show)

Fixed In Version: python-sphinx-notfound-page-0.7.1-7.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2023-04-17 17:46:06 UTC
Type: Bug

Attachments (Terms of Use)

Description Karolina Surma 2023-03-21 14:51:03 UTC
python-sphinx-notfound-page fails to build with Sphinx 6.1.3 in Fedora 39 (currently Rawhide).

For the logs from testing build attempts, see:

You can test you package in mock running:

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

The issue detected:

Package attempts to modify `_static/jquery.js` which was removed from Sphinx 6+ and moved to a separate sphinxcontrib package: jquery.

If that file isn't needed in the documentation package, remove the lines attempting to access it from the spec file.
Otherwise, the extension (packaged in Fedora as `python-sphinxcontrib-jquery`) could be used here.

Sphinx 6.1.3 will be included in Fedora 39.
Let us know here if you have any questions. Thank you!

Comment 1 Karolina Surma 2023-04-05 09:30:55 UTC

This is a friendly notice that Sphinx 6.1.3 will be shipped to Fedora Rawhide on April 13th. This package - unless fixed - will start to FTBFS.
I'll be happy to help with fixing the issues, should you need it.
If this package has already been handled, please ignore this message and ideally close the ticket. Thank you!

Comment 2 Kevin Fenzi 2023-04-06 20:21:12 UTC
I'd love some help with this. I only need it in the context of ansible-core currently...

Comment 3 Karolina Surma 2023-04-13 14:30:01 UTC
Hi, I started looking into it.
It looks like ansible-core doesn't build the docs anymore https://src.fedoraproject.org/rpms/ansible-core/blob/rawhide/f/ansible-core.spec
Docs build was removed (not completely -- see %files in the above specfile) in this commit: https://src.fedoraproject.org/rpms/ansible-core/c/c33bf4a3b526a77b803cfb6e116a157b26b424b9?branch=rawhide

Running repoquery gives me 3 results
$ repoquery --repo=rawhide{,-source} --whatrequires python3-sphinx-notfound-page --recursive | pkgname | sort | uniq

python-sphinx_ansible_theme is a leaf package, nothing requires it.

This issue still affects two other packages, so I'll continue to work on this.

Comment 4 Kevin Fenzi 2023-04-13 19:32:01 UTC
Oh yeah, I totally forgot we disabled that. :) 

Added maxwell here as he has been dealing with ansible packages of late. Should we just let this go? Or do we plan to build docs again?

Comment 5 Karolina Surma 2023-04-14 12:28:47 UTC
I proposed a hotfix both upstream and downstream: https://src.fedoraproject.org/rpms/python-sphinx-notfound-page/pull-request/4

Comment 6 Fedora Update System 2023-04-17 17:45:12 UTC
FEDORA-2023-37d5536fa5 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-37d5536fa5

Comment 7 Fedora Update System 2023-04-17 17:46:06 UTC
FEDORA-2023-37d5536fa5 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.