The texlive-latexextra-2020-r2 ebuild in Prefix creates an incorrect symlink: >>> Completed installing dev-texlive/texlive-latexextra-2020-r2 into /storage/strogdon/gentoo-rap/var/tmp/portage/dev-texlive/texlive-latexextra-2020-r2/image * Final size of build directory: 87040 KiB (85.0 MiB) * Final size of installed tree: 75956 KiB (74.1 MiB) grep: /storage/strogdon/gentoo-rap/var/tmp/portage/dev-texlive/texlive-latexextra-2020-r2/image/storage/strogdon/gentoo-rap/usr/bin/pygmentex: Is a directory >>> Installing (1 of 2) dev-texlive/texlive-latexextra-2020-r2::gentoo * QA Notice: Symbolic link /storage/strogdon/gentoo-rap/usr/share/texmf-dist/fmtutil/format.texlive-latexextra.cnf points to /etc/texmf/fmtutil.d/format.texlive-latexextra.cnf which does not exist. There is a missing EPREFIX. The symlink should point to: ls -al /storage/strogdon/gentoo-rap/etc/texmf/fmtutil.d/format.texlive-latexextra.cnf -rw-r--r-- 1 strogdon math 334 Nov 1 20:54 /storage/strogdon/gentoo-rap/etc/texmf/fmtutil.d/format.texlive-latexextra.cnf
If relative symlinks are used then the symlink should be $ ls -al /storage/strogdon/gentoo-rap/usr/share/texmf-dist/fmtutil/format.texlive-latexextra.cnf lrwxrwxrwx 1 strogdon math 61 Nov 1 21:25 /storage/strogdon/gentoo-rap/usr/share/texmf-dist/fmtutil/format.texlive-latexextra.cnf -> ../../../../etc/texmf/fmtutil.d/format.texlive-latexextra.cnf
I didn't notice when initially filed but every symlink installed under ${EPREFIX}/usr/share/texmf-dist/fmtutil is broken with a missing ${EPREFIX} ls -al /storage/strogdon/gentoo-rap/usr/share/texmf-dist/fmtutil total 8 drwxr-xr-x 2 terry terry 4096 Nov 28 00:38 . drwxr-xr-x 24 terry terry 4096 Dec 5 23:39 .. lrwxrwxrwx 1 terry terry 45 Nov 28 00:02 format.texlive-basic.cnf -> /etc/texmf/fmtutil.d/format.texlive-basic.cnf lrwxrwxrwx 1 terry terry 52 Nov 28 00:37 format.texlive-formatsextra.cnf -> /etc/texmf/fmtutil.d/format.texlive-formatsextra.cnf lrwxrwxrwx 1 terry terry 45 Nov 28 00:03 format.texlive-latex.cnf -> /etc/texmf/fmtutil.d/format.texlive-latex.cnf lrwxrwxrwx 1 terry terry 50 Nov 28 00:28 format.texlive-latexextra.cnf -> /etc/texmf/fmtutil.d/format.texlive-latexextra.cnf lrwxrwxrwx 1 terry terry 46 Nov 28 00:15 format.texlive-luatex.cnf -> /etc/texmf/fmtutil.d/format.texlive-luatex.cnf lrwxrwxrwx 1 terry terry 51 Nov 28 00:36 format.texlive-mathscience.cnf -> /etc/texmf/fmtutil.d/format.texlive-mathscience.cnf lrwxrwxrwx 1 terry terry 45 Nov 28 00:37 format.texlive-xetex.cnf -> /etc/texmf/fmtutil.d/format.texlive-xetex.cnf which are provided by packages dev-texlive/texlive-basic-2020-r1 dev-texlive/texlive-formatsextra-2020-r2 dev-texlive/texlive-latex-2020 dev-texlive/texlive-latexextra-2020-r2 dev-texlive/texlive-luatex-2020-r2 dev-texlive/texlive-mathscience-2020 dev-texlive/texlive-xetex-2020
I first suspected the problem was in texlive-common_do_symlinks() because it uses dosym with unprefixed target, but then I saw this is for /usr/bin/X only, and the target is probably relative, else lots of complaints would happen. So, perhaps it is something coming from the tex buildsystem, but I'm not sure what/how.
oh, just to quick. texlive-common_handle_config_files() this one does: dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f} and $EPREFIX is missing there right before the /etc. (ultimately this one should be relative, but for that the path would have to be computed ...) @tex: perhaps acceptable to do quick fix by adding $EPREFIX here? (I'm assuming this is the problem, I couldn't confirm for myself.)
*** Bug 832408 has been marked as a duplicate of this bug. ***
See https://bugs.gentoo.org/832408#c1. Posted patch to ML: https://archives.gentoo.org/gentoo-dev/message/22ebfc51b9444cd3c78511274237e792
(dosym -r from EAPI 8 I guess would work for us too but still a bit gross)
*** This bug has been marked as a duplicate of bug 832408 ***