Bug#449229: tex-common: texdoc finds html pages from catalogue first
Package: tex-common
Version: 1.9
Severity: normal
,----[ 90TeXDoc.cnf ]
| % the default extensions for documentation
| TEXDOCSSUFFIX = .pdf:.dvi:.ps:.txt
| % we allow some compression methods
| TEXDOCSCOMPRESS = :.gz:.bz2
| % put html at the very end, to avoid showing the Catalogue:
| TEXDOCHTML = .html
| % and put that all now together
| TEXDOCEXT = {$TEXDOCSSUFFIX}{$TEXDOCSCOMPRESS}:{$TEXDOCHTML}{$TEXDOCSCOMPRESS}
`----
However, this does not work, since TEXDOCEXT is already defined by
45TeXinputs.cnf and texmf.cnf is odd in that *earlier* entries take
precedence. This can be seen from
$ kpsewhich -var-value=TEXDOCEXT
{:.pdf:.ps:.dvi:.html:.txt:.tex}{:.gz:.bz2:.zip:.Z}
which is the value defined in 45TeXinputs.cnf. The effect of this is
that, eg, for everyshi the html page from the Catalogue is found
first:
$ texdoc -l everyshi
/usr/share/texmf-texlive/doc/english/catalogue/entries/everyshi.html
/usr/share/texmf-texlive/doc/latex/everyshi/everyshi.dvi.gz
This does not happen with many other packages, since their
documentation comes in (uncompressed) PDF files:
$ texdoc -l array
/usr/share/texmf-texlive/doc/latex/tools/array.pdf
/usr/share/texmf-texlive/doc/english/catalogue/entries/array.html
Possbile solutions:
* put 90TeXDoc.cnf as 40TeXDoc.cnf before 45TeXinputs.cnf
* replace the definitions in 45TeXinputs.cnf by those in 90TeXDoc.cnf
and remove the latter file
* fix texdoc so that it does not matter if a file is compressed or not
cheerio
ralf
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages tex-common depends on:
ii debconf 1.5.11 Debian configuration management sy
ii ucf 2.0020 Update Configuration File: preserv
tex-common recommends no packages.
Versions of packages texlive-base depends on:
ii texlive-base-bin 2007-14.np.etch.1 TeX Live: Essential binaries
ii texlive-common 2007-12 TeX Live: Base component
ii texlive-doc-base 2007-3 TeX Live: Base documentation
-- debconf information:
tex-common/check_texmf_wrong:
tex-common/check_texmf_missing:
Reply to: