Re: ConTeXt installtion and Debian
On Wed, Oct 25, 2006 at 03:33 +0200, Norbert Preining wrote:
> On Die, 24 Okt 2006, Ralf Stubner wrote:
> > Minor point: /etc/texmf is a TEXMF tree that IMHO should follow TDS,
> > hence
> > /etc/texmf/tex/context/formats.cnf
> > might be more appropriate.
>
> What is the use of it to putting it there? No kpsewhich will *EVER*
> search for it.... only if we adapt the ctxfmtutil script, but we can
> hard-code the path anyway. This is *NOT* a default TeX input file, none
> which is read by normal programs.
Ok, in that case I would say leave it like that.
> > > On removal currently I don't do anything, because I don't know how to
> > > know which files should be removed. But this shouldn't be to hard,
> > > remove /usr/share/texmf/web2c/$engine/$format.*
> >
> > Really /usr/share? To which tree are format files written?
>
> To /usr/share/texmf/web2c/$engine/ if it is writable, otherwise to
> $TEXMFCONFIG/web2c/$engine/, ie ~/.texmf-config/web2c/$engine/
>
> > > BTW, here is the code for the script, it is short:
> > > #!/bin/bash
> > > # context-build-formats
> > > export TEXMFSYSCONFIG=/usr/share/texmf
> >
> > Why that? (Probably related to the question to which tree format files
> > are written.)
>
> Because otherwise the formats are written to
> /etc/texmf/web2c/$engine/
> which is TEXMFSYSCONFIG, but we want .fmt files in /usr/share/texmf.
>
> Did I get it completely wrong????
Let's see if I got this correctly: By default, texexec writes generated
format files to TEXMFSYSCONFIG. If that is not writable, it uses
TEXMFCONFIG. Right? IMHO texexec is very wrong here, since format files
are *not* configuraton files. TEXMF(SYS)VAR, as used by fmtutil(-sys)
would be a much better place.
So as a workaround we could use
export TEXMFSYSCONFIG=/var/lib/texmf
but redefining TEXMFSYSCONFIG hides any file in /etc/texmf during
generation of the ConTeXt formats. Not good, especially since there
seems to be a "user file" used for configuration of the formats. At
least one can regenerate new formats at any time, ie, also when /usr is
mounted read-only.
The right solution would be to fix texexec so that it generates format
files in TEXMFSYSVAR or, if that isn't writable, in TEXMFVAR.
cheerio
ralf
Reply to: