Skip to contentSkip to conversation

tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list

PATCH In review Akira Yokosawa 3 participants 6 messages Oct 19, 2025 – Oct 31, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list

The option list to sphinx-build via SPHINXOPTS should have higher priority than those the wrapper comes up with. sphinx-build will choose the latest one if there are duplicates.

To restore the behavior of Makefile era, when the documentation builds at https://www.kernel.org/doc/html/next/ had been depending on it, reorder the flag list.

---
Hi,

Not having hearing from Mauro on this _minor_ regression, I went forward and made this fix.

Konstantin, could you test this against your doc build environment for linux-next?

Regards,
Akira
--

 tools/docs/sphinx-build-wrapper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/docs/sphinx-build-wrapper +1 -1
index 3e6d166d4102..1efaca3d16aa 100755
@@ -298,8 +298,8 @@ class SphinxBuilder:
 
             cmd += [sphinx_build]
             cmd += [f"-j{n_jobs}"]
-            cmd += self.sphinxopts
             cmd += build_args
+            cmd += self.sphinxopts
 
             if self.verbose:
                 print(" ".join(cmd))

base-commit: 96b546c241b11a97ba1247580208c554458e7866

Signature · 1 line
2.43.0
#1 lore raw
Quoted 13 lines · Akira Yokosawa

The option list to sphinx-build via SPHINXOPTS should have higher priority than those the wrapper comes up with. sphinx-build will choose the latest one if there are duplicates.

To restore the behavior of Makefile era, when the documentation builds at https://www.kernel.org/doc/html/next/ had been depending on it, reorder the flag list.

Quoted 8 lines

---
Hi,

Not having hearing from Mauro on this _minor_ regression, I went forward and made this fix.

Konstantin, could you test this against your doc build environment for linux-next?

Jon, could you consider applying this fix and making it be tested directly at https://www.kernel.org/doc/html/next/ ?

The custom "next-2025mmdd" tag there would be helpful for us to catch regressions in linux-next docs builds.

Thanks, Akira

Quoted 23 lines

Regards,
Akira
--

 tools/docs/sphinx-build-wrapper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/docs/sphinx-build-wrapper +1 -1
index 3e6d166d4102..1efaca3d16aa 100755
@@ -298,8 +298,8 @@ class SphinxBuilder:
 
             cmd += [sphinx_build]
             cmd += [f"-j{n_jobs}"]
-            cmd += self.sphinxopts
             cmd += build_args
+            cmd += self.sphinxopts
 
             if self.verbose:
                 print(" ".join(cmd))

base-commit: 96b546c241b11a97ba1247580208c554458e7866

maintainer
#2 lore raw
Quoted 20 lines · Akira Yokosawa
Quoted 19 lines · Akira Yokosawa

The option list to sphinx-build via SPHINXOPTS should have higher priority than those the wrapper comes up with. sphinx-build will choose the latest one if there are duplicates.

To restore the behavior of Makefile era, when the documentation builds at https://www.kernel.org/doc/html/next/ had been depending on it, reorder the flag list.

---
Hi,

Not having hearing from Mauro on this _minor_ regression, I went forward and made this fix.

Quoted 8 lines
Quoted 2 lines

Konstantin, could you test this against your doc build environment for linux-next?

Jon, could you consider applying this fix and making it be tested directly at https://www.kernel.org/doc/html/next/ ?

The custom "next-2025mmdd" tag there would be helpful for us to catch regressions in linux-next docs builds.

It doesn't seem like there should be any regressions ... I've applied it, thanks.

jon

#3 lore raw

[-CC: Mauro and Randy]

Hi,

Quoted 1 line · Jonathan Corbet

Akira Yokosawa <[email protected]> writes:

[...]

Quoted 8 lines
Quoted 5 lines

Jon, could you consider applying this fix and making it be tested directly at https://www.kernel.org/doc/html/next/ ?

The custom "next-2025mmdd" tag there would be helpful for us to catch regressions in linux-next docs builds.

It doesn't seem like there should be any regressions ... I've applied it, thanks.

Today's build at https://www.kernel.org/doc/html/next/ still has "6.18.0-rc3" as the version tag. Other new changes in docs-next are reflected there.

Konstantin, I'm not sure but have you dropped the

    SPHINXOPTS="-D version=${TAGVER} -q"

flag from the command line of next docs build?

If that's the case, can you restore it?

Thanks, Akira

#4 lore raw
Quoted 14 lines · Akira Yokosawa

[-CC: Mauro and Randy]

Hi,

Quoted 1 line · Jonathan Corbet

Akira Yokosawa <[email protected]> writes:

[...]

Quoted 6 lines
Quoted 5 lines

Jon, could you consider applying this fix and making it be tested directly at https://www.kernel.org/doc/html/next/ ?

The custom "next-2025mmdd" tag there would be helpful for us to catch regressions in linux-next docs builds.

Quoted 7 lines
Quoted 2 lines

It doesn't seem like there should be any regressions ... I've applied it, thanks.

Today's build at https://www.kernel.org/doc/html/next/ still has "6.18.0-rc3" as the version tag. Other new changes in docs-next are reflected there.

Now, the version tag reads "next-20251030".

Nice to see it working again!

Thanks, Akira

#5 lore raw
Quoted 6 lines · Akira Yokosawa
Quoted 4 lines

Today's build at https://www.kernel.org/doc/html/next/ still has "6.18.0-rc3" as the version tag. Other new changes in docs-next are reflected there.

Now, the version tag reads "next-20251030".

Yes, this is now working properly, thanks everyone!

-K