Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172496 - add ECOMPRESS_MASK support to ecompressdir
Summary: add ECOMPRESS_MASK support to ecompressdir
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 232843 (view as bug list)
Depends on:
Blocks: 216231
  Show dependency tree
 
Reported: 2007-03-28 02:33 UTC by Mr. Bones. (RETIRED)
Modified: 2010-09-04 07:58 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Add new PORTAGE_COMPRESS_EXCLUDE_SUFFIXES variable. (exclude_suffixes.patch,1.92 KB, patch)
2008-08-15 22:08 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mr. Bones. (RETIRED) gentoo-dev 2007-03-28 02:33:31 UTC
<Mr_Bones_> vapier: so you could set something like ECOMPRESSDIR_IGNORE="html pdfs pictures" and have ecompressdir ignore those dirs
<vapier> Mr_Bones_: i added support for ignoring of whole directories, hadnt thought about doing that as well
<vapier> sounds feasible, but i'd do it bash style ECOMPRESS_MASK="html *.pdf *.gif"
<vapier> then you could do use regular bash expressions
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-10-06 15:32:55 UTC
Status?
Comment 2 Zac Medico gentoo-dev 2008-07-24 15:10:19 UTC
*** Bug 232843 has been marked as a duplicate of this bug. ***
Comment 3 Zac Medico gentoo-dev 2008-07-24 15:12:05 UTC
I think we should do like antarus suggested and use the `file` command to separate out the text files and just compress those since generally those are the only ones that we really like to have compressed.
Comment 4 Zac Medico gentoo-dev 2008-08-15 22:08:53 UTC
Created attachment 163003 [details, diff]
Add new PORTAGE_COMPRESS_EXCLUDE_SUFFIXES variable.

Add a PORTAGE_COMPRESS_EXCLUDE_SUFFIXES config variable which is used to filter ecompress arguments. This allows the user to control compression of files installed dodoc, excluding files with specific suffix patterns. The current default value includes all of the suffixes that are recognized by dohtml, as well as pdf.

(In reply to comment #3)
> I think we should do like antarus suggested and use the `file` command to
> separate out the text files and just compress those since generally those are
> the only ones that we really like to have compressed.

I ruled out this approach since the `file` output would be annoying to parse (portable?) and we might want to exclude things like html files too.
Comment 5 Zac Medico gentoo-dev 2008-09-21 23:40:44 UTC
(In reply to comment #4)
> Created an attachment (id=163003) [edit]
> Add new PORTAGE_COMPRESS_EXCLUDE_SUFFIXES variable.

This is released in 2.2_rc9.