[tex-k] Patch for a bug in mktexlsr.pl
Martin Vath
martin at mvath.de
Wed Jun 26 21:30:19 CEST 2024
On Wed, 26 Jun 2024, Norbert Preining wrote:
> On Tue, 25 Jun 2024, Martin Vath wrote:
>> I am a Gentoo user, and texlive-2023 under Gentoo creates
>> quite a number of symlinks from /usr/bin to .pl files:
>
> Can you send me (personal email) the list of files in the gentoo
> texlive-2023 package (or point me where I can find that)?
I already reported a Gentoo bug; feel free to comment there
if my report is wrong: https://bugs.gentoo.org/934975
The ebuild (a bash script containing functions called by the
package manager for installation) is here:
<https://github.com/gentoo-mirror/gentoo/blob/stable/
app-text/texlive-core/texlive-core-2023-r9.ebuild>
(click the "Raw" button to get the plain text file.)
Crucial for our discussion is the content of the
TEXLIVE_MODULE_BINSCRIPTS variable in lines 83-111:
These are linked (without appendix) in the order they occur
in line 458 of the script: The helper function
dobin_texmf_scripts used in this line is defined in
line 161 of the file
<https://github.com/gentoo-mirror/gentoo/blob/stable/
eclass/texlive-common.eclass>
Note in particular that TEXLIVE_MODULE_BINSCRIPTS
contains both lines
texmf-dist/scripts/texlive/mktexlsr
texmf-dist/scripts/texlive/mktexlsr.pl
but the later symlink will overwrite the former symlink
(as the appendix is removed for the symlink).
So if I understood correctly, the order of these two
lines should be reverted (or the latter line removed
from TEXLIVE_MODULE_BINSCRIPTS).
Is there anything else which is “obviously” wrong?
More information about the tex-k
mailing list.