| Summary: | Unmerge gentoo-sources package didn't notify user about not full unmerge | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Anton Smorodsky <edrozim> |
| Component: | [OLD] Core system | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | dev-portage, pchrist |
| Priority: | Low | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Anton Smorodsky
2011-08-10 09:12:06 UTC
Maybe this is a dup of an older bug but didn't found it so, I'm assigning this to @kernel as maybe this could be implemented in kernel eclasses. However, I don't know if anyone would like to add such logic. I'm cc'ing @dev-portage as they may can offer some feedback on this. Guys feel free to remove your alias. Your idea may be correct for kernel sources specifically but it's wrong in larger scale as portage knows what it installed and can remove it but should't make assumptions about files it has no knowledge about. Also, you could try offer a patch yourself for this :) (In reply to comment #1) > Maybe this is a dup of an older bug but didn't found it so, I'm assigning this > to @kernel as maybe this could be implemented in kernel eclasses. However, I > don't know if anyone would like to add such logic. I'm cc'ing @dev-portage as > they may can offer some feedback on this. Guys feel free to remove your alias. > > Your idea may be correct for kernel sources specifically but it's wrong in > larger scale as portage knows what it installed and can remove it but should't > make assumptions about files it has no knowledge about. > > Also, you could try offer a patch yourself for this :) But I don't ask to make some assumptions , I just asking to notify user that root package folder that actually belongs to package '/usr/src/linux-x.x.x-gentoo ' was not deleted . Also I cannot give you some certain package name but I have in memory cases when package notify me that it not fully removed due to configuration files that I modify so portage decided not to delete them . (In reply to comment #2) > But I don't ask to make some assumptions , I just asking to notify user that > root package folder that actually belongs to package > '/usr/src/linux-x.x.x-gentoo > ' was not deleted . The cost of having portage search for other owners of directories like this is going to be prohibitive. However, if the ebuild itself is aware that the directory is unlikely to be owned by any other package, then it could issue an ewarn message itself during pkg_postrm. (In reply to comment #3) > The cost of having portage search for other owners of directories like this is > going to be prohibitive. However, if the ebuild itself is aware that the > directory is unlikely to be owned by any other package, then it could issue an > ewarn message itself during pkg_postrm. Thanks, Zac. That sounds like a great idea. I will write up and add an ewarn message to pkg_postrm for vanilla and gentoo-sources. Added message in eclass to inform user of modified kernel source that would still be present on filesystem after unmerge. Thanks ! It is my second posted bug but first fixed :) Can I help with verification ? |