<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14835</bug_id>
          
          <creation_ts>2022-06-10 16:03:13 +0000</creation_ts>
          <short_desc>Need autobuilder to build docs with at least Sphinx 4.0</short_desc>
          <delta_ts>2025-02-20 22:19:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Antonin Godard">antonin.godard</assigned_to>
          <cc>foss+yocto</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>michael.opdenacker</cc>
    
    <cc>pidge</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93495</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-06-10 16:03:13 +0000</bug_when>
    <thetext>With the latest versions of Sphinx (5.0.1 at the time of this writing), building the docs fails because of this warning (warnings are treated as errors):

WARNING: extlinks: Sphinx-6.0 will require a caption string to contain exactly one &apos;%s&apos; and all other &apos;%&apos; need to be escaped as &apos;%%&apos;. 

To solve this, a solution would be to revert this commit:
https://git.yoctoproject.org/yocto-docs/commit/?id=c9922076f5c1285d9cfd6aff8ce5b6635d88222f

However, this would be incompatible with the current version of Sphinx used on the autobuilder to build the docs.

Here are details from Quentin Schulz:

If we revert the patch, we need to use a newer Sphinx for building the docs with the autobuilder (currently 3.2.1) otherwise we get CVE-%s-&lt;CVE_ID&gt; instead of CVE-&lt;CVE_ID&gt;.

We&apos;d need a patch that bumps the minimum version of Sphinx to build the docs (in conf.py, needs_sphinx), revert the patch and use a new docs_buildtools in the autobuilder. Without this you&apos;re just fixing your a build issue on your local PC and failing the autobuilder.

We do not have a &quot;stable&quot; release available yet on https://autobuilder.yocto.io/pub/buildtools/ so we&apos;d need to create one. I know Richard made an attempt a few months ago when we added Sphinx recipe inside poky (specifically for creating the docs buildtools).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93518</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-06-16 14:36:50 +0000</bug_when>
    <thetext>Richard to setup the autobuilder to run tests and figure out which packages we need to achieve this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93535</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-06-16 15:44:05 +0000</bug_when>
    <thetext>What needs to happen here is to make a buildtools build with &quot;deploy artefacts&quot; checked. I did this, the result was here:

http://autobuilder.yocto.io/pub/non-release/20220616-20/buildtools/

we then add a patch to autobuilder helper to patch the new tarball into run-docs-build, I added one to the master-next branch there.

We then trigger a docs build using that branch of autobuilder-helper. I did this here, not sure what broke though:

https://autobuilder.yoctoproject.org/typhoon/#/builders/114/builds/478/steps/5/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93539</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-06-16 16:04:56 +0000</bug_when>
    <thetext>I fixed that issue, now we see other issues that Michael mentioned:

https://autobuilder.yoctoproject.org/typhoon/#/builders/114/builds/480/steps/5/logs/stdio

Could you push fixes for those onto the yocto-docs master-next branch and then we can merge everything once builds pass?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93541</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-06-16 16:30:15 +0000</bug_when>
    <thetext>Great! Thanks for the progress.
I sent a new pull-request for master.
Thanks again
Michael.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93745</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-08-10 20:22:08 +0000</bug_when>
    <thetext>Was this completed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93791</commentid>
    <comment_count>6</comment_count>
    <who name="Quentin Schulz">foss+yocto</who>
    <bug_when>2022-08-12 14:37:21 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Was this completed?

Technically, yes. But this resulted in other bugs, c.f. https://lists.yoctoproject.org/g/yocto/message/57450</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100018</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-10-24 15:04:01 +0000</bug_when>
    <thetext>Bulk move of 5.1 M4 to 5.2 M2 as approved by AlexB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101134</commentid>
    <comment_count>8</comment_count>
    <who name="Antonin Godard">antonin.godard</who>
    <bug_when>2025-02-18 10:08:30 +0000</bug_when>
    <thetext>Hi,

We are now using Sphinx on version 8.0.2 to build the master, styhead, and scarthgap branches of the documentation. Out of the maintained branches, only kirkstone is built using Sphinx 5.1.1, but even then, it is newer than the old version mentioned here (3.2.1).

Older branches/tags are also built with Sphinx 5.1.1.

So if my understanding is correct, this bug can be closed? I don&apos;t think there&apos;s any of the issues there remaining? Can someone confirm?

Antonin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101194</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-02-20 22:19:33 +0000</bug_when>
    <thetext>I believe this has been addressed and the issue resolved. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>