Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 752189

Summary: dev-texlive/texlive-latexextra-2020-r2 QA Notice: Symbolic link does not exist
Product: Gentoo/Alt Reporter: Steven Trogdon <strogdon>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: normal CC: sam, strogdon, tex
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steven Trogdon 2020-11-02 03:19:00 UTC
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
Comment 1 Steven Trogdon 2020-11-02 03:32:30 UTC
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
Comment 2 Steven Trogdon 2020-12-06 01:35:17 UTC
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
Comment 3 Fabian Groffen gentoo-dev 2021-01-21 16:43:14 UTC
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.
Comment 4 Fabian Groffen gentoo-dev 2021-01-21 16:45:26 UTC
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.)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-31 05:44:35 UTC
*** Bug 832408 has been marked as a duplicate of this bug. ***
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-31 05:49:37 UTC Comment hidden (obsolete)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-01 00:02:20 UTC

*** This bug has been marked as a duplicate of bug 832408 ***