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

Bug#522930: marked as done (running mktexlsr for each upgraded package seems unnecessary)



Your message dated Sun, 12 Apr 2009 19:19:29 +0200
with message-id <20090412171929.GC27267@gamma.logic.tuwien.ac.at>
and subject line Re: Bug#522930: running mktexlsr for each upgraded package seems unnecessary
has caused the Debian Bug report #522930,
regarding running mktexlsr for each upgraded package seems unnecessary
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
522930: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522930
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: texlive
Version: 2007.dfsg.2-2
Severity: minor

Running 'mktexlsr' on my 1700MHz laptop takes over 1 minute, and
causes the machine to become sluggy. Yet for some reason it is invoked
after each texlive package I upgrade. Example:

    Setting up texlive-lang-hungarian (2007.dfsg.4-1) ...
    Running mktexlsr. This may take some time... done.
    Building format(s) --byhyphen /var/lib/texmf/tex/generic/config/language.dat.
             This may take some time... done.
    Setting up texlive-pstricks (2007.dfsg.17-1) ...
    Running mktexlsr. This may take some time... 

etc.

'ps' shows that the same command is being invoked each time:

/usr/bin/mktexlsr /usr/share/texmf /var/lib/texmf /usr/share/texmf-texlive

So presumably 'mktexlsr' could just be run once at the end of the
upgrade, with the same effect. Instead, it is run after each package. 
I should note that the upgrade can't be done overnight, or during a
time when I am not using my computer, because sometimes it asks
questions about configuration files which require my attention.

Thus, by having 'texlive' installed, I have inadvertently created a
situation where upgrading Debian requires hours of my attention. This
would not be a problem if 'mktexlsr' were only run once, at the end of
the upgrade.

-- Package-specific info:
If you report an error when running one of the TeX-related binaries 
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report. Don't forget to also include minimal examples of
other files that are needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!

If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at

http://www.latex-einfuehrung.de/mini-en.html (english)

or 

http://www.latex-einfuehrung.de/mini.html (german)

##################################
minimal input file


##################################
other files

######################################
 List of ls-R files

-rw-r--r-- 1 frederik frederik 2610 2007-01-13 07:34 /home/frederik/texmf/ls-R
-rw-r--r-- 1 root root 1543 2009-04-07 13:45 /var/lib/texmf/ls-R
-rw-r--r-- 1 root staff 162 2009-04-07 13:36 /usr/local/share/texmf/ls-R
lrwxrwxrwx 1 root root 29 2009-04-03 17:25 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 2009-04-03 17:25 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 2009-04-03 17:25 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
######################################
 Config files
lrwxrwxrwx 1 root root 20 2009-04-03 17:25 /usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 10806 2009-04-07 13:43 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 root root 20197 2009-04-07 13:43 /var/lib/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 12417 2009-04-07 13:43 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 4
-rw-r--r-- 1 root root 283 2006-12-11 18:48 mktex.cnf
######################################
 md5sums of texmf.d
42c20d7e8bd343542772b5a145bf8ad8  /etc/texmf/texmf.d/05TeXMF.cnf
5f7f6652cc8b8071c9e4ea6ba9e9f0a1  /etc/texmf/texmf.d/15Plain.cnf
f68e5add6afd6585b982f2f78e2e6a92  /etc/texmf/texmf.d/45TeXinputs.cnf
ea33127256c6a9f37145ae5b16fdb80c  /etc/texmf/texmf.d/55Fonts.cnf
afccf1d3f87057411166a77c58e00bd1  /etc/texmf/texmf.d/65BibTeX.cnf
9da7c1c7b1eaf06f941af91f48a23068  /etc/texmf/texmf.d/75DviPS.cnf
7ae52efac46feb97010986e57877d12e  /etc/texmf/texmf.d/80DVIPDFMx.cnf
055e06548bac99958d8ab2dd1248f2b4  /etc/texmf/texmf.d/80tex4ht.cnf
37329819f1109e8a457e64b8b58fecdb  /etc/texmf/texmf.d/85Misc.cnf
a8952d594677235951d447665ec46e9c  /etc/texmf/texmf.d/90TeXDoc.cnf
30f4f13357c2761ed01a6a15f28725a5  /etc/texmf/texmf.d/95NonPath.cnf

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages texlive depends on:
ii  texlive-fonts-recommended  2007.dfsg.2-2 TeX Live: Recommended fonts
ii  texlive-latex-base         2007.dfsg.2-2 TeX Live: Basic LaTeX packages
ii  texlive-latex-recommended  2007.dfsg.2-2 TeX Live: LaTeX recommended packag

texlive recommends no packages.

Versions of packages tex-common depends on:
ii  debconf [debconf-2.0]         1.5.26     Debian configuration management sy
ii  dpkg                          1.14.25    Debian package management system
ii  ucf                           3.0018     Update Configuration File: preserv

Versions of packages texlive is related to:
ii  tetex-base                 2007.dfsg.2-2 TeX Live: teTeX transitional packa
ii  tetex-bin                  2007.dfsg.2-2 TeX Live: teTeX transitional packa
pn  tetex-extra                <none>        (no description available)
ii  tex-common                 1.17          common infrastructure for building

-- debconf information:
  tex-common/check_texmf_wrong:
  tex-common/check_texmf_missing:
  tex-common/singleuser: false



--- End Message ---
--- Begin Message ---
On Di, 07 Apr 2009, Frederik Eaton wrote:
> Running 'mktexlsr' on my 1700MHz laptop takes over 1 minute, and
> causes the machine to become sluggy. Yet for some reason it is invoked
> after each texlive package I upgrade. Example:

Yes we know, and this will stay that way.

BUT: On my laptop and even on my very old one that was a problem only on
the *FIRST* invocation. Afterwards the dir entries were in the disk
cache and thus very fast. It is strange that it is not in your case.

>     Setting up texlive-lang-hungarian (2007.dfsg.4-1) ...
>     Running mktexlsr. This may take some time... done.
>     Building format(s) --byhyphen /var/lib/texmf/tex/generic/config/language.dat.

And here you see the problem: Not calling mktexlsr would make the call
to fmtutil break, and to other things probably, too.

No, there is no way around that.

> So presumably 'mktexlsr' could just be run once at the end of the
> upgrade, with the same effect. Instead, it is run after each package. 

No, that does not have the same effect. Sorry, I don't have time nor
energy to explain you the details fo the kpsea library for searching
files in a TEXMF tree, but trust me, it *does* make a difference.

> Thus, by having 'texlive' installed, I have inadvertently created a
> situation where upgrading Debian requires hours of my attention. This

No no no, there are 70+ packages, each would call mktexlsr, each
successive call should not last longer than 1 min, that makes a bit more
than one hour ...

I am closing this bug, it is not anything we can change light-heartly
without breaking other things.


Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>        Vienna University of Technology
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
Does it worry you that you don't talk any kind of sense?
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy


--- End Message ---

Reply to: