Re: delayed actions for texlive
Hi guys!
What follows is specific for texlive packages, but may be used by some
other packages, too.
How to get rid of all the mktexlsr/updmap-sys calls? Ok, there is no
general solution, and I also know that we cannot hack something.
But, what about fixing it at least for those poor guys who make
aptitude install texlive
or
aptitude install texlive-full
which maybe is quite common.
So the basic idea is that:
- those meta-packages drop a file we-will-run-all-the-stuff into /var
- other packages can check for this file and if present drop
something like please-run-mktexlsr or please-run-updmap-sys
into /var
- if a package *forces* the run of mktexlsr, it also removes the
please-run-mktexlsr if present, if it forces the updmap-sys
then it also checks for the please-run-mktexlsr and run it
(which it will have to do anyway), and remove all please-files
- at the end texlive or texlive-full postinst runs all the
please files and removes the we-will-run-all-the-stuff.
- other packages will continue to run mktexlsr/updmap-sys as usual
This way we could drop the mktexlsr/updmap-sys of an
aptitude install texlive-full
down to 1/10 maybe, wild guess to be honest. But everything counts in
this respect IMHO.
Disadvantage:
- if you just install the packages you need without the
meta-packages, then it does not work.
- error attribution is difficult, but we do not want to solve it for all
Debian packages, but only for texlive packages.
Any suggestions?
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at> Università di Siena
Debian Developer <preining@debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
FEAKLE (vb.)
To make facial expressions similar to those that old gentlemen make to
young girls in the playground.
--- Douglas Adams, The Meaning of Liff
Reply to: