Changeset 0c60ebd9


Ignore:
Timestamp:
03/15/2024 10:46:20 PM (2 months ago)
Author:
Ken Moffat <zarniwhoop@…>
Branches:
ken/TL2024, lazarus, trunk
Children:
8790467
Parents:
29c5331
Message:

texlive - remove context mkiv.

Explain why context is not present.

In the the unlikely event that somebody wishes to build context
from source, link to my old comments in the 2023 ticket, and to
the source tags at github.

Also mention that first installing (only) context from the binary
sounds like the easiest way to do this - the way we used to use the
full binary to bootstrap the source build.

Change a lingering 'command' to 'parameter' in the explanations.

Location:
pst/typesetting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pst/typesetting/texlive.xml

    r29c5331 r0c60ebd9  
    349349
    350350    <note>
    351       <!-- following based on fedora, but amended to run in the BLFS
    352            layout, where adapting fedora's script for mtxrun did not
    353            reliably work. ken -->
    354       <para>
    355         TeXLive includes some files for ConTeXt but the source of that is
    356         separate and has moved on from using luatex in the previous 'mkiv'
    357         version to using luametatex which can be pulled with git from <ulink
    358         url="https://github.com/contextgarden/luametatex/tags">github luametatex</ulink>.
    359         LuaMetaTeX uses meson and ninja, but it does not fit easily into
    360         the BLFS layout of TeXLive.
    361         <!-- FIXME - when removing, keep that link to luametatex tags, and note
    362         that building and installing that to fit with a BLFS install of TeXLive
    363         will not be a trivial exercise.-->
    364       </para>
    365       <para>
    366         However, with a little extra work 'mkiv' files can still be processed
    367         using the files shipped in texmf.
    368       </para>
    369 
    370       <para>
    371         <emphasis>Fixes to use ConTeXt will be removed when the texlive source next
    372         has to be updated for either a vulnerability fix which requires backporting
    373         luatex changes, or for TeXLive 2024. If you are a BLFS user of ConTeXt you
    374         should be prepared to use the latest tag from github (the link is
    375         in first paragraph of this Note). Building and installing that to work with
    376         a BLFS install of TeXLive will not be a trivial exercise.</emphasis>
     351      <para>
     352        TeXLive does not include the source for ConTeXt, only the items that
     353        are at CTAN. Trying to build ConTeXt purely from source on a  BLFS
     354        TeXLive system is a niche usage and looks as if it will be more trouble
     355        than it is worth.
     356      </para>
     357
     358      <para>
     359        If you wish to use ConTeXt with <command>luametatex</command> (most of
     360        the old MKII and MKIV code was removed from TeXLive 2023 by the ConTeXt
     361        developer), starting with the binary (only installing ConTeXt) would
     362        probably be the easiest way to bootstrep it. The source for
     363        <command>luametatex</command> can be pulled with git from <ulink
     364        url="https://github.com/contextgarden/luametatex/tags">github
     365        luametatex</ulink>, compiled with meson and ninja, and installed by
     366        copying to the correct program directory. This should avoid having to
     367        fix all the symlinks etc and also avoid including the many unrelated
     368        <!-- trying to use a filename tag here is rejected within para ?? -->
     369        parts of texmf-dist.
     370        See comments 1 to 5 of
     371        <ulink url="&blfs-ticket-root;17823">#17823</ulink>.
    377372      </para>
    378373    </note>
    379 
    380     <para>
    381        The following steps, run as the
    382        <systemitem class="username">root</systemitem> user, will create
    383        <command>mtxrun</command> and <command>context</command>.
    384      </para>
    385 
    386 <!-- I've put blank lines in this to make it a little less hard to read. ken -->
    387 <screen role="root"><userinput>sed -e '/local template=\[\[--ini/s/\(primaryflags%\)\(.*\)/\1 --socket --shell-escape \2/' \
    388  -e '/local template=\[\[%primaryflags%/s/\(primaryflags%\)\(.*\)/\1 --socket --shell-escape \2/' \
    389   -i $TEXLIVE_PREFIX/texmf-dist/scripts/context/lua/mtxrun.lua &amp;&amp;
    390 
    391 mkdir -pv $TEXLIVE_PREFIX/texmf-var/luatex-cache/context/ &amp;&amp;
    392 
    393 ln -sfv /$TEXLIVE_PREFIX/texmf-dist/scripts/context/lua/mtxrun.lua \
    394         /$TEXLIVE_PREFIX/bin/$TEXARCH/mtxrun &amp;&amp;
    395 
    396 cat > $TEXLIVE_PREFIX/bin/$TEXARCH/context &lt;&lt; EOF
    397 #!/bin/sh
    398 export TEXMF=$TEXLIVE_PREFIX/texmf-dist;
    399 export TEXMFCNF=$TEXLIVE_PREFIX/texmf-dist/web2c;
    400 export TEXMFCACHE=$TEXLIVE_PREFIX/texmf-var/luatex-cache/context/;
    401 $TEXLIVE_PREFIX/bin/$TEXARCH/mtxrun --script context "\$@"
    402 EOF
    403 chmod -v 0755 $TEXLIVE_PREFIX/bin/$TEXARCH/context</userinput></screen>
    404374
    405375    <para>
     
    415385
    416386    <para>
    417       <command>patch -Np1 -i ../texlive-&texlive-version;-source-security_fix-1.patch</command>:
    418       this updates the luatex source to v1.17.0 to fix security issues.
    419     </para>
    420 
    421     <para>
    422       <command>sed -e '/local template (...)' (...)mtxrun.lua</command>: this makes a
    423       change in a texmf-dist script so that ConTeXt can now run with luatex-v1.17.0.
    424     </para>
    425 
    426     <para>
    427387      <command>-C</command>: create config.cache, this saves significant
    428388      time in a parallel build.
     
    448408
    449409    <para>
    450       <command>--disable-dvisvgm</command>: As noted above, the shipped version
     410      <parameter>--disable-dvisvgm</parameter>: As noted above, the shipped version
    451411      of dvisvgm, which has modified configuration files, cannot be built with
    452412      shared system libraries.
     
    484444      <command>fmtutil-sys --all</command>: This initializes the TeX formats,
    485445      Metafont bases and Metapost mems.
    486     </para>
    487 
    488     <para>
    489       <command>mkdir -pv $TEXLIVE_PREFIX/texmf-var/luatex-cache/context/</command>:
    490       the context script created after this will not run correctly if this
    491       directory is not present.
    492446    </para>
    493447
  • pst/typesetting/tl-installer.xml

    r29c5331 r0c60ebd9  
    6464        developer), using the binary is probably the easiest option. The source
    6565        no-longer ships with TeXLive and is poorly adapted to building with
    66         systems excepti those running Mac and Windows. See comments 1 to 5 of
     66        systems except those running Mac and Windows. See comments 1 to 5 of
    6767        <ulink url="&blfs-ticket-root;17823">#17823</ulink>.
    6868      </para>
Note: See TracChangeset for help on using the changeset viewer.