Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 172496

Summary: add ECOMPRESS_MASK support to ecompressdir
Product: Portage Development Reporter: Mr. Bones. (RETIRED) <mr_bones_>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement CC: darkside, ferringb, jakub, rhill
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    
Attachments: Add new PORTAGE_COMPRESS_EXCLUDE_SUFFIXES variable.

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.