From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55751 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: updating Minimals for MKIV Date: Fri, 22 Jan 2010 13:53:11 -0500 (EST) Message-ID: References: <20100122121417.6a4114c8@gaura-nitai.no-ip.org> <4B59932B.7080605@wxs.nl> <20100122145255.42e5cd08@gaura-nitai.no-ip.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264186401 13513 80.91.229.12 (22 Jan 2010 18:53:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jan 2010 18:53:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 22 19:53:13 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYOd6-000800-Uk for gctc-ntg-context-518@m.gmane.org; Fri, 22 Jan 2010 19:53:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6F967C9CF2; Fri, 22 Jan 2010 19:53:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZezFHBotAswo; Fri, 22 Jan 2010 19:53:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 920BAC9CDD; Fri, 22 Jan 2010 19:53:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EA961C9CEE for ; Fri, 22 Jan 2010 19:53:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QVjVtWdD52NS for ; Fri, 22 Jan 2010 19:53:04 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by balder.ntg.nl (Postfix) with ESMTP id D85D7C9C89 for ; Fri, 22 Jan 2010 19:53:03 +0100 (CET) Original-Received: FROM dhcp128036154176.central.yale.edu (dhcp128036154176.central.yale.edu [128.36.154.176]) By skycaptain.mr.itd.umich.edu ID 4B59F40E.56813.28285 ; Authuser adityam; 22 Jan 2010 13:53:02 EST In-Reply-To: <20100122145255.42e5cd08@gaura-nitai.no-ip.org> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55751 Archived-At: On Fri, 22 Jan 2010, Gour wrote: > On Fri, 22 Jan 2010 12:59:39 +0100 >>>>>>> "Hans" == Hans Hagen wrote: > > Hans> if you download the minimals installer script from the garden and > Hans> run > Hans> > Hans> ./first-update.sh --engine=luatex > > Hmm, the build script does not run first-update.sh but it invokes the > following: > > ... > msg "Starting download or update of ConTeXt distribution" > $srcdir/bin/texlua $srcdir/bin/mtxrun --script > $srcdir/bin/mtx-update.lua \ --platform=$_platform > --texroot=$srcdir/tex --engine=all --extras=all \ --context=beta > --update --force || return 1 > > Maybe I should wait for Aditya to explain what is he doing... This is the best compromise I could get for running MkIV in a multi-user environment. I do not ask the mtx-update script to generate the formats (the --make flag is missing), because this script is running as root. Generating the formats means that luatex-cache will be generated by root, and then a user will never be able to writing anything in the cache directory. So, I do not generate the formats during the update. In the post-install > post_install() { > source /opt/context-minimals/setuptex > mktexlsr > texexec --make cont-en metafun > texexec --make --xetex > echo "*************************************************************" > echo "To use ConTeXt minimals run" > echo ". /opt/context-minimals/setuptex" > echo "To use MkIV run" > echo "luatools --generate" > echo "*************************************************************" > } I generate the pdftex and xetex formats, and ask the user to run luatools --generate. When run for the first time, luatools --generate creates the $TEXMFCACHE directory. Since the command is run by the user, TEXMFCACHE is writable by the user. Once luatools --generate is run, you can simply run "context filename". ConTeXt sees that the formats are wrong and regenerates them on the fly. The first luatools --generate is needed so that mtxrun can find the mtx-context script. (context is just a wrapper around mtx-context.lua). Currently something is going wrong in the installation script. Others have said that you need to "press enter twice" to get it to run. My guess is that something is trying to generate the luatools format, even though I have not asked for it. I will investigate further why this is happening. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________