[tex-live] ls-R oddness

Edd Barrett vext01 at gmail.com
Fri Apr 29 12:01:36 CEST 2011


Hi,

As some of you already know, I package texlive for OpenBSD. A fellow
developer has spotted some bizarre behavior from mktexlsr. I will try
my best to explain.

We split the large texmf tree down into 3 packages: {minimal, full,
docs}, then there is a "base" package which contains all of the
compilers.

1) If you install texlive_base (which depends upon
texlive_texmf-minimal) the package tools run "mktexlsr" to make ls-Rs
for directories defined in texmf.cnf. Let us take
/usr/local/share/texmf/ls-R as an example. We stash that file away for
later examination.

2) Now we install texlive_texmf-full. This installs some more files
into the system texmf, again the ls-Rs are updated at package install
time.

3) Now we immediately uninstall texlive_texmf-full again. So now
our texmf is back in the state it was after 1).

Now diff the ls-R we stashed away and the one in the system texmf.
They should be identical, but are not.

Looking at one of the files which has appeared in the ls-R,
scripts/a2ping/a2ping.pl. This file is in texlive_base, so one would
have expected this to have been hashed at 1). Yet it only shows after
we installed a larger texmf, hashed that, then reverted the texmf,
then re-hashed. Weird.

'psewhich a2ping.pl' seems to never locate a2ping.pl in either case anyway. But
this leaves us a little confused. Can someone explain this behaviour? Is it a
bug or is something clever happening?

I'm going to CC in some other devs who are interested, so please hit reply-all.

Below you can see a diff of texmf/ls-R at 1) vs. at 3).

Cheers

--- texmf/ls-R	Fri Apr 29 10:14:38 2011
+++ /usr/local/share/texmf/ls-R	Fri Apr 29 10:18:32 2011
@@ -1,5 +1,7 @@
 % ls-R -- filename database for kpathsea; do not change this line.
 ./:
+asymptote
+chktex
 doc
 dvipdfm
 dvipdfmx
@@ -10,10 +12,20 @@
 scripts
 tex
 texconfig
+texdoc
+texdoctk
 ttf2pk
 web2c
 xdvi
+xindy
 
+./asymptote:
+GUI
+
+./asymptote/GUI:
+
+./chktex:
+
 ./doc:
 
 ./dvipdfm:
@@ -232,21 +244,49 @@
 
 
 ./scripts:
+a2ping
+simpdftex
 tetex
+tex4ht
+texdoc
+texlive
 xindy
 
+./scripts/a2ping:
+a2ping.pl
+
+./scripts/simpdftex:
+simpdftex
+
 ./scripts/tetex:
+e2pall.pl
+texdoctk.pl
 updmap.pl
 
+./scripts/tex4ht:
+
+./scripts/texdoc:
+texdoc.tlu
+
+./scripts/texlive:
+rungs.tlu
+tlmgr.pl
+
 ./scripts/xindy:
 texindy.pl
 xindy.pl
 
 ./tex:
+context
 fontinst
 generic
 latex
 
+./tex/context:
+asymptote
+
+./tex/context/asymptote:
+
 ./tex/fontinst:
 afm2pl
 
@@ -292,11 +332,14 @@
 
 ./tex/latex:
 afm2pl
+asymptote
 dvipdfm
 
 ./tex/latex/afm2pl:
 uclcptm.sty
 
+./tex/latex/asymptote:
+
 ./tex/latex/dvipdfm:
 dvipdfm.def
 
@@ -317,6 +360,10 @@
 ./texconfig/x:
 xterm
 
+./texdoc:
+
+./texdoctk:
+
 ./ttf2pk:
 VPS.rpl
 ttf2pk.cfg
@@ -366,3 +413,164 @@
 ./xdvi/pixmap:
 toolbar.xpm
 toolbar2.xpm
+
+./xindy:
+modules
+
+./xindy/modules:
+base
+class
+lang
+ord
+rules
+styles
+tex
+
+./xindy/modules/base:
+
+./xindy/modules/class:
+
+./xindy/modules/lang:
+albanian
+belarusian
+bulgarian
+croatian
+czech
+danish
+dutch
+english
+esperanto
+estonian
+finnish
+french
+general
+georgian
+german
+greek
+gypsy
+hausa
+hebrew
+hungarian
+icelandic
+italian
+klingon
+kurdish
+latin
+latvian
+lithuanian
+lower-sorbian
+macedonian
+mongolian
+norwegian
+polish
+portuguese
+romanian
+russian
+serbian
+slovak
+slovenian
+spanish
+swedish
+turkish
+ukrainian
+upper-sorbian
+vietnamese
+
+./xindy/modules/lang/albanian:
+
+./xindy/modules/lang/belarusian:
+
+./xindy/modules/lang/bulgarian:
+
+./xindy/modules/lang/croatian:
+
+./xindy/modules/lang/czech:
+
+./xindy/modules/lang/danish:
+
+./xindy/modules/lang/dutch:
+
+./xindy/modules/lang/english:
+
+./xindy/modules/lang/esperanto:
+
+./xindy/modules/lang/estonian:
+
+./xindy/modules/lang/finnish:
+
+./xindy/modules/lang/french:
+
+./xindy/modules/lang/general:
+
+./xindy/modules/lang/georgian:
+
+./xindy/modules/lang/german:
+
+./xindy/modules/lang/greek:
+
+./xindy/modules/lang/gypsy:
+
+./xindy/modules/lang/hausa:
+
+./xindy/modules/lang/hebrew:
+
+./xindy/modules/lang/hungarian:
+
+./xindy/modules/lang/icelandic:
+
+./xindy/modules/lang/italian:
+
+./xindy/modules/lang/klingon:
+
+./xindy/modules/lang/kurdish:
+
+./xindy/modules/lang/latin:
+
+./xindy/modules/lang/latvian:
+
+./xindy/modules/lang/lithuanian:
+
+./xindy/modules/lang/lower-sorbian:
+
+./xindy/modules/lang/macedonian:
+
+./xindy/modules/lang/mongolian:
+
+./xindy/modules/lang/norwegian:
+
+./xindy/modules/lang/polish:
+
+./xindy/modules/lang/portuguese:
+
+./xindy/modules/lang/romanian:
+
+./xindy/modules/lang/russian:
+
+./xindy/modules/lang/serbian:
+
+./xindy/modules/lang/slovak:
+
+./xindy/modules/lang/slovenian:
+
+./xindy/modules/lang/spanish:
+
+./xindy/modules/lang/swedish:
+
+./xindy/modules/lang/turkish:
+
+./xindy/modules/lang/ukrainian:
+
+./xindy/modules/lang/upper-sorbian:
+
+./xindy/modules/lang/vietnamese:
+
+./xindy/modules/ord:
+
+./xindy/modules/rules:
+
+./xindy/modules/styles:
+
+./xindy/modules/tex:
+inputenc
+
+./xindy/modules/tex/inputenc:

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk


More information about the tex-live mailing list