| Message ID | 20260217-fix-latexpdf-target-centos-v1-1-2e2abee7a078@bootlin.com |
|---|---|
| State | New |
| Headers | show |
| Series | tools/host_packages_scripts/tlmgr_docs_pdf.sh: install perl | expand |
Hi Antonin, On 2/17/26 5:16 PM, Antonin Godard wrote: > Fix an issue reported by Quentin on IRC: > > The LaTeX files are in _build/latex. > Run 'make' in that directory to run these through (pdf)latex > (use `make latexpdf' here to do that automatically). > make[1]: Entering directory '/docs/documentation/_build/latex' > latexmk -pdf -dvi- -ps- 'theyoctoproject.tex' > Can't locate Time/HiRes.pm in @INC (you may need to install the Time::HiRes module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /opt/docs-build-tex-tools/tl/bin/x86_64-linux/latexmk line 97. > BEGIN failed--compilation aborted at /opt/docs-build-tex-tools/tl/bin/x86_64-linux/latexmk line 97. > make[1]: *** [Makefile:28: theyoctoproject.pdf] Error 2 > make[1]: Leaving directory '/docs/documentation/_build/latex' > make: *** [Makefile:74: latexpdf] Error 2 > make: Leaving directory '/docs/documentation' > > We require perl for the latexpdf target to complete successfully. Add it > to the tlmgr_docs_pdf.sh script. > Could build the latexpdf target with CONTAINERCMD=podman tools/build-docs-container $distro latexpdf for almalinux:8, almalinux:9, centos:stream9, rockylinux:8 and rockylinux:9, so: Tested-by: Quentin Schulz <quentin.schulz@cherry.de> Thanks! Quentin
diff --git a/documentation/tools/host_packages_scripts/tlmgr_docs_pdf.sh b/documentation/tools/host_packages_scripts/tlmgr_docs_pdf.sh index b33ff6b25..ff4511e69 100644 --- a/documentation/tools/host_packages_scripts/tlmgr_docs_pdf.sh +++ b/documentation/tools/host_packages_scripts/tlmgr_docs_pdf.sh @@ -1,4 +1,4 @@ -sudo dnf install -y wget +sudo dnf install -y wget perl textooldir=${TEXTOOLDIR:-"./docs-build-tex-tools"} mkdir -p "$textooldir"/tl wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz -O "$textooldir"/install-tl-unx.tar.gz
Fix an issue reported by Quentin on IRC: The LaTeX files are in _build/latex. Run 'make' in that directory to run these through (pdf)latex (use `make latexpdf' here to do that automatically). make[1]: Entering directory '/docs/documentation/_build/latex' latexmk -pdf -dvi- -ps- 'theyoctoproject.tex' Can't locate Time/HiRes.pm in @INC (you may need to install the Time::HiRes module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /opt/docs-build-tex-tools/tl/bin/x86_64-linux/latexmk line 97. BEGIN failed--compilation aborted at /opt/docs-build-tex-tools/tl/bin/x86_64-linux/latexmk line 97. make[1]: *** [Makefile:28: theyoctoproject.pdf] Error 2 make[1]: Leaving directory '/docs/documentation/_build/latex' make: *** [Makefile:74: latexpdf] Error 2 make: Leaving directory '/docs/documentation' We require perl for the latexpdf target to complete successfully. Add it to the tlmgr_docs_pdf.sh script. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- Quentin, I understood why I didn't reproduce the error like you did: I unknowingly included the essential packages to the container by mistake, which included perl. Oops. --- documentation/tools/host_packages_scripts/tlmgr_docs_pdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- base-commit: 98840d241c681c5bd4080db57b3bd9d9f0740b94 change-id: 20260217-fix-latexpdf-target-centos-7c045f7c248d