Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519968 - "emerge --depclean" chooses different "virtual/editor" provider from time to time
Summary: "emerge --depclean" chooses different "virtual/editor" provider from time to ...
Status: RESOLVED DUPLICATE of bug 377045
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-15 08:14 UTC by temporary
Modified: 2015-03-24 23:23 UTC (History)
0 users

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 temporary 2014-08-15 08:14:37 UTC
I have virtual/editor installed, which can be provided by "app-editors/nano" or "sys-apps/ed". I have both of them installed. "nano" was installed as a part of "system" and "ed" was installed as a dependency of some packages.
If I run emerge --depclean SOMETIMES it wants to remove "nano" and sometimes it doesn't want to remove it. 
That is what I see in "emerge --depcelan -pv".

If it removes "nano":

sys-apps/ed-1.6 pulled in by:
    app-text/texlive-core-2012-r1 requires sys-apps/ed
    virtual/editor-0 requires sys-apps/ed

If it keeps "nano":

app-editors/nano-2.3.2 pulled in by:
    virtual/editor-0 requires app-editors/nano

So sometimes it chooses "ed" as "virtual/editor" provider and sometimes it chooses "nano". I think, that "emerge --depclean" output should be exact and not random. 
Can you please fix it?
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-08-15 08:38:00 UTC
If 'ed' is installed, like as a dependency of app-text/texlive-core, then virtual/editor is satisfied

If 'nano' is installed, then virtual/editor is satisfied

If both are installed, --depclean should choose to remove 'nano' instead of 'ed' because 'ed' is also required as a dependency for app-text/texlive-core

So, based on information in Comment #0, I don't see a bug here, quite the opposite...
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-08-15 08:39:26 UTC
As in, you should simply 'emerge --noreplace <package>' the editor you want to keep using, and not rely on Portage to provide you with one
Comment 3 Zac Medico gentoo-dev 2015-03-24 23:23:41 UTC
The solution is to declare your preferences by adding desired packages to your world file, so that those packages won't be removed by depclean. For example, if you want to keep nano, add it to your world file like this:

   emerge --noreplace app-editors/nano

*** This bug has been marked as a duplicate of bug 377045 ***