-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/19/2012 05:41 PM, Francesco Turco wrote:
> Hello.
> 
> On my system Portage uses the following two variables for
> compressing files in /usr/share/doc:
> 
>> $ portageq envvar PORTAGE_COMPRESS xz
> 
>> $ portageq envvar PORTAGE_COMPRESS_EXCLUDE_SUFFIXES css gif
>> htm[l]? jp[e]?g js pdf png
> 
> It seems anyway that some files are not compressed:
> 
>> $ find /usr/share/doc -type f -regextype posix-extended ! -regex
>> ".*\.(css|gif|htm[l]?|jp[e]?g|js|pdf|png|xz)" | wc -l 79
> 
> I won't list all of them here, just some examples:
> 
>> /usr/share/doc/gnome-shell-3.4.2/AUTHORS 
>> /usr/share/doc/udisks-2.0.0/html/udisks2/index.sgml 
>> /usr/share/doc/groff-1.21-r1/pic.ps 
>> /usr/share/doc/automake-1.12.5/amhello-1.0.tar.gz
> 
> My goal is to have everything under /usr/share/doc compressed with
> xz, or at least to understand why something is being excluded from 
> compression. Perhaps it is due to some additional rules I'm not
> aware of, or because of some bugs.
> 
> I checked the ebuilds of the packages the previous files belong to,
> but I found nothing interesting.
> 
> It would be great if anyone who is interested could check his/her
> own system too.
> 
> Thank you.
> 

the ebuild developer can choose whether to not compress some files, look
for stuff like "docompress -x foo" in the ebuild

it is described in PMS:
https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-12800011.3.3
(search for docompress)
and in the devmanual
http://devmanual.gentoo.org/ebuild-writing/eapi/index.html


Afaik pkgcore does ignore this command.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQ0vi3AAoJEFpvPKfnPDWzEiYH/jnqnIRVo82F8tK4E1eTqvsN
u55oCbIEV6ySqBHHk3oHcX+K0PbuZkOUymauYVjoyf3fV33gBOLrKsKsY7U5wQvo
0ZpqY4C89UgpmuprLlflzu+Ehjnl0/lA9Qgfya94meWMBUetbddEu4ZwfJ7TG9PR
TafiVpbQ/pu0WuhfNdvgkFHYySwG4Pk+afDFTFnBGYFyV3ud/4aeU4Nt3aZTVpAN
xSBZdGFLM4WW/yKuXbbtg4UdSV4RBtX1UV6TRd4cjZxqOxPAdQXUXM3gQuVvUcnJ
sZovWSrThcmjmgP14ikjqsY6axU/GmxuqJFqX2GY56KDw84xtg7wjG230NGoG3U=
=mzU5
-----END PGP SIGNATURE-----

Reply via email to