ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Tobias Burnus <burnus@net-b.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Context using LuaTeX	- distribution packaging question
Date: Wed, 29 Oct 2008 19:41:23 +0100	[thread overview]
Message-ID: <4908AE53.3080609@net-b.de> (raw)
In-Reply-To: <49087CDF.9090507@wxs.nl>

Hi Hans,

Hans Hagen wrote:
> you use an old luatools / luat-inp.lua;
I updated now luat-inp.lua from the latest experimental cont-tmf.zip,
however, that does not help.

a) luatools.lua does not use luat-inp.lua (and luatools.lua is up to
date in TeX Live) Thus updating does not help. (Besides, without the
texmfcnf file, luatools.lua cannot use any other file as one cannot
search for it.)

b) Following UNIX symbolic links does not seem to work under Linux. I
played around with luat-inp.lua and it does not work.

c) Werner asks: Why is the KPSE library not used? I have to agree - KPSE
uses the compile-time defaults for the path and thus should provide the
correct default TEXMFCNF directory. Afterwards, I'm fine using a
non-KPSE method. How about using KPSE as backup method if it doesn't
find a config file otherwise?


For "luatex" itself (contrary to "luatools") there is no problem as
luatex uses the compile-time path and finds the texmfcnf file.


Back to (b): The symbolic links support in luat-inp.lua seems only to
work if your "directory" is a symbolic link but not if the file is a
symbolic link, e.g. "foo/bin -> /usr/local/bar-bin" then for
"foo/bin/file" doing "chdir(foo/bin)" makes sense as then "currentdir()"
prints "/usr/local/bar-bin" but this does not work for /usr/bin/luatools
-> ../share/texmf/..../luatools.lua as the chdir(/usr/bin) makes no
difference.

One really needs "posix.readlink" support, which is not in my texlua.
Or, alternative 2, if path ends in bin, try "../share/texmf" as my old
patch does. Or one indeed uses KPSE:
            kpse.set_program_name('luatex')
            local kpse_result1 = kpse.find_file(input.luaname,'cnf',true)
            local kpse_result2 = kpse.find_file(input.cnfname,'cnf')

I'm also open for other suggestions.

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
___________________________________________________________________________________


  reply	other threads:[~2008-10-29 18:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-29  9:48 Tobias Burnus
2008-10-29 10:50 ` Tobias Burnus
2008-10-29 11:05   ` Hans Hagen
2008-10-29 11:56     ` Tobias Burnus
2008-10-29 14:58     ` Tobias Burnus
2008-10-29 15:10       ` Hans Hagen
2008-10-29 18:41         ` Tobias Burnus [this message]
2008-10-29 18:55           ` Tobias Burnus
2008-10-29 21:47             ` Hans Hagen
2008-10-30  7:13             ` Peter Münster
2008-10-29 19:06           ` Hans Hagen
2008-10-29 19:44             ` Tobias Burnus
2008-10-29 21:32               ` Hans Hagen
2008-10-30 10:07                 ` Tobias Burnus
2008-10-30 10:28                   ` luigi scarso
2008-10-30 10:54                   ` Hans Hagen
2008-10-29 19:08           ` Hans Hagen
2008-10-29 11:03 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4908AE53.3080609@net-b.de \
    --to=burnus@net-b.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).