I tried to build auctex[preview-latex] today on a (relatively) clean box but the build failed at ! LaTeX Error: File `hypdoc.sty' not found. That file is provided by dev-texlive/texlive-latexextra, and installing texlive-latexextra makes it work. I'm not sure if the build failure is only with USE=preview-latex, I never tried without it.
It is required from doc.sty: $ grep hypdoc /usr/share/texmf-dist/tex/latex/base/doc.sty \RequirePackage{hypdoc} @tex: doc.sty is provided by texlive-latex. It feels wrong that it requires a file from texlive-latexextra.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f27c2ce194513b818a2d5d3b2dee2e158824d0cb commit f27c2ce194513b818a2d5d3b2dee2e158824d0cb Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2024-08-30 12:54:40 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2024-08-30 12:59:12 +0000 app-emacs/auctex: Add build dependency on dev-texlive/texlive-latexextra Bug: https://bugs.gentoo.org/938738 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-emacs/auctex/auctex-14.0.5.ebuild | 1 + 1 file changed, 1 insertion(+)
(In reply to Ulrich Müller from comment #1) > @tex: doc.sty is provided by texlive-latex. It feels wrong that it requires > a file from texlive-latexextra. https://git.texlive.info/texlive/tree/Master/tlpkg/texlive.tlpdb?id=e50928cec6ab5ebd6b6a240787811784e3a96b43 is the version of the tlpdb we use to model the texlive 2023 ebuilds and their dependencies. There doc.sty is provided by the latex package, which becomes dev-tex/texlive-latex, and it does not declare a depend on latexextra (which seems sensible). hypdoc.sty is part of the hypdoc texlive package, which is part of the latexextra texlive collection. See https://git.texlive.info/texlive/tree/Master/tlpkg/texlive.tlpdb?id=e50928cec6ab5ebd6b6a240787811784e3a96b43#n66953 I've just checked and this is still the case with the latest tlpdb. Maybe we should consider asking upstream about this situation.
(In reply to Florian Schmaus from comment #3) > There doc.sty is provided by the latex package, which becomes > dev-tex/texlive-latex, and it does not declare a depend on latexextra (which > seems sensible). Just to clarify, here 'it' means the 'latex' entry in the tlpdb does not specify a dependency on the 'latexextra' collection in the tlpdb. Gentoo's texlive packages just follow the 'depend' statements in tlpdb.