- Code: Select all
equery d nano
Output:
* These packages depend on nano:
virtual/editor-0 (app-editors/nano)
checking /usr/portage/virtual/editor/editor-0.ebuild shows that this virtual package can be satisfied by pretty much any editor. I think that the virtual dependency is captured when the editor-0 package is built on sabayon servers. This is why removing it would remove virtual/editor which is the vital package here. Well even after having installed vim and by using emerge, it still complain that nano is a vital package. But we are confident enough that vim can satisfy virtual/editor's requirements, aren't we?
So,
IF you have your portage already up and running, you could "fix" this this way:
- Code: Select all
equo install vim
emerge --depclean --verbose --ask nano
emerge -avt virtual/editor
equo rescue spmsync
equo mask virtual/editor
now let's take a look at vim's revdeps (you need gentoolkit installed):
- Code: Select all
equery d vim | grep editor
Output:
virtual/editor-0
As you can see, virtual/editor now depends on vim.