I'm interested in getting tlmgr fixed because it's necessary to
install Latex packages. Two comments.
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.