FS#74404 - [texlive-core] tlmgr Master "fix"
Attached to Project:
Arch Linux
Opened by David Gustavsson (gustaphe) - Friday, 08 April 2022, 13:02 GMT
Last edited by Antonio Rojas (arojas) - Monday, 29 May 2023, 22:15 GMT
Opened by David Gustavsson (gustaphe) - Friday, 08 April 2022, 13:02 GMT
Last edited by Antonio Rojas (arojas) - Monday, 29 May 2023, 22:15 GMT
|
Details
The Wiki page for TeX Live,
https://wiki.archlinux.org/title/TeX_Live, lists a "fix" for a bug in the arch version of tlmgr. The
fix is fairly trivial, essentially
``` sed -i 's/\$Master = "\$Master\/..\/..";/\$Master = "\$Master\/..\/..\/..";/' $TEXMFDIST/scripts/texlive/tlmgr.pl ``` but it's annoying to have to redo manually after every update. I couldn't find a bug report on here about it. |
This task depends upon
Closed by Antonio Rojas (arojas)
Monday, 29 May 2023, 22:15 GMT
Reason for closing: Fixed
Additional comments about closing: texlive-bin 2023.66984-2
Monday, 29 May 2023, 22:15 GMT
Reason for closing: Fixed
Additional comments about closing: texlive-bin 2023.66984-2
https://github.com/archlinux/svntogit-packages/compare/packages/texlive-core...bryango:arch-packages:packages/texlive-core-FS%2374404
following OP and the wiki, and it works for me. Please consider merging this! The git patch file is given by:
https://github.com/archlinux/svntogit-packages/compare/packages/texlive-core...bryango:arch-packages:packages/texlive-core-FS%2374404.patch
1. tlmgr is never linked into bin, but it probably should be. To fix this, add the line
ln -s tlmgr "${pkgdir}"/usr/bin/tlmgr
approximately here, https://github.com/bryango/arch-packages/blob/packages/texlive-core/trunk/PKGBUILD#L335.
2. After Bryan's fix is applied, tlmgr in "user mode" does work, i.e.
$ /usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode init-usertree
TLPDB: not a directory, not loading: /home/user1/texmf
$ /usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode install geometry
tlmgr.pl: package repository https://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: geometry [9k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: /home/user1/texmf/web2c/tlmgr.log
tlmgr.pl: command log updated: /home/user1/texmf/web2c/tlmgr-commands.log
but not in "system mode," for example
$ /usr/share/texmf-dist/scripts/texlive/tlmgr.pl --dry-run install geometry
/usr/share/texmf-dist/scripts/texlive/tlmgr.pl: open(/usr/share/texmf-dist/scripts/texlive/../../../tlpkg/texlive.tlpdb) failed: No such file or directory at /usr/share/texmf-dist/scripts/texlive/../../../tlpkg/TeXLive/TLPDB.pm line 387.
This is because tlmgr knows how to find the user .tlpdb file ~/texmf/tlpkg/texlive.tlpdb, but doesn't know how to find the system .tlpdb file. I don't think it's ever created. Many commands in tlmgr.pl also return the same error. If someone can confirm this behavior, we should probably consider fixing #2 as well.
#2 is tricky. TUG's installer, https://www.tug.org/texlive/quickinstall.html, seems to immediately pull a copy of the remote .tlpdb. So we have two options, 1. Call "tlmgr recreate-tlpdb > texlive.tlpdb" into some reasonable folder location, or 2. Curl the remote's .tlpdb and save it to a resonable location. I think we'll need a TeX expert to comment.