Re: *-doc package should not gzip PDF file
On Monday 26 June 2006 11:46, Preben Randhol wrote:
> Paul Wise <firstname.lastname@example.org> wrote on 26/06/2006 (05:08) :
> > On Sun, 2006-06-25 at 16:51 -0400, James R. Van Zandt wrote:
> > > > I have no idea how debhelper works. Are there anybody out there
> > > > that can help with getting it to stop gzipping files in -doc?
> > >
> > > dh_compress already has a list of file extensions where
> > > (re-)compressing doesn't make sense. I've submitted Bug#375406 with a
> > > patch (below) to add .pdf to the list.
> > If I read the discussion correctly up to this point, some PDFs are
> > fairly compressible and some are not. Perhaps dh_compress could evaluate
> > this for each .pdf and only compress those files where the saving is
> > significant (say 40%)?
> Why this space saving concern for -doc packages? I really don't get it.
> If you want to save space gzip all html files and make web browsers work
> out-of-the-box with gzipped html files. If a pdf file is huge because of
> lack of internal compression then isn't it better to use a tool that
> compresses internally than to fix the symptoms?
> Anyway I'm asking for user friendliness.
> As for the statistics that has been brought up. Are there +3000 pdf
> files in the doc-packages of Debian?
You can stroke such sort of queries at http://ara.edos-project.org.
For instance, regex'ing on the "Package:" field, like that:
Total 832 packages (and 2090 versions).
Total 44 packages (and 97 versions).
pub 4096R/0E4BD0AB 2003-03-18 <people.fccf.net/danchev/key pgp.mit.edu>
fingerprint 1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB