summaryrefslogtreecommitdiff
path: root/Master/install-tl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-27 21:44:33 +0000
committerKarl Berry <karl@freefriends.org>2023-02-27 21:44:33 +0000
commit7669f918608c9f27bcce138163da6bf29a033a6a (patch)
tree6e61fdf9c863dceecac93da6ece69b4b10cdc93d /Master/install-tl
parent8f843f474a0524b5637bf0aab7617bd0210f67e7 (diff)
run mtxrun --generate and context --luatex --generate as post-install actions, only if the luametatex binary is operational
git-svn-id: svn://tug.org/texlive/trunk@66236 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-xMaster/install-tl22
1 files changed, 15 insertions, 7 deletions
diff --git a/Master/install-tl b/Master/install-tl
index 24bb0db250c..ee8042595f7 100755
--- a/Master/install-tl
+++ b/Master/install-tl
@@ -1349,14 +1349,22 @@ operations might be disturbed.\n\n";
}
}
- # luatex/context setup.
+ # lmtx/context setup. The story here is that in 2023, the lmtx binary
+ # for x86_64-linux was too new to run on the system where we build TL.
+ # (luametatex: /lib64/libm.so.6: version `GLIBC_2.23' not found)
+ # So we have to try running it to see it succeeds, not just test for
+ # the program's existence. And since it exits nonzero given no args,
+ # we have to specify --version. Hope it keeps working like that ...
+ my $lmtx = "$plat_bindir/luametatex$progext";
if (exists($install{"context"}) && $install{"context"} == 1
- && -x "$plat_bindir/luametatex$progext"
- && !exists $ENV{"TEXLIVE_INSTALL_NO_CONTEXT_CACHE"}) {
-; # x86_64-linux binary too new
-# info("setting up ConTeXt cache: ");
-# $errcount += run_postinst_cmd("mtxrun --generate");
-# $errcount += run_postinst_cmd("context --luatex --generate");
+ && !exists $ENV{"TEXLIVE_INSTALL_NO_CONTEXT_CACHE"}
+ && TeXLive::TLUtils::system_ok("$lmtx --version")
+ ) {
+ info("setting up ConTeXt cache: ");
+ $errcount += run_postinst_cmd("mtxrun --generate");
+ $errcount += run_postinst_cmd("context --luatex --generate");
+ } else {
+ debug("skipped ConTeXt cache setup\n");
}
# all formats option