termux-packages
termux-packages copied to clipboard
broken symlinks in texlive-bin
Problem description
After installing texlive-bin there is 183 broken symlinks associated with it. To see them all issue this command:
$ for n in find -L $PREFIX/bin -type l
; do echo "Broken symlink in pkg dpkg -S $n
"; done
Steps to reproduce See above.
Expected behavior Clean install without such a broken symlink mess.
Additional information
$ termux-info Updatable packages: All packages up to date Subscribed repositories: https://dl.bintray.com/xeffyr/x11-packages-24 x11/main https://dl.bintray.com/grimler/science-packages-24 science/stable https://dl.bintray.com/grimler/termux-root-packages-24 root/stable https://its-pointless.github.io/files/24 termux/extras https://its-pointless.github.io/files/24 termux/extras https://dl.bintray.com/grimler/game-packages-24 games/stable https://dl.bintray.com/termux/termux-packages-24 stable/main System information: Linux localhost 3.18.71-15759240 #1 SMP PREEMPT Thu Apr 4 14:01:51 KST 2019 aarch64 Android Termux-packages arch: aarch64 Android version: 8.0.0 Device manufacturer: samsung Device model: SM-T820
Depending on problem, additional information may be requested:
- Android warning/error log:
logcat -d "*:W"
. - Output of strace:
strace -fv -s 2048 -o strace.log {program name}
. - If program write it's own log files, you may need to attach them.
Moreover, where are the related binaries, ex. epspdf? I cannot find:
$ epspdf The program 'epspdf' is not installed. Install it by executing: pkg install texlive-bin $ $ pkg list-installed | grep texlive-bin texlive-bin/stable,now 20190410-3 aarch64 [installed,automatic]
We could move the symlinks to the texlive-* packages and texlive-tlmgr, we'll then have the same problem if user installs texlive-tlmgr
but doesn't install additional packages through tlmgr.
I guess that would be better than current package split though.
About epspdf, I don't know why you can't find it, try reinstalling texlive-bin. The symlink is present in 20190410-3 on aarch64 for me.
Edit: ah, no, alright, you get that error if the symlink doesn't lead anywhere. epspdf is a symlink to $PREFIX/share/texlive/texmf-dist/scripts/epspdf/epspdf.tlu
, which is part of texlive's epspdf package (can be found with tlmgr search --global --file epspdf.tlu
), which is part of the texlive-pictures package
I have a suggestion: why don't you look, for example, on how texlive is split into packages in Debian? You can even just copy their approach.
Closing this as I have no intention to change how the symlinks are packaged
On May 1, 2020 11:02:17 PM GMT+01:00, Henrik Grimler [email protected] wrote:
Closing this as I have no intention to change how the symlinks are packaged
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/termux/termux-packages/issues/3835#issuecomment-622585580
Perfect way to deal with bugs, truly magnificent!
With best regards, Stanislav Maslovski
@smaslovski feel free to open a PR with a fix then. Reopening and adding help wanted tag.
Moving the symlinks to subpackages will be messy of we want to support both texlive-full and texlive-installer. Having the symlinks, albeit broken, also makes command-not-found find them
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.