Gentoo Archives: gentoo-user

From: Francesco Turco <fturco@××××××××.fm>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Some files in /usr/share/doc are not compressed
Date: Thu, 20 Dec 2012 09:59:34
Message-Id: 1355997472.9997.140661168336029.292CB90C@webmail.messagingengine.com
In Reply to: Re: [gentoo-user] Some files in /usr/share/doc are not compressed by Alan McKinnon
1 On Wed, Dec 19, 2012, at 23:11, Alan McKinnon wrote:
2 > That stuff is controlled by the ebuild, IIRC ebuilds should call
3 > function dodoc so they do with docs what you want them to do. The
4 > function name may well have changed and been superceded since last I
5 > looked.
6 >
7 > The reason you find nothing interesting in the ebuild is because
8 > something that should be there isn't. ebuilds not following rules wrt
9 > doc files is a bug and should be filed at bgo as such.
10
11 I looked into this problem a little more before submitting any bug.
12
13 At http://devmanual.gentoo.org/ebuild-writing/eapi/ it says that, for
14 EAPI=4, there is a default compression exclusion list:
15 /usr/share/doc/${PF}/html. udisks-2.0.0 ebuild uses EAPI=4. So this
16 explains why /usr/share/doc/udisks-2.0.0/html/udisks2/index.sgml and
17 many other such files are not being compressed. I checked, and they all
18 use EAPI=4 or EAPI=5. So the list of uncompressed files drops to 23
19 instead of 79.
20
21 Then I looked for non-zero size files only, because it makes no sense to
22 compress empty files. The list dropped to 9 files, belonging to 4
23 different ebuilds or 3 packages:
24
25 > /usr/share/doc/automake-1.12.5/amhello-1.0.tar.gz
26 > /usr/share/doc/libasyncns-0.8-r2/README
27 > /usr/share/doc/automake-1.11.6/amhello-1.0.tar.gz
28 > /usr/share/doc/groff-1.21-r1/meref.ps
29 > /usr/share/doc/groff-1.21-r1/meref.me
30 > /usr/share/doc/groff-1.21-r1/pic.ps
31 > /usr/share/doc/groff-1.21-r1/pic.ms
32 > /usr/share/doc/groff-1.21-r1/meintro.me
33 > /usr/share/doc/groff-1.21-r1/meintro.ps
34
35 Perhaps I may report these ones.

Replies

Subject Author
Re: [gentoo-user] Some files in /usr/share/doc are not compressed Francesco Turco <fturco@××××××××.fm>