Changeset a9b0c5e


Ignore:
Timestamp:
04/02/2023 04:31:23 PM (13 months ago)
Author:
Ken Moffat <ken@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
e029a45
Parents:
9167f8d
git-author:
Ken Moffat <ken@…> (04/02/2023 03:33:37 PM)
git-committer:
Ken Moffat <ken@…> (04/02/2023 04:31:23 PM)
Message:

Texlive - minimal workaround for ConTeXt.

Use scripts so that 'mkiv' (based on luatex) will work,
rather than requiring extra package 'luametatex' which
is very different from the rest of texlive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pst/typesetting/texlive.xml

    r9167f8d ra9b0c5e  
    379379<screen role="root"><userinput>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib</userinput></screen>
    380380
     381    <note>
     382      <!-- following based on fedora, but amended to run in the BLFS
     383           layout, where adapting fedora's script for mtxrun did not
     384           reliably work. ken -->
     385      <para>
     386        TeXLive includes some files for ConTeXt but the source of that is
     387        separate and has moved on from using luatex in the previous 'mkiv'
     388        version to using luametatex which can be pulled with git from
     389        <ulink url="href=https://github.com/contextgarden/luametatex/releases/tags/"/>.
     390        Luametatex uses meson and ninja, but it does not fit easily into
     391        the BLFS layout of TeXLive.
     392      </para>
     393      <para>
     394        However, with a little extra work 'mkiv' files can still be processed
     395        using the files shipped in texmf.
     396      </para>
     397    </note>
     398
     399    <para>
     400       The following steps, run as the
     401       <systemitem class="username">root</systemitem> user, will create
     402       <command>mtxrun</command> and <command>context</command> and
     403       then use <command>mtxrun --generate</command> (again, a lot of
     404       output) to initialize the context system:
     405     </para>
     406
     407<!-- I've put blank lines in this to make it a little less hard to read. ken -->
     408<screen role="root"><userinput>mkdir -pv $TEXLIVE_PREFIX/texmf-var/luatex-cache/context/ &amp;&amp;
     409
     410ln -sfv /$TEXLIVE_PREFIX/texmf-dist/scripts/context/lua/mtxrun.lua \
     411        /$TEXLIVE_PREFIX/bin/$TEXARCH/mtxrun &amp;&amp;
     412
     413cat > $TEXLIVE_PREFIX/bin/$TEXARCH/context &lt;&lt; EOF
     414#!/bin/sh
     415export TEXMF=$TEXLIVE_PREFIX/texmf-dist;
     416export TEXMFCNF=$TEXLIVE_PREFIX/texmf-dist/web2c;
     417export TEXMFCACHE=$TEXLIVE_PREFIX/texmf-var/luatex-cache/context/;
     418$TEXLIVE_PREFIX/bin/$TEXARCH/mtxrun --script context "\$@"
     419EOF
     420chmod -v 0755 $TEXLIVE_PREFIX/bin/$TEXARCH/context &amp;&amp;
     421
     422mtxrun --generate</userinput></screen>
     423
    381424    <para>
    382425      You can now proceed to <xref linkend="asymptote"/>,
     
    456499    </para>
    457500
    458 <!--<para>
    459       <command>mtxrun \-\-generate</command>: This initializes the ConTeXt system.
    460     </para>-->
     501    <para>
     502      <command>mkdir -pv $TEXLIVE_PREFIX/texmf-var/luatex-cache/context/</command>:
     503      the context script created after this will not run correctly if this
     504      directory is not present.
     505    </para>
     506
     507    <para>
     508      <command>mtxrun --generate</command>: This initializes the ConTeXt system.
     509    </para>
    461510
    462511  </sect2>
Note: See TracChangeset for help on using the changeset viewer.