1 |
On Wed, 19 Dec 2012 17:41:30 +0100 |
2 |
Francesco Turco <fturco@××××××××.fm> wrote: |
3 |
|
4 |
> Hello. |
5 |
> |
6 |
> On my system Portage uses the following two variables for compressing |
7 |
> files in /usr/share/doc: |
8 |
> |
9 |
> > $ portageq envvar PORTAGE_COMPRESS |
10 |
> > xz |
11 |
> |
12 |
> > $ portageq envvar PORTAGE_COMPRESS_EXCLUDE_SUFFIXES |
13 |
> > css gif htm[l]? jp[e]?g js pdf png |
14 |
> |
15 |
> It seems anyway that some files are not compressed: |
16 |
> |
17 |
> > $ find /usr/share/doc -type f -regextype posix-extended ! -regex |
18 |
> > ".*\.(css|gif|htm[l]?|jp[e]?g|js|pdf|png|xz)" | wc -l 79 |
19 |
> |
20 |
> I won't list all of them here, just some examples: |
21 |
> |
22 |
> > /usr/share/doc/gnome-shell-3.4.2/AUTHORS |
23 |
> > /usr/share/doc/udisks-2.0.0/html/udisks2/index.sgml |
24 |
> > /usr/share/doc/groff-1.21-r1/pic.ps |
25 |
> > /usr/share/doc/automake-1.12.5/amhello-1.0.tar.gz |
26 |
> |
27 |
> My goal is to have everything under /usr/share/doc compressed with xz, |
28 |
> or at least to understand why something is being excluded from |
29 |
> compression. Perhaps it is due to some additional rules I'm not aware |
30 |
> of, or because of some bugs. |
31 |
> |
32 |
> I checked the ebuilds of the packages the previous files belong to, |
33 |
> but I found nothing interesting. |
34 |
> |
35 |
> It would be great if anyone who is interested could check his/her own |
36 |
> system too. |
37 |
|
38 |
That stuff is controlled by the ebuild, IIRC ebuilds should call |
39 |
function dodoc so they do with docs what you want them to do. The |
40 |
function name may well have changed and been superceded since last I |
41 |
looked. |
42 |
|
43 |
The reason you find nothing interesting in the ebuild is because |
44 |
something that should be there isn't. ebuilds not following rules wrt |
45 |
doc files is a bug and should be filed at bgo as such. |
46 |
|
47 |
|
48 |
-- |
49 |
Alan McKinnon |
50 |
alan.mckinnon@×××××.com |