[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#392195: tetex-bin: Lots of access to nonexistent /share/* files



Toby Speight <T.M.Speight.90@cantab.net> wrote:

> 0> In article <[🔎] 86ac4168us.fsf@alhambra.kuesterei.ch>,
> 0> Frank Küster <URL:mailto:frank@kuesterei.ch> ("fant") wrote:
>
> fant> /etc/cron.daily/tetex-bin running mktexlsr.
> fant>
> fant> I think the following command will also trigger it:
> fant>
> fant> kpsewhich --expand-var='$TEXMF'
> fant>
> fant> Is that right?  If yes, then run
> fant>
> fant> kpsewhich --debug=127 --expand-var='$TEXMF' 2>kpsewhich.log
> fant>
> fant> and send us the resulting file.
>
> Yes, I get one attempt on each of /share/texmf-local and /share/texmf
> by running that (I assume it gets called many times during the
> install).

Well, nearly.  It's the commandline utility to use libkpathsea, which is
in fact used during the install, but most of the attempts during install
are probably by (pdf)tex, omega etc. which are linked to the library.

> /--------[ kpsewhich.log ]
> | kdebug:fopen(/usr/bin/kpsewhich, r) => 0x804d090
> | kdebug:fclose(0x804d090) => 0
> | kdebug:Search path for cnf files (from compile-time paths.h)
> | kdebug:  = /usr/bin:/usr:/:/usr/bin/share/texmf-local/web2c:/usr/share/texmf-local/web2c://share/texmf-local/web2c:/usr/bin/texmf-local/web2c:/usr/texmf-local/web2c://texmf-local/web2c:/usr/bin/share/texmf/web2c:/usr/share/texmf/web2c://share/texmf/web2c:/usr/bin/texmf/web2c:/usr/texmf/web2c://texmf/web2c::/usr/share/texmf/web2c:/usr/share/texmf/web2c
> | kdebug:  before expansion = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}:$TETEXDIR:/usr/share/texmf/web2c:/usr/share/texmf/web2c

That just shows that I managed to somehow not apply the patch that I
created.  But now that I know what to look for in the kpathsea debug
output, I can reproduce it myself.  I did the patching right now and
tried, and voila:

kdebug:fopen(/usr/bin/kpsewhich, r) => 0x804d048
kdebug:fclose(0x804d048) => 0
kdebug:Search path for cnf files (from compile-time paths.h)
kdebug:  = :/usr/share/texmf/web2c:/usr/share/texmf/web2c
kdebug:  before expansion = $TETEXDIR:/usr/share/texmf/web2c:/usr/share/texmf/web2c

Good news is also that it's sufficient to change libkpathsea4, so
texlive will be fixed at the same time.  

Just to be sure, will you please download libkpathsea4 again from 

http://people.debian.org/~frank/libkpathsea4_3.0-22~1_i386.deb

and make sure that it doesn't try to bother your automounter?

Thanks in advance, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: