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

Re: dh_installtex usage by texlive



Hi,

Frank Küster <frank@debian.org> wrote:

> However, I am not sure that this isn't too liberal: It won't give an
> error even when fmtutil-sys is present, but fails.  On the other hand,
> either the package that uses "allformats" is removed, then it doesn't
> matter. Or [...]

I'm not sure it doesn't matter (I mean, in the general case, maybe not
for tl-base-bin). What is the reason for calling "dhit_build_format
--all" in postrm in the first place?

One clear reason is hyphenation patterns, I guess. If the package being
removed ships hyphenation patterns, we want to rebuild the formats
without those patterns. Therefore, if this rebuild fails, it may leave
formats belonging to other packages unusable.

Another reason would be if the package ships a texmf.cnf snippet that
enlarges TeX, or something like that. Same consequences.

As for the right fix... I've never had a good overview of how the Basic
TeX Packages are supposed to handle their removal, so I'm not sure. But
maybe rebuilding the formats only if fmtutil-sys is (present and)
executable would be less prone to ignore real errors than wrapping the
call with dhit_check_run_without_errors. Or maybe we need a special
dh_installtex option for special-casing the removal of tl-base-bin...

-- 
Florent



Reply to: