termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.95k stars 2.98k forks source link

broken symlinks in texlive-bin #3835

Open smaslovski opened 5 years ago

smaslovski commented 5 years ago

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:

  1. Android warning/error log: logcat -d "*:W".
  2. Output of strace: strace -fv -s 2048 -o strace.log {program name}.
  3. If program write it's own log files, you may need to attach them.
smaslovski commented 5 years ago

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]

Grimler91 commented 5 years ago

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

smaslovski commented 5 years ago

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.

Grimler91 commented 4 years ago

Closing this as I have no intention to change how the symlinks are packaged

smaslovski commented 4 years ago

On May 1, 2020 11:02:17 PM GMT+01:00, Henrik Grimler notifications@github.com 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

Grimler91 commented 4 years ago

@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

stale[bot] commented 2 years ago

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.