[dev-context] Re: 2005-05-30 texexec

Patrick Gundlach patrick at gundla.ch
Wed Jun 1 13:03:20 CEST 2005



>> TeXExec | using tex format path /var/tmp/tetex3/texmf-sysvar/web2c/pdfetex
>> /opt/context/current/texmf/scripts/context/ruby/base/tex.rb:239:in `initialize': Permission denied - cont-fmt.tex (Errno::EACCES)

> hey, what does this mean; that the var dir is non writable?

No, it is writable:

/var/tmp/tetex3/texmf-sysvar/web2c$ mkdir pdftex
/var/tmp/tetex3/texmf-sysvar/web2c$ ls -d pdftex

> in this tex.rb file, can you replace
>      def openedfile(name)
>          begin
>              f = File.open(name,'w')
>          rescue
>              report("file '#{File.expand_path(name)}' cannot be opened for writing")
>              return nil
>          else
>              cleanuplater(name) if f
>              return f
>          end
>      end
> and see what happens? btw, the cont-fmt file holds format generatation
> parameters (also in texexec.pl)

error again

TeXExec | using tex engine pdfetex
TeXExec | using tex format path /var/tmp/tetex3/texmf-sysvar/web2c/pdfetex
TeXExec | file '/var/tmp/tetex3/texmf-sysvar/web2c/pdfetex/cont-fmt.tex' cannot be opened for writing
TeXExec | file '/var/tmp/tetex3/texmf-sysvar/web2c/pdfetex/mult-def.tex' cannot be opened for writing
TeXExec | generating tex format cont-en
TeXExec | pdfetex --progname=context --ini --translate-file=natural.tcx *cont-en
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (INITEX)
entering extended mode
! I can't write on file `cont-en.log'.

But to repeat myself: I do not want texexec or any other program to
write the format file there.

I can find the format file with kpsewhich in /opt/context/... and
texexec should use this information. No need for multiple format files
in different places.


> unfortunately the last few years downward compatibility is dropped at
> the binarty / tds level, which is in my opinion a bad thing (part can
> be catched by a different texsmf.cnf file, e.g. context.cnf)

Well, texexec also just broke compatibility by introducing a different
behaviour to --alone and fiddling with the TeX search path in the
background. IMO texexec should not try to do "everything". Generating
the format is fine, but don't try to guess where to place the format
for *every* distributon.

> the fact that you use tetex does not help much since it's meant as a
> install from scratch and forget about your own stuff' kind of
> environment.

So what distribution would serve me better?

ConTeXt wiki and more: http://contextgarden.net

More information about the dev-context mailing list