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

Bug#392359: tex-common: Please provide dh_installtex functions for packages that need only mktexlsr



Hi Frank, hi all!

On Mit, 11 Okt 2006, Frank Küster wrote:
> The current list of RC bugs includes two "postrm fails: mktexlsr is not
> available at purge time" bugs.  It would be nice if we could recommend
> maintainers to just use dh_installtex even if all they need to do is
> call mktexlsr.  

What about calling
	dh_installtex
without any argument. It works well, although it adds a lot of useless
stuff to the postinst/postrm script. I used it in the pgf or prosper
package to generated the correct invocation.

> The script would then detect in which TEXMF trees files are installed in
> the temporary directory and call mktexlsr only for these.  It should

Ok, this would be nice. And it could be implemented in the general case,
no? If we do it in the right order maybe also the calls to mktexlsr in
the other packages (with maps etc) only updated the right trees.

> also accept an argument specifying  additional TEXMF trees, for example
> if files in TEXMFSYSVAR are generated manually.  And of course, it

Ok.

> wouldn't need to include the complete post{rm,inst}-tex, only
> dhit_libkpathsea_configured and dhit_update_lsr_files.

Hmm, but this is not completely trivial, I will check the debhelper
documentation how to do this.

> By the way, currently postinst and postrm are inconsistent:  The first
> uses its own function for each step (mktexlsr, updmap, etc.), the latter
> one common function dhit_check_run_without_errors.  It might make sense
> to separate this into a function declaration part which is common to
> both (and need only be changed once, just in case) and the actual script
> part for each of them.

I didn't check, but the difference is that in the postrm case errors
should be caught because maybe mktxlsr is not present, will in thre
postinst case it should be present in any case! 

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
-------------------------------------------------------------------------------
Arthur hoped and prayed that there wasn't an afterlife.
Then he realised there was a contradiction there and merely
hoped that there wasn't an afterlife.
                 --- Arthur realising that he's in a certain death situation
                 --- with a supernova bomb that is shaped like a cricket ball.
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy



Reply to: