[tldistro] How are distros handling the ConTeXt change?

Dr. Werner Fink werner at suse.de
Tue Jul 4 10:40:41 CEST 2023


On 2023/07/03 20:59:44 +0100, Edd Barrett wrote:
> Hi,
> 
> On Fri, Apr 14, 2023 at 02:47:36PM -0400, Ken Brown wrote:
> > Could you send your patches in their final form?
> 
> Yes, I'm also interested. It doesn't seem to be as simple as symlinking context
> to luametatex.
> 
> ```
> $ context            
> startup error : no format file given, quitting
> ```
> 
> What else has to be done?

In my spec file I use

    pushd ../luametatex*
        %cmake_install
        for exe in context mtxrun
        do
            ln -sf luametatex %{buildroot}%{_bindir}/${exe}
            ln -sf %{_texmfdistdir}/scripts/context/lua/${exe}.lua %{buildroot}%{_bindir}/${exe}.lua
        done
        ln -sf %{_texmfdistdir}/scripts/context/lua/mtx-context.lua %{buildroot}%{_bindir}/mtx-context.lua
    popd

which results after installing

 /suse/werner> ll -G /usr/bin/*.lua
 lrwxrwxrwx 1 root 46 Mar 24 11:29 /usr/bin/context.lua -> ../share/texmf/scripts/context/lua/context.lua
 lrwxrwxrwx 1 root 50 Apr  5 09:57 /usr/bin/mtx-context.lua -> ../share/texmf/scripts/context/lua/mtx-context.lua
 lrwxrwxrwx 1 root 45 Mar 24 11:30 /usr/bin/mtxrun.lua -> ../share/texmf/scripts/context/lua/mtxrun.lua

together with

 /suse/werner> ll /usr/bin/{context,mtxrun}
 lrwxrwxrwx 1 root root 10 Mar 22 14:27 /usr/bin/context -> luametatex
 lrwxrwxrwx 1 root root 10 Mar 22 14:27 /usr/bin/mtxrun -> luametatex

beside this I'm using in resolvers.luacnfspec of mtxrun.lua as well as in data-res.lua

 "home:texmf/web2c",
 "/etc/texmf/web2c",
 "selfautodir:/share/texmf/web2c",

with this I'm able to execute context even in a system wide installation below /usr/share/texmf
nevertheless some files are not found on an example even is part of the data base below
/var/lib/texmf/luametatex-cache/context/

like publ-imp-default.lua, cont-new.mkxl, cont-loc.mkxl, cont-exp.mkxl, cont-sys.mkxl, and
lang-exc.lua

... currently I've no bug reports of what kind so ever which let me assume that the user
base is nearby zero.

[ ... an hours later ... ]

I've removed the !! from $TEXMFDIST in the TEXMF declaration in texmfcnf.lua ... suprise
now it works ;)

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <https://tug.org/pipermail/tldistro/attachments/20230704/b9f43acc/attachment.sig>


More information about the tldistro mailing list.