It'd be great to find a (cumulative) summary, at the end of unmerge actions called with 'emerge -C', with a list of orphan files not removed during the process.
In this way it'd be possible to find immediately which are the orphan files on the filesystem.
What do you think about?
Now that bug 8423 has been fixed (in portage-2.1.2) orphan files will be much less of an issue. The only remaining issue is bug 16162, which is only an issue for files that have changed mtime or md5sum.
I guess that this bug will be closed after the bug #16162 :-) In the meantime it could be used as a summary for bugs #8423 and #16162.
As I have understood portage-2.1.2 will contain a lot of very interesting changes. Thanks Zac for your hard work!!!
I suppose we might be able to use the elog framework for this but I'm not sure if that would be appropriate.
The summary has to be shown only one time at the end of unemerge action(s) (not during the unmerge phase of an upgrade), just like a config file management message.
The elog framework is suitable for automated processes. In our case the user calls explicitly "emerge -C" and for this reason it can see the notice. So, IMHO I don't think the elog framework is appropriate in this case.
Personally I'd be quite interested in having portage store log files with lists of files orphaned due to mtime, config protect or whatever with the package they used to belong to somewhere.
*** Bug 63704 has been marked as a duplicate of this bug. ***
*** Bug 119656 has been marked as a duplicate of this bug. ***
In portage-2.1.3_rc1 we have FEATURES=unmerge-orphans (enabled by default) which solves bug #134620 and should result in much fewer orphans being left after unmerge. With this new feature, the only thing that will ever be left behind is a file that is protected by CONFIG_PROTECT and has been modified since installation.
(In reply to comment #8)
Interested in listing those files! If not portage, a tool script.
*** Bug 291589 has been marked as a duplicate of this bug. ***
(In reply to niogic from comment #9)
> (In reply to comment #8)
> Interested in listing those files! If not portage, a tool script.
Maybe use the qfile --orphans option.
*** This bug has been marked as a duplicate of bug 16162 ***