Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527130 - Change --unmerge behavior to --depclean by default :)
Summary: Change --unmerge behavior to --depclean by default :)
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-27 20:02 UTC by Michał Górny
Modified: 2014-10-28 08:41 UTC (History)
1 user (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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-27 20:02:46 UTC
So here's my latest idea:

1. make 'emerge --unmerge' (-C) equivalent to current '--depclean' by default, that is unmerge only if nothing else depends on the package,

2. make 'emerge --unmerge --nodeps' (-CO) equivalent to current '--rage-clean' behavior, that is unmerge listed packages without a warning,

3. we could possibly keep 'emerge --depclean' or deprecate it. Alternatively, we may deprecate 'emerge --depclean package1...' but keep 'emerge --depclean' to unmerge all stale packages.


Rationale: high QA standards are the most important advantage of Gentoo, and we should work hard on keeping them as high as possible. Therefore, the 'standard' set of commands should try hard to prevent causing breakages :).

Right now, the merge/unmerge behavior is a bit inconsistent -- merge action defaults to respecting dependency tree, unmerge doesn't. After the change, we would have symmetric behavior -- both actions would by default ensure integrity of the dependency tree, and both would have --nodeps argument that disables that.

When people explicitly request '--nodeps', we can assume they know what they're doing, and the extra delay seems unnecessary.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-27 20:05:24 UTC
Extra question: do we want a news item for that, extra notice during '-C' or both?
Comment 2 Zac Medico gentoo-dev 2014-10-27 20:07:10 UTC
(In reply to Michał Górny from comment #1)
> Extra question: do we want a news item for that, extra notice during '-C' or
> both?

Probably both. Also, this might break catalyst or something. We could probably patch it in advance to use --unmerge --nodeps, since I think emerge will already accept that.
Comment 3 Patrick Lauer gentoo-dev 2014-10-28 04:14:13 UTC
That sounds like a good way to upset people and make --unmerge pretty much useless.

I'd suggest abusing EMERGE_DEFAULT_OPTS if you want to have more fun, and let us live our boring lives ;)
Comment 4 Alexander Berntsen (RETIRED) gentoo-dev 2014-10-28 08:41:43 UTC
You need to decide what you want to do in regards to your third point. If --unmerge is going to replace --depclean, I do not see a point in keeping it. Nor do I see a point in keeping --rage-clean if that is made superfluous as well.

The proposal does not account for what should happen to --depclean-lib-check.

Your rationale does not make sense to me. We do not have high QA standards as far as I can tell. And you seem to have forgotten to include the drawbacks of making this change. While the current behaviour is erratic, people really don't like changes. Have you talked to users about this? Is this something they actually want? I can tell you already that *devs* will *not* like it. Patrick is just a taste of what's to come.