Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340935 - Portage "compresses" .keep* files
Summary: Portage "compresses" .keep* files
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 335925
  Show dependency tree
Reported: 2010-10-14 07:26 UTC by Ulrich Müller
Modified: 2010-10-16 03:38 UTC (History)
0 users

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

proposed patch (0001-Don-t-compress-empty-files-bug-340935.patch,667 bytes, patch)
2010-10-14 07:51 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2010-10-14 07:26:16 UTC
Not a big problem, but these files (e.g. generated by the keepdir command) are empty before. After compression they will have finite size and occupy one block.

Two possible solutions:
- don't compress empty .keep* files
- or, more general, don't compress any empty files

I can prepare a patch if you want. (It's a one-liner in ecompress ...)
Comment 1 Zac Medico gentoo-dev 2010-10-14 07:40:36 UTC
(In reply to comment #0)
> - or, more general, don't compress any empty files

I like this option the best.
Comment 2 Ulrich Müller gentoo-dev 2010-10-14 07:51:22 UTC
Created attachment 250531 [details, diff]
proposed patch
Comment 3 Zac Medico gentoo-dev 2010-10-14 07:52:59 UTC
That looks perfect.
Comment 5 Zac Medico gentoo-dev 2010-10-16 03:38:03 UTC
This is fixed in and 2.2_rc97.