tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list
Subsystems (2)
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
@@ -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
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
Makefileera, 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@@ -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
Jonathan Corbet
maintainerQuoted 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
Makefileera, when the documentation builds at https://www.kernel.org/doc/html/next/ had been depending on it, reorder the flag list.Reported-by Konstantin Ryabitsev <[email protected]>Reported-by Akira Yokosawa <[email protected]>Signed-off-by Akira Yokosawa <[email protected]>---
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
[-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
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
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