On Tue, 06 Aug 2019 15:53:00 +0000 Niels Thykier <ni...@thykier.net> wrote:
> On Wed, 31 Jul 2019 19:41:51 +0200 Robert Luberda <rob...@debian.org> wrote:
> > Package: debhelper
> > Version: 12.2.3
> > Severity: normal
> > 
> > Hi,
> > 
> 
> Hi Colin,
> 
> I received the following report against dh_installman and its performance.
> 

Hi Colin,

Did you have time to look at this report?

~Niels

> > While working on my manpages-pl source package, I've noticed that the
> > dh_installman step takes more time to execute than all other build steps 
> > together.
> > 
> > This poor performance is caused by recoding all (i.e. about 1500 in case
> > of manpages-pl) man pages into UTF-8, what is pretty much useless in case 
> > of my package, because the pages are in UTF-8 already. 
> > 
> > It would be nice if dh_installman could have some option to disable 
> > recoding 
> > or if it could at least filter the manpages to recode with `isutf8 -l'
> > or similar command. (I've just checked that 
> > 'isutf8 -l debian/tmp/usr/share/man/pl/man*/*' inside the package is really
> > quick to determine that all files are in UTF-8).
> > 
> > Regards,
> > robert
> > 
> > [...]
> 
> Is there some way to trivially detect if the manpages need re-encoding
> (without pulling moreutils as dependency or re-implementing the relevant
> code in Perl)?  Like some troff-ish rune in the early part of the file
> that says "this file is definitely UTF-8" or something like that?
> 
> As I recall, we already talked about speeding up the re-encoding
> previously.  From memory, the conclusion was that we were already doing
> what we could in debhelper with the current level of support from man-db.
> 
> Thanks,
> ~Niels
> 
> 

Reply via email to