diff mbox series

[yocto-autobuilder-helper,1/2] scripts/run-docs-build: Add latexmk to tex install

Message ID 20241031141512.544354-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series [yocto-autobuilder-helper,1/2] scripts/run-docs-build: Add latexmk to tex install | expand

Commit Message

Richard Purdie Oct. 31, 2024, 2:15 p.m. UTC
Tweak the tex install command to include latexmk which is needed
by the docs build process.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 scripts/run-docs-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Richard Purdie Oct. 31, 2024, 2:18 p.m. UTC | #1
On Thu, 2024-10-31 at 14:15 +0000, Richard Purdie via
lists.yoctoproject.org wrote:
> Add a modified 5.1 buildtools tarball for docs builds which has
> support for svg -> png
> conversion using rsvg-convert.
> 
> Older releases need older docs buildtools. Add support for this in
> the build
> script for docs, installing both and choosing depending on how old
> the main
> release branch is. For now I've put the changeover at scarthgap, it
> may be
> possible to make it older. I know kirkstone fails with the new tools.
> 
> Bitbake doesn't need this since it's docs work fine with both
> versions.
> 
> The actual docs build is done in a subshell so we can choose the
> environment.
> We may need to improve the selection logic in future since some
> branches may
> start to build with the newer tools after backports.
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Just to be clear, the new docs buildtools includes the latest sphinx so
this lets us start moving to new spinx versions while at the same time
being able to build our older docs. We've wanted to do that for a
while.

Cheers,

Richard
diff mbox series

Patch

diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index 4ba759c..bf1d261 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -57,7 +57,7 @@  if [ -e /srv/autobuilder/valkyrie.yocto.io/ ]; then
         zcat < install-tl-unx.tar.gz | tar xf -
         cd install-tl-*/
         ./install-tl --scheme=small --texdir=${textooldir} --no-interaction
-        PATH=$PATH:${textooldir}/bin/x86_64-linux tlmgr install titlesec varwidth tabulary needspace upquote framed capt-of wrapfig fncychap gnu-freefont ctex
+        PATH=$PATH:${textooldir}/bin/x86_64-linux tlmgr install titlesec varwidth tabulary needspace upquote framed capt-of wrapfig fncychap gnu-freefont ctex latexmk
         popd
     fi
     PATH=$PATH:${textooldir}/bin/x86_64-linux