| Summary: | dev-libs/kpathsea-[6.3.1_p20190410 | 6.3.2_p20200406]: do not set TEXMFROOT in Prefix | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | Steven Trogdon <strogdon> |
| Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | frp.bissey, sam, strogdon, tex |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Steven Trogdon
2020-04-24 18:15:42 UTC
The problem is that in both of the above kpathsea ebuilds the created symlinks
kpathsea-6.3.1_p20190410.ebuild:
dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
and
kpathsea-6.3.2_p20200406.ebuild
dosym /../../../../etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
dosym /../../../../etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
do not point to locations in the Prefix. The former creates symlinks to locations on the host and I believe the latter does the same. This results in a broken kpathsea install. The following works here (in Prefix):
dosym ${EPREFIX}/etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
dosym ${EPREFIX}/etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
I am guessing the following would work if you want to keep things relative
dosym /../../../../etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH#${EPREFIX}}/web2c/fmtutil.cnf
dosym /../../../../etc/texmf/web2c/texmf.cnf ${TEXMF_PATH#${EPREFIX}}/web2c/texmf.cnf
dev-libs/kpathsea-6.3.1_p20190410 is no longer in the portage tree and something has changed relative to dev-libs/kpathsea-6.3.2_p20200406.
First, TEXMFROOT is now set??
$ kpsewhich -var-value=TEXMFROOT
/storage/strogdon/gentoo-rap/usr/share
Second, the dosym statements (I believe these may have changed - possibly a silent bump?)
dosym ../../../../etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
dosym ../../../../etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
now install symlinks correctly.
However, thirdly the installed symlinks
${EPREFIX}/usr/share/texmf-dist/web2c/updmap-hdr.cfg
${EPREFIX}/usr/share/texmf-dist/web2c/fmtutil-hdr.cfg
are incorrect
$ ls -al ~/usr/share/texmf-dist/web2c/updmap-hdr.cfg
lrwxrwxrwx 1 terry terry 33 Dec 5 16:38 /storage/strogdon/gentoo-rap/usr/share/texmf-dist/web2c/updmap-hdr.cfg -> /etc/texmf/web2c.d/updmap-hdr.cfg
$ ls -al ~/usr/share/texmf-dist/web2c/fmtutil-hdr.cnf
lrwxrwxrwx 1 terry terry 34 Dec 5 16:38 /storage/strogdon/gentoo-rap/usr/share/texmf-dist/web2c/fmtutil-hdr.cnf -> /etc/texmf/web2c.d/fmtutil-hdr.cnf
They do not point to locations in the Prefix.
Perhaps this bug should be closed and a new one opened?
Actually, the incorrect symlinks $ ls -al ~/usr/share/texmf-dist/web2c/updmap-hdr.cfg lrwxrwxrwx 1 terry terry 33 Dec 5 16:38 /storage/strogdon/gentoo-rap/usr/share/texmf-dist/web2c/updmap-hdr.cfg -> /etc/texmf/web2c.d/updmap-hdr.cfg $ ls -al ~/usr/share/texmf-dist/web2c/fmtutil-hdr.cnf lrwxrwxrwx 1 terry terry 34 Dec 5 16:38 /storage/strogdon/gentoo-rap/usr/share/texmf-dist/web2c/fmtutil-hdr.cnf -> /etc/texmf/web2c.d/fmtutil-hdr.cnf are installed by app-text/texlive-core-2020-r12 not by dev-libs/kpathsea-6.3.2_p20200406. So this bug should be closed and a new one opened. See bug https://bugs.gentoo.org/show_bug.cgi?id=752189 for a related symlink problem. ok, so I hope I'm not reading this wrong, but it seems the current version in the tree fixes the original issue, so now we continue on bug 752189 |