Gentoo Archives: gentoo-user

From: Marc Joliet <marcec@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Some files in /usr/share/doc are not compressed
Date: Thu, 20 Dec 2012 02:57:47
Message-Id: 20121220035612.188fa873@marcec.hunte.us
In Reply to: Re: [gentoo-user] Some files in /usr/share/doc are not compressed by Alan McKinnon
1 Am Thu, 20 Dec 2012 00:11:38 +0200
2 schrieb Alan McKinnon <alan.mckinnon@×××××.com>:
3
4 > On Wed, 19 Dec 2012 17:41:30 +0100
5 > Francesco Turco <fturco@××××××××.fm> wrote:
6 >
7 > > Hello.
8 > >
9 > > On my system Portage uses the following two variables for compressing
10 > > files in /usr/share/doc:
11 > >
12 > > > $ portageq envvar PORTAGE_COMPRESS
13 > > > xz
14 > >
15 > > > $ portageq envvar PORTAGE_COMPRESS_EXCLUDE_SUFFIXES
16 > > > css gif htm[l]? jp[e]?g js pdf png
17 > >
18 > > It seems anyway that some files are not compressed:
19 > >
20 > > > $ find /usr/share/doc -type f -regextype posix-extended ! -regex
21 > > > ".*\.(css|gif|htm[l]?|jp[e]?g|js|pdf|png|xz)" | wc -l 79
22 > >
23 > > I won't list all of them here, just some examples:
24 > >
25 > > > /usr/share/doc/gnome-shell-3.4.2/AUTHORS
26 > > > /usr/share/doc/udisks-2.0.0/html/udisks2/index.sgml
27 > > > /usr/share/doc/groff-1.21-r1/pic.ps
28 > > > /usr/share/doc/automake-1.12.5/amhello-1.0.tar.gz
29 > >
30 > > My goal is to have everything under /usr/share/doc compressed with xz,
31 > > or at least to understand why something is being excluded from
32 > > compression. Perhaps it is due to some additional rules I'm not aware
33 > > of, or because of some bugs.
34 > >
35 > > I checked the ebuilds of the packages the previous files belong to,
36 > > but I found nothing interesting.
37 > >
38 > > It would be great if anyone who is interested could check his/her own
39 > > system too.
40 >
41 > That stuff is controlled by the ebuild, IIRC ebuilds should call
42 > function dodoc so they do with docs what you want them to do. The
43 > function name may well have changed and been superceded since last I
44 > looked.
45
46 Indeed: starting with EAPI 4 there is a DOCS variable for this. ebuild(5) says
47 it can be an array or a space delimited list, but for me (using EAPI 5) only the
48 array version worked. However, a default list of files is used when it isn't
49 specified.
50
51 [...]
52
53 --
54 Marc Joliet
55 --
56 "People who think they know everything really annoy those of us who know we
57 don't" - Bjarne Stroustrup

Attachments

File name MIME type
signature.asc application/pgp-signature