Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71219 - Better keepdir
Summary: Better keepdir
Status: RESOLVED DUPLICATE of bug 16162
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-14 16:05 UTC by Kaiting Chen
Modified: 2005-07-17 13:06 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 Kaiting Chen 2004-11-14 16:05:09 UTC
The keepdir command in an ebuild puts a .keep file in a directory so that it will not be deleted by autoclean when it is empty. This solution is not very graceful. The .keep file interferes with many things:

1. Bash completion.
2. du (Adds one more file to the count).
3. Filesystems mounted as read-only.
4. Annoying during ls -A.

It also has some problems. Some ebuilds abuse this ability by keeping directories with no significance at all. For instance, an empty Russion locale directory.

I think it is time for Gentoo to find a better solution.

Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2004-11-14 16:11:50 UTC

*** This bug has been marked as a duplicate of 16162 ***
Comment 2 Kaiting Chen 2004-11-14 17:42:05 UTC
This is definitely not a duplicate of 16162. I am trying to say that portage needs a better way of keeping directories. By the way, I just found another reason why the current way is bad.
Even though the .keep files are zero-byte, they still fill up an inode. Depending on how your filesystem is formatted, it still takes up a little space on your hard drive, (4k on mine). Even though that is not very much space, it shows that the current way is flawed.
Comment 3 Brian Harring (RETIRED) gentoo-dev 2004-11-14 19:12:16 UTC
"This is definitely not a duplicate of 16162. I am trying to say that portage needs a better way of keeping directories. By the way, I just found another reason why the current way is bad."
And 16162 is about portage's md5/mtime solution sucking, requiring the .keepdir hack.
Closing.

*** This bug has been marked as a duplicate of 16162 ***