Gentoo Archives: gentoo-user

From: julian <julian.ospald@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Some files in /usr/share/doc are not compressed
Date: Thu, 20 Dec 2012 11:40:07
Message-Id: 50D2F8B7.5030204@googlemail.com
In Reply to: [gentoo-user] Some files in /usr/share/doc are not compressed by Francesco Turco
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 12/19/2012 05:41 PM, Francesco Turco wrote:
5 > Hello.
6 >
7 > On my system Portage uses the following two variables for
8 > compressing files in /usr/share/doc:
9 >
10 >> $ portageq envvar PORTAGE_COMPRESS xz
11 >
12 >> $ portageq envvar PORTAGE_COMPRESS_EXCLUDE_SUFFIXES css gif
13 >> 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
28 > xz, or at least to understand why something is being excluded from
29 > compression. Perhaps it is due to some additional rules I'm not
30 > aware 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
36 > own system too.
37 >
38 > Thank you.
39 >
40
41 the ebuild developer can choose whether to not compress some files, look
42 for stuff like "docompress -x foo" in the ebuild
43
44 it is described in PMS:
45 https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-12800011.3.3
46 (search for docompress)
47 and in the devmanual
48 http://devmanual.gentoo.org/ebuild-writing/eapi/index.html
49
50
51 Afaik pkgcore does ignore this command.
52 -----BEGIN PGP SIGNATURE-----
53 Version: GnuPG v2.0.19 (GNU/Linux)
54 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
55
56 iQEcBAEBAgAGBQJQ0vi3AAoJEFpvPKfnPDWzEiYH/jnqnIRVo82F8tK4E1eTqvsN
57 u55oCbIEV6ySqBHHk3oHcX+K0PbuZkOUymauYVjoyf3fV33gBOLrKsKsY7U5wQvo
58 0ZpqY4C89UgpmuprLlflzu+Ehjnl0/lA9Qgfya94meWMBUetbddEu4ZwfJ7TG9PR
59 TafiVpbQ/pu0WuhfNdvgkFHYySwG4Pk+afDFTFnBGYFyV3ud/4aeU4Nt3aZTVpAN
60 xSBZdGFLM4WW/yKuXbbtg4UdSV4RBtX1UV6TRd4cjZxqOxPAdQXUXM3gQuVvUcnJ
61 sZovWSrThcmjmgP14ikjqsY6axU/GmxuqJFqX2GY56KDw84xtg7wjG230NGoG3U=
62 =mzU5
63 -----END PGP SIGNATURE-----