When I install a package that has some empty directories, they are created in the filesystem. However, when the package is updated or reinstalled, those empty directories are removed. This is inconsistent. Reproducible: Always Steps to Reproduce: 1. emerge -C hal ; rm -rf /etc/hal 2. emerge -1 hal ; ## directory /etc/hal exists with its subdirectories 3. emerge -1 hal ; ## directory /etc/hal doesn't exist anymore Expected Results: After step 3, the empty directory tree in /etc/hal should not be removed. emerging hal is just an example, probably there are a lot other examples. I doubt there is a quick workaround, it's the ebuild philosophy with empty directories that is wrong (IMO).
*** This bug has been marked as a duplicate of bug 16162 ***
(In reply to comment #0) > Expected Results: > After step 3, the empty directory tree in /etc/hal should not be removed. That's what keepdir is for (see `man 5 ebuild`).
keepdir should only be for keeping a directory after a package is removed completely in the upgrade/reinstall path, portage should not be cleansing empty dirs ... but that's tracked in Bug 16162