Discussion:
[tex-k] misleading ls-R advice
Felix Pahl
2015-10-17 16:05:22 UTC
Permalink
Hi -- I followed the instructions at
https://tug.org/texinfohtml/kpathsea.html to use the command

ls -LAR ./ >ls-R

to generate a ls-R file. However, this didn't work, and debugging with
-kpathsea-debug=32 displayed messages of the form

kdebug:db:match(/usr/local/texlive/2015basic/texmf-local//tex/latex/lastpage/lastpage.sty,/usr/local/texlive/2015basic/texmf-local/tex/latex//)
= 0

where the double slash prevented the match -- the correpsonding entry in
the ls-R file was

.//tex/latex/lastpage:

The problem was resolved when I used

ls -LAR . >ls-R

instead (without the extra slash) -- the entry in the ls-R file then becomes

./tex/latex/lastpage:

(again without the extra slash), and the match succeeds:

kdebug:db:match(/usr/local/texlive/2015basic/texmf-local/tex/latex/lastpage/lastpage.sty,/usr/local/texlive/2015basic/texmf-local/tex/latex//)
= 1
Karl Berry
2015-10-17 21:53:47 UTC
Permalink
ls -LAR ./ >ls-R

Interesting. Good debugging. I'll make a fix for the next release.
Thanks, Karl.

Loading...