Summary: | Depclean wants to unmerge app-editors/nano even though it is the only attribute of virtual/editor | ||
---|---|---|---|
Product: | Portage Development | Reporter: | barrie backhurst <barrie.backhurst> |
Component: | Core - Dependencies | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | temporary987, vamp898-gentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
barrie backhurst
2011-07-30 12:25:25 UTC
You must have another editor installed, or else --depclean would not remove app-editors/nano. The portageq expand_virtual function is only supposed to return the provider that is preferred according to the dependencies of virtual/editor. Since app-editors/nano is leftmost in the dependencies of virtual/editor, that is the one that is returned. If you uninstalled app-editors/nano, then the portageq expand_virtual would return the other editor that you have installed. The bottom line is, if you use app-editors/nano then you should add it to your world file, like this: emerge --noreplace app-editors/nano If you don't use app-editors/nano, then you can safely remove it. Just make sure that you have some other console mode editor installed, such as app-editors/vim or app-editors/emacs. Sorry I was confused by Comment 2 on Bug 370295 with regards to the function of portageq expand_virtual / virtual/editor However, I do not seem to have another editor installed as eix only returns one result $ eix -I -C "app-editors" [I] app-editors/nano Available versions: 1.3.12-r1 2.0.9 2.1.10 2.2.5 (~)2.3.1 {debug justify minimal ncurses nls slang spell unicode} Installed versions: 2.3.1(10:01:35 12/05/11)(ncurses nls spell unicode -debug -justify -minimal -slang) Homepage: http://www.nano-editor.org/ Description: GNU GPL'd Pico clone with more functionality I have no problem with running emerge --noreplace app-editors/nano I felt it was a bug within emerge --depclean that it would leave me without a editor installed? (In reply to comment #2) > However, I do not seem to have another editor installed as eix only returns one > result > > $ eix -I -C "app-editors" Your query is incomplete, since some editors exist in other categories. For a complete list, run portageq metadata / ebuild virtual/editor-0 RDEPEND": || ( app-editors/nano app-editors/dav app-editors/e3 app-editors/ee app-editors/efte app-editors/elvis app-editors/emacs app-editors/emacs-vcs app-editors/emact app-editors/ersatz-emacs app-editors/fe app-editors/gvim app-editors/jasspa-microemacs app-editors/jed app-editors/joe app-editors/jove app-editors/le app-editors/levee app-editors/lpe app-editors/mg app-editors/ne app-editors/ng app-editors/nvi app-editors/qemacs app-editors/teco app-editors/uemacs-pk app-editors/vile app-editors/vim app-editors/xemacs app-editors/zile app-misc/mc[edit] dev-lisp/cmucl mail-client/pine sys-apps/ed ) Maybe you have sys-apps/ed installed. There reason that emerge still warns is that you may not even be aware which other editor you have installed, or you may prefer app-editors/nano over the other editor that happens to be installed. > I have no problem with running > > emerge --noreplace app-editors/nano > > I felt it was a bug within emerge --depclean that it would leave me without a > editor installed? It's a property of the system set and virtual/editor, rather than emerge --depclean. It's important for emerge --depclean to eliminate redundant package whenever possible, since this allows automatic resolution of blockers in cases where two redundant packages block each other (see bug 264434). *** This bug has been marked as a duplicate of bug 375115 *** Zac, many thanks for your patience and explanations, I found sys-apps/ed on my system *** Bug 519968 has been marked as a duplicate of this bug. *** *** Bug 655878 has been marked as a duplicate of this bug. *** |