Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119656 - When unmerging, Portage should record files it didn't delete
Summary: When unmerging, Portage should record files it didn't delete
Status: RESOLVED DUPLICATE of bug 159165
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 02:19 UTC by DC
Modified: 2007-01-12 06:27 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 DC 2006-01-20 02:19:09 UTC
When unmerging a package, Portage often fails to delete certain files, because they're config protected, or they've changed, etc. I would like to propose something like a /var/db/pkg/cruft directory, where we would put an UNDELETABLE-CONTENTS file for each package with files that weren't deleted. Users can then see which files weren't deleted, and manually delete them.

It might be a good idea to make the UNDELETABLE-CONTENTS file similar to the CONTENTS file, with MD5 sums of the undeletable files *at the time the unmerge happened*. That way, if someone makes a tool to automatically remove the undeletable files, it could still warn the user if the file has changed since the package was unmerged, indicating that the file is still in use.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2006-01-20 03:40:20 UTC
No central file db- this is why portage relies on mdm5's and mtime to determine if the file needs be removed.  That is the underlying cause of orphaning files on unmerge.

That's also why this request is questionable ;) .  To do what you're asking, we need a central file db to determiine if the file actually _was_ orphaned- collision-protect does makes this easier, but it's not a required feature, thus an actual centrak db is required.

Mind you I'm not excusing orphaning files- that bugs the hell out of me personally.  Just explaining the reasons, and why their is no orphan list- if we implemented that list, we would already solve the orphaning problem.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2007-01-12 06:26:34 UTC
Reopening for duping
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-12 06:27:04 UTC

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