[tex-k] Re: first steps with libkpathsea

Patrick Gundlach texkml at contextgarden.net
Mon Jun 13 18:58:33 CEST 2005


Hi Taco (and others),

> Are you use the file exists on your system? It works for me, but
> only thanks to an aliases entry that maps ec.enc -> EC.enc:
>
> filename=/opt/tex/teTeX/texmf/fonts/enc/dvips/base/EC.enc

well, the command line tool kpsewhich finds it, so I'd like to be able
to find it. But the same holds for eg. 'context.tex' and format
kpse_tex_format but 'texmf.cnf' and kpse_cnf_format works fine. So I
am a bit clueless.

My output starts like this:
--------------------------------------------------
kdebug:fopen(./kptest, r) => 0xa000dcec
kdebug:fclose(0xa000dcec) => 0
kdebug:kpse_normalize_path (/Users/pg/prog/ruby/texstuff/kpathsea) => 1
kdebug:kpse_normalize_path (/Users/pg/prog/ruby/texstuff/kpathsea) => 1
kdebug:kpse_normalize_path (/Users/pg/prog/ruby/texstuff/kpathsea/texmf.cnf) => 1
kdebug:kpse_normalize_path (/Users/pg/prog/ruby/texstuff) => 1
kdebug:kpse_normalize_path (/Users/pg/prog/ruby/texstuff) => 1
kdebug:kpse_normalize_path (/Users/pg/prog/ruby/texstuff/texmf.cnf) => 1
kdebug:kpse_normalize_path (/Users/pg/prog/ruby) => 1
kdebug:kpse_normalize_path (/Users/pg/prog/ruby) => 1
kdebug:kpse_normalize_path (/Users/pg/prog/ruby/texmf.cnf) => 1
--------------------------------------------------
and of course, there is no TeX stuff in there.


The only places where /opt/tetex/.... is shown in my debug output are
the following:

--------------------------------------------------
kdebug:kpse_normalize_path (/opt/tetex/3.0/texmf/web2c) => 1
kdebug:kpse_normalize_path (/opt/tetex/3.0/texmf/web2c) => 1
kdebug:kpse_normalize_path (/opt/tetex/3.0/texmf/web2c/texmf.cnf) => 1
kdebug:kpse_normalize_path (/opt/tetex/3.0/texmf/web2c) => 1
kdebug:kpse_normalize_path (/opt/tetex/3.0/texmf/web2c/texmf.cnf) => 1
kdebug:fopen(/opt/tetex/3.0/texmf/web2c/texmf.cnf, r) => 0xa000dcec
kdebug:fclose(0xa000dcec) => 0
kdebug:fopen(/opt/tetex/3.0/texmf/web2c/texmf.cnf, r) => 0xa000dcec
kdebug:fclose(0xa000dcec) => 0
--------------------------------------------------

I see that there are some entries with $SELFAUTOPARENT which probably
fail due to the fact that my binary is somewhere far outside the TeX
tree.

--------------------------------------------------
kdebug:hash_lookup(TEXMFMAIN.kptest) => (nil)
kdebug:hash_lookup(TEXMFMAIN) => $SELFAUTOPARENT/texmf $SELFAUTOPARENT/texmf
--------------------------------------------------

So the question would be: how do I get the main TeX tree searched
without reconfiguring texmf.cnf?

Thanks so far,

Patrick



More information about the tex-k mailing list