From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111053 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Re: Set luatex cache directory path Date: Sat, 10 Apr 2021 16:30:24 -0700 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1275096529112310334==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26047"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 11 01:31:02 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVN4A-0006gu-B4 for gctc-ntg-context-518@m.gmane-mx.org; Sun, 11 Apr 2021 01:31:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 310462824BB; Sun, 11 Apr 2021 01:30:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JDrA9lFVy9SG; Sun, 11 Apr 2021 01:30:41 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3503E282530; Sun, 11 Apr 2021 01:30:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF504282530 for ; Sun, 11 Apr 2021 01:30:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wjaiJ7fGMEb4 for ; Sun, 11 Apr 2021 01:30:38 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.49; helo=mail-ot1-f49.google.com; envelope-from=thangalin@gmail.com; receiver= Original-Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id EA02B2824BB for ; Sun, 11 Apr 2021 01:30:37 +0200 (CEST) Original-Received: by mail-ot1-f49.google.com with SMTP id f75-20020a9d03d10000b0290280def9ab76so4186642otf.12 for ; Sat, 10 Apr 2021 16:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=h4hFC2wtxiHRDS+4PhsS20aacnbhFUAkqxSJbTZQ9yM=; b=IATc0j57CrHQ7jXW9EGODUx6YVKgPio8dzxn8NdThNfQiIS223pS0cpgd2sc4700vu GBDgDTeNBJ5bLLpuszTjjaLR7nKYvyK90FH7kwDn4HcIsHQjTfcZdWv9T8b7DqfUB7rp 3ckniaE/YgJGz7M/d9mWsMYj8+kfQLPTgpkQiZikPfnv4mEMf2+53UbSpI9ShRKEriZq S1NVnWpkdGORxAOxb1LYWYJholeGRpzPGcxfKjH0azg4QOIsNV11kyP+KIYomqDJ8eX8 zXDokNQycs27xMsqLy8QVCVBAuy/at+vdPJKOLD3BAeXaiFilO0Kc2zC3Epq6KgwDkX3 NdZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=h4hFC2wtxiHRDS+4PhsS20aacnbhFUAkqxSJbTZQ9yM=; b=YNRtGjwy6dLddL6VeXa5yFxQAaZKOHFyVjIlQRWpQX/nUiqSWWfzdMRyT1XakotpdI T5GjHfTN3iOW5MIS+dmDJ8SBCgNNcaPx6WOJMoQmv847y3tnBTyuYdjbduaXkP+RzfbE Fv5qo4IyAbYsVNuvwyVATPZQ1ko4IJdnsMVaTMTFGz+3i4evwv+2VsdWln/iQ86uQJZM B1oIoEoUkOvhyyjebpnO6ZFQi88WI6jsL6VTryZ8B2KTxsM0hdUUfhTAblnrz408lj5P uhiYQzqDXmNN0YRQeEouSidxNKnW1gx+3SopxYVawoS/uV+QNx8BImQAsTQQrrAkRGJK wG2w== X-Gm-Message-State: AOAM5337GLzc6oJbgIpvXLDK+81if6Wzo2qwVCeww9fDxLFiqb8jH9qP xjDA+nrbitAEUiyf52hiemA+OTjG/aCuLj0Yt3xfGn60lx30NQ== X-Google-Smtp-Source: ABdhPJyKxfg2ulgPrHcHT3Pj80k5q1iDZA8Jeya0Huu7b8Akqmv6X/wcHPPy/68Bilc1J9DvlfwmHl7aFN5Xa7mtNUk= X-Received: by 2002:a05:6830:140f:: with SMTP id v15mr17300297otp.36.1618097436057; Sat, 10 Apr 2021 16:30:36 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:111053 Archived-At: --===============1275096529112310334== Content-Type: multipart/alternative; boundary="000000000000e36cb005bfa6aa1d" --000000000000e36cb005bfa6aa1d Content-Type: text/plain; charset="UTF-8" Are two runs always required to generate a PDF when TEXMFCACHE is set? $ sudo su - $ mkdir -p /opt/context $ cd /opt/context $ wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip $ unzip *zip $ sh install.sh $ exit $ cat test.tex \starttext Test \stoptext $ export TEXMFCACHE=/tmp $ rm -rf $TEXMFCACHE/luatex-cache $ /opt/context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script mtx-context --autopdf test.tex ... resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | remembered file 'mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | remembered file 'mtx-t-mtx-context.lua' resolvers | resolving | remembered file 'mtx-t-mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-t-mtx-context.lua' resolvers | resolving | remembered file 'mtx-context.lua' mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' $ /opt/context/tex/texmf-linux-64/bin/mtxrun --script context --version mtx-context | current version: 2021.04.10 17:09 $ mtxrun --autogenerate --script mtx-context --autopdf test.tex ... mkiv lua stats > runtime: 0.432 seconds, 1 processed pages, 1 shipped pages, 2.315 pages/second system | total runtime: 3.318 seconds of 3.372 seconds The first run fails; the second run succeeds. If TEXMFCACHE is not set, then the first run succeeds. If TEXMFCACHE is set to any non-empty value and $TEXMFCACHE/luatex-cache has not been created, mtxrun always terminates with the same unknown script error. What am I missing to ensure that ConTeXt will create luatex-cache in /tmp when TEXMFCACHE is set and successfully build the PDF on first run? Thank you! --000000000000e36cb005bfa6aa1d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Are two runs always required to generate a PDF when T= EXMFCACHE is set?

$ sudo su -
$ mkdi= r -p /opt/context
$ cd /opt/context
$ unzip *zi= p
$ sh install.sh
$ exit
$ cat test.tex <= br>\starttext
Test
\stoptext
$ export TEXMFCACHE=3D/tmp
$ rm -rf $TEXMFCACHE/luatex-cache
$ /opt/context= /tex/texmf-linux-64/bin/mtxrun --autogenerate --script mtx-context --autopd= f test.tex
...
resolvers =C2=A0 =C2=A0 =C2=A0 | re= solving | remembered file 'mtx-context.lua'
resolvers =C2=A0 =C2= =A0 =C2=A0 | resolving | remembered file 'mtx-contexts.lua'
reso= lvers =C2=A0 =C2=A0 =C2=A0 | resolving | remembered file 'mtx-context.l= ua'
resolvers =C2=A0 =C2=A0 =C2=A0 | resolving | remembered file = 9;mtx-t-mtx-context.lua'
resolvers =C2=A0 =C2=A0 =C2=A0 | resolving = | remembered file 'mtx-t-mtx-contexts.lua'
resolvers =C2=A0 =C2= =A0 =C2=A0 | resolving | remembered file 'mtx-t-mtx-context.lua'resolvers =C2=A0 =C2=A0 =C2=A0 | resolving | remembered file 'mtx-cont= ext.lua'
mtxrun =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| unkno= wn script 'mtx-context.lua' or 'mtx-mtx-context.lua'
<= div>$ /opt/context/tex/texmf-linux-64/bin/mtxrun --script context --version=
mtx-context =C2=A0 =C2=A0 | current version: 2021= .04.10 17:09
$ mtxrun --autogenerate --script mtx-context --a= utopdf test.tex
...
mkiv lua stats =C2=A0> runtime:= 0.432 seconds, 1 processed pages, 1 shipped pages, 2.315 pages/second
s= ystem =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| total runtime: 3.318 seconds of 3= .372 seconds

The first run fails; the second run s= ucceeds.

If TEXMFCACHE is not set, then the fi= rst run succeeds. If TEXMFCACHE is set to any non-empty value and $TEXMFCAC= HE/luatex-cache has not been created, mtxrun always terminates with the sam= e unknown script error.

What am I missing to ensur= e that ConTeXt will create luatex-cache in /tmp when TEXMFCACHE is set and = successfully build the PDF on first run?

Thank you= !
--000000000000e36cb005bfa6aa1d-- --===============1275096529112310334== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1275096529112310334==--