Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367611 - Add extra --depclean check for eselected packages
Summary: Add extra --depclean check for eselected packages
Status: RESOLVED DUPLICATE of bug 283587
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement with 2 votes (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 23:25 UTC by Adam Carter
Modified: 2012-09-05 18:47 UTC (History)
7 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 Adam Carter 2011-05-16 23:25:02 UTC
On gentoo-user some users have had depclean remove python 2.6 for example, because 2.7 has been installed, but as they have not eselected 2.7 and run python-updater their systems have been broken. 

Can you please add an additional check to --depclean that verifies that the packages are not still active according to eselect?

Reproducible: Always

Steps to Reproduce:
As above
Actual Results:  
Some level of system breakage.

Expected Results:  
depclean should not remove a package that is eselected
Comment 1 Zac Medico gentoo-dev 2011-05-16 23:56:44 UTC
There's already an uninstall protection for the python interpreter from bug 357009, but --depclean support would be a nice enhancement.
Comment 2 Adam Carter 2011-05-17 01:54:56 UTC
Python was used as an example - hopefully a new depclean check can catch anything thats switched via eselect.
Comment 3 Navid Zamani 2011-10-08 06:03:57 UTC
Hmm, I’d be happy to see this fixed too, as it is annoying to be forced to add less to the world file to prevent it from getting depcleaned, even though it is apparently in the or somehow required by the system set *and* set via eselect.
Comment 4 Sergey S. Starikoff 2012-09-05 09:26:01 UTC
(In reply to comment #1)
> There's already an uninstall protection for the python interpreter from bug
> 357009, but --depclean support would be a nice enhancement.

Python check seems to be an exception.
To my mind a common solution (for all slotted eselect-managed applications) is wanted.

Just as example: bug 432962
(emerge --depclean uninstalls active php interpreter)
Comment 5 Zac Medico gentoo-dev 2012-09-05 18:31:57 UTC

*** This bug has been marked as a duplicate of bug 283587 ***
Comment 6 Navid Zamani 2012-09-05 18:47:05 UTC
(In reply to comment #5)
> 
> *** This bug has been marked as a duplicate of bug 283587 ***

Uum, shouldn’t it be the other way around, since this is the generic bug, and the other is the specific for one case?

Will this end in another case of fixing the specific bug, and then disallowing the creation of a new bug for a generic fix, because that bug already exists, and was wrongly marked as a duplicate of the specific one?

That’s not a nice way of doing things. Please don’t do that.