Re: [GIT PULL] Documentation for 6.8

From: Akira Yokosawa
Date: Fri Jan 12 2024 - 18:21:10 EST


Hi Willy,

On 2024/01/13 1:09, Matthew Wilcox wrote:
> On Sat, Jan 13, 2024 at 12:28:44AM +0900, Akira Yokosawa wrote:
>> Official python 3.10 support was new to Sphinx 4.3.
>> So, I guess reasonable version for recommending is Sphinx>=4.3.
>>
>> But at the same time, The latest Sphinx 7.2.6 works only with
>> python>=3.9. If your base python3 is 3.8 (e.g. ubuntu 20.04),
>> you can't have the latest one.
>
> I don't know that I care about Ubuntu 20.04; that's almost 4 years old and
> probably isn't being used by anyone who's building kernel documentation.
>
> Oracle Linux 9 (2022) ships Python 3.9.14. It also appears to ship python
> 3.11.2 as an optional install. It doesn't seem to ship sphinx at all.
> At least not that I can find from a quick rummage in the repositories.
> The recommendation I'm finding is to use pip to install sphinx if you
> need it.
>

Oracle Linux 9 has the same version as RHEL/CentOS/Alma/Rocky 9
by the package name of python3-sphinx in the ol9_codeready_builder
repo. You need to enable it by saying:

dnf --enablerepo=ol9_codeready_builder install python3-sphinx

HTH,

Akira