Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1977313 - condor fails to build with Sphinx 4.0.2
Summary: condor fails to build with Sphinx 4.0.2
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: condor
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Theisen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1973718
TreeView+ depends on / blocked
 
Reported: 2021-06-29 12:56 UTC by Karolina Surma
Modified: 2021-06-29 15:48 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2021-06-29 12:56:45 UTC
condor fails to build with Sphinx 4.0.2 in Fedora 35 (currently Rawhide).

+ make -C docs man
make: Entering directory '/builddir/build/BUILD/htcondor-8_8_10/docs'
sphinx-build -b man -d _build/doctrees   . _build/man
Running Sphinx v4.0.2
WARNING: while setting up extension index: role 'index' is already registered, it will be overridden
making output directory... done
Exception occurred:
  File "/builddir/build/BUILD/htcondor-8_8_10/docs/conf.py", line 452, in setup
    app.add_stylesheet('css/htcondor-manual.css')
AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'

For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/ksurma/pygments-2.9.0/package/condor/

Possible solution for this issue:
In some cases it may be enough to replace the call to 'add_stylesheet' with 'add_css_file' instead.


You can test you package using Koji scratch build
koji build --scratch <srpm>


For details regarding the Sphinx change, see https://fedoraproject.org/wiki/Changes/Sphinx4
Let us know here if you have any questions. Thank you!

Comment 1 Tim Theisen 2021-06-29 15:48:05 UTC
This is a problem with the included documentation for the Jupyter notebooks. The solution is to patch the documentation to point directly to the tutorials. Unfortunately, then this section of the manual is no longer available off-line. After patching this today, we will work on getting the python notebook documentation back into the manual.


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