Bug#869185: /usr/share/texlive/texmf-dist/scripts/texdoctk/texdoctk.pl: kpsewhich cannot find the configuration file, texdoctk dies
Package: texlive-base
Version: 2017.20170629-1
Severity: normal
File: /usr/share/texlive/texmf-dist/scripts/texdoctk/texdoctk.pl
Dear Maintainer,
I started texdoctk from the command line, a dialog popped out stating
Couldn't open system-wide default config file texdocrc.defaults
and the only possible action consisted in a button that, clicked, closed
the program.
The problem lies in the following line, line 73 in /usr/bin/texdoctk
my $sysrc=`kpsewhich --progname=texdoctk --format=${qq}other text files${qq} ${TeXDocRcDefaults}`;
When I try, from the command line, the equivalent(?) command
$ kpsewhich --progname=texdoctk --format='other text files' texdocrc.defaults
all I get is nothing, i.e., kpsewhich cannot tell the location of
texdocrc.defaults file (it's in /etc/texmf/texdoctk/texdocrc.defaults
but you know that).
As a temporary measure I simply hardwired the actual location of the
configuration file into the executable script, because I have always
kept myself away from everything kpathsea related ...
Thank you in advance,
gb
######################################
List of ls-R files
-rw-r--r-- 1 root root 2513 Jul 19 09:34 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 Jun 24 14:20 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 Jun 29 04:30 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Jun 29 04:30 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
######################################
Config files
lrwxrwxrwx 1 root root 40 Jun 29 04:30 /usr/share/texmf/web2c/texmf.cnf -> ../../texlive/texmf-dist/web2c/texmf.cnf
lrwxrwxrwx 1 root root 33 Jun 29 04:30 /usr/share/texmf/web2c/fmtutil.cnf -> /var/lib/texmf/fmtutil.cnf-DEBIAN
lrwxrwxrwx 1 root root 32 Jun 29 04:30 /usr/share/texmf/web2c/updmap.cfg -> /var/lib/texmf/updmap.cfg-DEBIAN
-rw-r--r-- 1 root root 4359 Jul 19 09:33 /var/lib/texmf/tex/generic/config/language.dat
######################################
Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root 283 Oct 14 2015 mktex.cnf
-rw-r--r-- 1 root root 475 Jun 30 16:19 texmf.cnf
######################################
md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c /etc/texmf/texmf.d/00debian.cnf
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages texlive-base depends on:
ii debconf 1.5.63
ii libpaper-utils 1.1.24+nmu5
ii tex-common 6.07
ii texlive-binaries 2017.20170613.44572-3
ii ucf 3.0036
ii xdg-utils 1.1.1-1
Versions of packages texlive-base recommends:
ii lmodern 2.004.5-3
Versions of packages texlive-base suggests:
ii evince [postscript-viewer] 3.22.1-4
ii ghostscript [postscript-viewer] 9.21~dfsg-1
ii gv [postscript-viewer] 1:3.7.4-1+b1
ii mupdf [pdf-viewer] 1.9a+ds1-4
ii perl-tk 1:804.033-2
ii xpdf [pdf-viewer] 3.04-4
Versions of packages tex-common depends on:
ii dpkg 1.18.24
ii ucf 3.0036
Versions of packages tex-common suggests:
ii debhelper 10.6.4
Versions of packages texlive-base is related to:
ii tex-common 6.07
ii texlive-binaries 2017.20170613.44572-3
-- debconf information:
texlive-base/binary_chooser: pdftex, dvips, dvipdfmx, xdvi
texlive-base/texconfig_ignorant:
Reply to: