Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378611 - Unmerge gentoo-sources package didn't notify user about not full unmerge
Summary: Unmerge gentoo-sources package didn't notify user about not full unmerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Low enhancement (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 09:12 UTC by Anton Smorodsky
Modified: 2011-08-12 06:34 UTC (History)
2 users (show)

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 Anton Smorodsky 2011-08-10 09:12:06 UTC
Reproducible: Always

Steps to Reproduce:
1. emerge gentoo-sources 
2. cd /usr/src/linux
3. make
4. emerge -c gentoo-sources

Actual Results:  
unmerge won't happen fully because there files left that don't actually belongs to package - it is expected . Problem that user don't have any notifications  about this. 

Expected Results:  
portage should notify user that package not fully deleted . Also good point is to put warning that user shouldn't use deleted kernel in eselect ( because actually this kernel still appear(!!!) in  'eselect kernel list' )
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-08-10 09:53:33 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 :)
Comment 2 Anton Smorodsky 2011-08-10 10:06:20 UTC
(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 .
Comment 3 Zac Medico gentoo-dev 2011-08-11 00:44:08 UTC
(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.
Comment 4 Mike Pagano gentoo-dev 2011-08-11 12:17:53 UTC
(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.
Comment 5 Mike Pagano gentoo-dev 2011-08-11 14:11:10 UTC
Added message in eclass to inform user of modified kernel source that would still be present on filesystem after unmerge.
Comment 6 Anton Smorodsky 2011-08-12 06:34:49 UTC
Thanks ! It is my second posted bug but first fixed :)

Can I help with verification ?