Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545648 - configuration options to post process files on install to shrink file size (e.g. pngcrush on png)
Summary: configuration options to post process files on install to shrink file size (e...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-05 19:33 UTC by om3i
Modified: 2015-05-31 06:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description om3i 2015-04-05 19:33:52 UTC
e.g. to reduce startup time of an applications.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2015-05-31 05:36:47 UTC
guess we could add something like:
  PORTAGE_CRUSH_<filetype>="<program> \"\${INPUT}\" \"\${OUTPUT}\""
then we'll execute this once for every file ending in ".<filetype>" with $INPUT and $OUTPUT set.  if the program returns an error, we silently ignore it and move on.  if the $OUTPUT is not actually smaller than $INPUT, then we ignore it.

i would say do it based on mime type, but that's prone to false positives.  should we restrict this to specific paths like /usr/share ?  can't see why we would ...