ish-app / ish

Linux shell for iOS
https://ish.app
Other
17.21k stars 910 forks source link

Installing texlive-full fails #1123

Open shunichironomura opened 3 years ago

shunichironomura commented 3 years ago

This is what I did:

  1. Installed the app on my iPad
  2. echo 'file:///ish/apk/community' >> /etc/apk/repositories
  3. apk add texlive-full

This is what I got:

...
(55/74) Installing texmf-dist-fontsextra (2020.54593-r0)
ERROR: texmf-dist-fontsextra-2020.54593-r0: package mentioned in index not found (try 'apk update')
...
Executing busybox-1.31.1-r16.trigger
Executing texlive-20190410-r13.trigger
1 error; 1861 MiB in 87 packages
tbodt commented 3 years ago

This is because texmf-dist-fontsextra is bigger than the 512mb limit for an on-demand resource. The only other package with this problem is supertuxkart-data.

shunichironomura commented 3 years ago

I see. Is there any workaround for this?

62f commented 3 years ago

sudo apk del texmf-dist-games (1/1) Purging texmf-dist-games (2020.54593-r0) Executing texlive-20190410-r13.trigger PANIC: unprotected error in call to Lua API (CPU with SSE2 required) fmtutil [WARNING]: inifile ptex.ini for ptex/ptex not found. fmtutil [WARNING]: inifile euptex.ini for euptex/euptex not found. fmtutil [WARNING]: inifile uptex.ini for uptex/uptex not found. fmtutil [ERROR]: running `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini </dev/null' return status 1 fmtutil [ERROR]: return error due to options --strict fmtutil [WARNING]: inifile eptex.ini for eptex/eptex not found. fmtutil [WARNING]: inifile xmltex.ini for xmltex/pdftex not found. fmtutil [WARNING]: inifile lambda.ini for lamed/aleph not found. fmtutil [WARNING]: inifile pdfxmltex.ini for pdfxmltex/pdftex not found. fmtutil [WARNING]: inifile texsis.ini for texsis/pdftex not found. fmtutil [WARNING]: inifile platex.ini for platex/eptex not found. fmtutil [WARNING]: inifile eplain.ini for eplain/pdftex not found. fmtutil [WARNING]: inifile uplatex.ini for uplatex/euptex not found. fmtutil [WARNING]: inifile lollipop.ini for lollipop/tex not found. fmtutil [WARNING]: inifile mltex.ini for mltex/pdftex not found. sudo apk del texmf-dist-games

62f commented 3 years ago

texmf-dist-games is one of two causal packages I found; it's easy to reckon that SSE2 is being triggered by the installer. A package removal should be straightforward, do nothing more complicated than deleting files, yet here it wasn't. If one could simply 'work-around' to not using THAT apk installer, maybe downgrade apk's binary to one crossbuilt from another repo.?. make your own bet on untested workaround; if the bug really is just an installer hiccup, then I reckon the font pak functionally is unaffected.

econcz commented 3 years ago

Try to do it in Docker, here's the unchanged iSH "default" filesystem docker pull econcz/x86-alpine-glibc:ish-import. To be able to install software into it, you need to write the following commands

cp /etc/apk/repositories /tmp/repositories && echo "http://nl.alpinelinux.org/alpine/v${ALPINE_VERSION}/main/" | \
tee    /etc/apk/repositories &&
echo "http://nl.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" | \
tee -a /etc/apk/repositories

then apk update && apk add ... after you finish mv /tmp/repositories /etc/apk/repositories Finally, export the Docker container and import it into iSH as a filesystem.

62f commented 3 years ago

See: https://github.com/ish-app/ish/issues/1056#issuecomment-880187020_