From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55231 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: file name resolving for lua files Date: Thu, 17 Dec 2009 17:25:07 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/mixed; boundary="===============1143388328==" X-Trace: ger.gmane.org 1261067140 11645 80.91.229.12 (17 Dec 2009 16:25:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Dec 2009 16:25:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 17 17:25:31 2009 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 1NLJAH-0003DH-Lc for gctc-ntg-context-518@m.gmane.org; Thu, 17 Dec 2009 17:25:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D8BDC9B8C; Thu, 17 Dec 2009 17:25:18 +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 wqEu+CF+u0C8; Thu, 17 Dec 2009 17:25:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9C05BC9B10; Thu, 17 Dec 2009 17:25:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E1474C9B10 for ; Thu, 17 Dec 2009 17:25: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 ZiA0gKOrsDjY for ; Thu, 17 Dec 2009 17:25:09 +0100 (CET) Original-Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by balder.ntg.nl (Postfix) with ESMTP id B88C8C9B03 for ; Thu, 17 Dec 2009 17:25:09 +0100 (CET) Original-Received: by fxm10 with SMTP id 10so2014613fxm.34 for ; Thu, 17 Dec 2009 08:25:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=iD5FGyXQzJmmdwMGgpPpjZOUBsz6y/267jVU1ksnrRw=; b=m6YRj6alCofu/HsQOsrj+nbB24EPLaE9iGgp3nfpL1zrINPRvN26J2F/bM661cBN2y J8x420ZZobLQ0tA3qtWBN5KXyV5xTFmsIV58nqn2I1aEaTxsPHYpkZwkULI8WRirTMV1 nKF8nXcWi9jdv4tWvzzcafEnwqFNHNEtM2SsE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=Dx4kR8LX6E4/o2i5UYaK7e5ozpGOnmBE6wUGXD3+6EmIOiDnl05s2T+9TasqEf+2tF kijxz4hASHPMpVg/zmcrHGz5x+6l6QHzzZJIxaHr3fV6KDxyfh4TYpOsRuTBRBWxIFge p30YcibSS4xBxLI2ZI4QY3Q8HosCwDtwgtqi8= Original-Received: by 10.223.95.76 with SMTP id c12mr3480823fan.41.1261067109206; Thu, 17 Dec 2009 08:25:09 -0800 (PST) Original-Received: from ?172.16.39.147? ([159.149.106.6]) by mx.google.com with ESMTPS id 31sm3783742fkt.1.2009.12.17.08.25.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Dec 2009 08:25:07 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1077) 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:55231 Archived-At: --===============1143388328== Content-Type: multipart/alternative; boundary=Apple-Mail-3--707934387 --Apple-Mail-3--707934387 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi Aditya, On my machine (Mac OS X) the Minimals are installed and when trying what = you suggest I get the correct path: localhost:~ kavian$ luatools --locate mtxrun.lua /context-minimal/tex/texmf-context/scripts/context/lua/mtxrun.lua localhost:~ kavian$ texmfstart --locate mtxrun.lua /context-minimal/tex/texmf-context/scripts/context/lua/mtxrun.lua localhost:~ kavian$=20 I remember that a long time ago when I was using texlive, at some point = the issues with scripts being in a "stubs" subdirectory of context = appeared, but don't remember how the issue was fixed (maybe Mojca or = Hans did something magic to solve it?). Best regards: OK On 16 d=E9c. 2009, at 16:16, Aditya Mahajan wrote: > Hi, >=20 > I have noticed that my local context update scripts were not always = working correctly. In particular, the mtxrun and luatools file never got = updated. The reason is the following. >=20 > When I run mtxrun --selfupdate I get >=20 > mtxrun --selfupdate > MTXrun | fileio: to be replaced old script > /opt/experimental/tex/texmf-linux-64/bin/mtxrun > MTXrun | fileio: using suffix based filetype 'texmfscripts' > MTXrun | fileio: checking new script > = /opt/experimental/tex/texmf-context/scripts/context/stubs/mswin/mtxrun.lua= > MTXrun | fileio: new script should come from scripts/context/lua >=20 > So, mtxrun is trying to replace mtxrun from the stubs directory. In = fact, if I get the same result from >=20 > luatools --locate mtxrun.lua > = /opt/experimental/tex/texmf-context/scripts/context/stubs/mswin/mtxrun.lua= >=20 > Something is wrong with the search logic as texmfstart also gets this = wrong. >=20 > texmfstart --locate mtxrun.lua > = /opt/experimental/tex/texmf-context/scripts/context/stubs/mswin/mtxrun.lua= % >=20 > However, kpsewhich works correctly. >=20 > kpsewhich mtxrun.lua > /opt/experimental/tex/texmf-context/scripts/context/lua/mtxrun.lua >=20 > Do others also get the same result? Any idea what is going wrong here? >=20 > Aditya >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ %%%%%%%%%%%%%%%%%% Otared Kavian D=E9partement de Math=E9matiques Universit=E9 de Versailles Saint-Quentin B=E2timent Fermat 45 aveue des Etats Unis 78035 Versailles cedex T=E9l=E9phone: +33 1 39 25 46 42 Secr=E9tariat: +33 1 39 25 46 44=20 Secr=E9tariat: +33 1 39 25 46 46 e-mail: Otared.Kavian@math.uvsq.fr --Apple-Mail-3--707934387 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Hi = Aditya,

On my machine (Mac OS X) the Minimals are = installed and when trying what you suggest I get the correct = path:

localhost:~ kavian$ luatools = --locate = mtxrun.lua
/context-minimal/tex/texmf-context/scripts/context/lu= a/mtxrun.lua

localhost:~ kavian$ texmfstart = --locate = mtxrun.lua
/context-minimal/tex/texmf-context/scripts/context/lu= a/mtxrun.lua
localhost:~ = kavian$ 

I remember that a long time = ago when I was using texlive, at some point the issues with scripts = being in a "stubs" subdirectory of context appeared, but don't remember = how the issue was fixed (maybe Mojca or Hans did something magic to = solve it?).

Best regards: = OK

On 16 d=E9c. 2009, at 16:16, Aditya Mahajan = wrote:

Hi,

I have noticed that my local context = update scripts were not always working correctly. In particular, the = mtxrun and luatools file never got updated. The reason is the = following.

When I run mtxrun --selfupdate I get

=    mtxrun --selfupdate
   MTXrun | = fileio: to be replaced old script
=    /opt/experimental/tex/texmf-linux-64/bin/mtxrun
=    MTXrun | fileio: using suffix based filetype = 'texmfscripts'
   MTXrun | fileio: checking new = script
=    /opt/experimental/tex/texmf-context/scripts/context/stub= s/mswin/mtxrun.lua
   MTXrun | fileio: new script = should come from scripts/context/lua

So, mtxrun is trying to = replace mtxrun from the stubs directory. In fact, if I get the same = result from

   luatools --locate mtxrun.lua
=    /opt/experimental/tex/texmf-context/scripts/context/stub= s/mswin/mtxrun.lua

Something is wrong with the search logic as = texmfstart also gets this wrong.

   texmfstart = --locate mtxrun.lua
=    /opt/experimental/tex/texmf-context/scripts/context/stub= s/mswin/mtxrun.lua%

However, kpsewhich works correctly.

=    kpsewhich mtxrun.lua
=    /opt/experimental/tex/texmf-context/scripts/context/lua/= mtxrun.lua

Do others also get the same result? Any idea what is = going wrong = here?

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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

%%%%%%%%%%%%%%%%%%
Otared = Kavian
D=E9partement de Math=E9matiques
Universit=E9 = de Versailles Saint-Quentin
B=E2timent Fermat
45 = aveue des Etats Unis
78035 Versailles = cedex

T=E9l=E9phone: +33 1 39 25 46 = 42
Secr=E9tariat: +33 1 39 25 46 = 44 
Secr=E9tariat: +33 1 39 25 46 = 46



= --Apple-Mail-3--707934387-- --===============1143388328== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1143388328==--