From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45177 Path: news.gmane.org!not-for-mail From: Tobias Burnus Newsgroups: gmane.comp.tex.context Subject: Re: Context using LuaTeX - distribution packaging question Date: Wed, 29 Oct 2008 20:44:12 +0100 Message-ID: <4908BD0C.30807@net-b.de> References: <49083180.1080607@net-b.de> <49084009.30404@net-b.de> <4908435F.9090801@wxs.nl> <49087A0B.5050206@net-b.de> <49087CDF.9090507@wxs.nl> <4908AE53.3080609@net-b.de> <4908B44F.7040200@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225309658 10810 80.91.229.12 (29 Oct 2008 19:47:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2008 19:47:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 29 20:48:39 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KvH1m-00083W-MO for gctc-ntg-context-518@m.gmane.org; Wed, 29 Oct 2008 20:48:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 12A6C1FC84; Wed, 29 Oct 2008 20:47:18 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31134-01-5; Wed, 29 Oct 2008 20:46:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0BA9E1FC66; Wed, 29 Oct 2008 20:45:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 87D061FC66 for ; Wed, 29 Oct 2008 20:45:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28429-04-2 for ; Wed, 29 Oct 2008 20:44:33 +0100 (CET) Original-Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by ronja.ntg.nl (Postfix) with ESMTP id 5C1C61FBBE for ; Wed, 29 Oct 2008 20:44:13 +0100 (CET) Original-Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1KvGxh-0002iB-GO>; Wed, 29 Oct 2008 20:44:13 +0100 Original-Received: from smart.physik.fu-berlin.de ([160.45.66.6] helo=tux.net-b.de) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1KvGxh-0000tX-ET>; Wed, 29 Oct 2008 20:44:13 +0100 User-Agent: Thunderbird 2.0.0.17 (X11/20080922) In-Reply-To: <4908B44F.7040200@wxs.nl> X-Originating-IP: 160.45.66.6 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:45177 Archived-At: Hi Hans, Hans Hagen wrote: > luat-inp.lua is merged into luatools in order to make in 'stand-alone' > OK, I missed that. By the way, unless I screwed up completely, the new luatools you have sent me work: LuaTools | variable SELFAUTOLOC set to /usr/bin LuaTools | variable SELFAUTODIR set to /usr LuaTools | variable SELFAUTOPARENT set to / LuaTools | variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c} LuaTools | skipping configuration for /usr/share/texmf/web2c from /home/tob/luatex-cache/context/c67bf06401a0e1a39f3ee04c60209dc5/trees/e027248d6557d124c703335e8a95ecd5 The symbolic links are not resolved, but "$SELFAUTODIR/share/texmf/web2c/" is the correct directory. >> b) Following UNIX symbolic links does not seem to work under Linux. I >> played around with luat-inp.lua and it does not work. >> > hm, maybe taco knows .. > I think there is no way round but posix.readlink. However, it might be not needed as the new, just sent "luatools" works. >> c) Werner asks: Why is the KPSE library not used? >> > > several reasons: > I agree about the KPSE shortcomings, however, just for finding "texmf.cnf" KPSE should be good enough. (OK, finding "texmfcnf.lua" does not seem to work well as the "lua" extension means that "web2c" is not searched.) >> For "luatex" itself (contrary to "luatools") there is no problem as >> luatex uses the compile-time path and finds the texmfcnf file. >> > hm, but since luatools is ran using texlus (which is luatex) the same > should apply > I think the algorithm used to find the texmf.cnf file is different and thus a different file is found. Your algorithm never checks "$HOME/texmf/web2c" where a user could have put his file. For pdftex $HOME/texmf/web2c has a higher precedence than /usr/share/texmf/web2c. I assume that the same thing is true for "luatex". In any case the luatex binary contains the following string: /etc/texmf:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c Using KPSE the same string seems to be used to check for the config file. But "luatools" uses a completely different method. As long as the user does not have its own texmf.cnf there is no problem. (Should be the case most of the time.) However, as soon as (s)he has, luatex and "luatools" access different files! > - make sure that luatools is run by texlua and not by lua itself > That seems to be the case - my "lua" does not know about "lfs" and that works with texlua. > - don't use a stub, just rename luatools.lua to luatools and mtxrun.lua > to mtxrun (so, no texmfstart like extra stubs which would slow down > things considerably) > That is done differently: luatools.lua remains like that, but "/usr/bin/luatools" is a symbolic link to "luatools.lua". Tobias ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________