flathub / org.freedesktop.Sdk.Extension.texlive

7 stars 5 forks source link

ConTeXt does not run out of the box #38

Open jurf opened 3 years ago

jurf commented 3 years ago

To get ConTeXt working, I had to first run mtxrun --generate. Perhaps this could be done in the package to avoid confusion? I know at least Debian auto-runs the script.

I currently use 19.08 because of TeXworks, so I have not tried 20.08 yet.

jakobjakobson13 commented 3 years ago

With the current 20.08 branch build from source, I get for the compilation ConTeXt (LuaTeX) the following message

mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'

whereas for the ConTeXt (pdfTeX) and ConTeXt (XeTeX) the following messages

mtxrun          | kpse fallback with progname 'context' initialized in 0.139899 seconds
sh: Zeile 1: ruby: Kommando nicht gefunden.
mtxrun          |
mtxrun          | This script needs 'ruby' which seems not to be installed.
mtxrun          |

Do we need to bundle ruby for the compilation of ConTeXt with pdfTeX and XeTeX?

jurf commented 3 years ago

I did not even know ConTeXt could use pdfTeX or XeTeX, it was on LuaTeX (now LMTX) for ages. But that’s probably a separate issue.

jakobjakobson13 commented 3 years ago

As far as I understood context relied on ruby before they switched to luatex. And our current problem with context (luatex ) is that the 'mtxrun' file is actually a symbolic link pointing to a non-existing file. But I don't know by what file and what step the link gets created.

jurf commented 3 years ago

It’s not an invalid link, at least not on my system:

❯ flatpak run --command=sh org.tug.texworks
[📦 org.tug.texworks ~]$ which mtxrun
/app/texlive/bin/x86_64-linux/mtxrun
[📦 org.tug.texworks ~]$ file /app/texlive/bin/x86_64-linux/mtxrun
/app/texlive/bin/x86_64-linux/mtxrun: symbolic link to ../../texmf-dist/scripts/context/stubs/unix/mtxrun
[📦 org.tug.texworks ~]$
jakobjakobson13 commented 3 years ago

So does ConTeXt work on your computer?

jurf commented 3 years ago

Yes, but I had to run mtxrun --generate. My question is whether we can do this in the package so that the user does not need to interfere.

jakobjakobson13 commented 3 years ago

Do you know if copying/moving the lines or just the last line

      - mktexlsr
      - fmtutil-sys --all
      - mtxrun --generate

from the texlive module to the enable.sh script would solve this issue?

jakobjakobson13 commented 1 year ago

@jurf : Is this bug report still valid? Context worked for me with 'org.tug.texworks' and the latest texlive update:

~> flatpak info org.freedesktop.Sdk.Extension.texlive 

TeX Live Sdk extension - LaTeX packages and tools

     Kennung: org.freedesktop.Sdk.Extension.texlive
         Ref: runtime/org.freedesktop.Sdk.Extension.texlive/x86_64/22.08
 Architektur: x86_64
       Zweig: 22.08
     Version: 20210325
    Ursprung: flathub
    Sammlung: org.flathub.Stable
Installation: system
 Installiert: 8,4 GB

      Commit: 7871a6a4a290ac66b6756fb16166f8998306b0de4790742891b3768dd13e4462
      Parent: 38edb449529e1da5181c78b656d93349c84d9a9a3beab4bbbde71f580ccb4e47
     Subject: Convert absolute to relative links in luametatex (#116) (6fb7ea8d)
        Date: 2023-04-15 22:27:06 +0000