Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[gentoo-user] Emerging virtual/editor installs nano - why?

From: Alexander Skwar <alexanders.mailinglists+nospam(at)gmail.com>
Date: Fri Dec 07 2007 - 04:49:42 EST


Hello.

I installed stage-3 2007.0 and am now trying to configure it to my liking. For example, I dislike nano and would like to use vim instead. vim (among other editors) provides virtual/editor. So I thought, that I could add

        virtual/editor app-editors/vim

to /etc/portage/profile/virtuals. BUT:

winnb000488 portage # cat /etc/portage/profile/virtuals virtual/editor app-editors/vim
winnb000488 portage # emerge -vpt virtual/editor

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild N ] virtual/editor-0 0 kB
[ebuild N ] app-editors/nano-2.0.6 USE="-debug -justify -minimal ncurses nls -slang spell unicode" 1,285 kB

Total: 2 packages (2 new), Size of downloads: 1,285 kB

Do you need help?X

Why's that? Why is nano being installed to satisfy the virtual/editor need?

When I add

        virtual/mta mail-mta/esmtp

to the virtuals file and try to emerge virtual/mta, esmtp should be installed:

winnb000488 portage # echo virtual/mta mail-mta/esmtp >> profile/virtuals winnb000488 portage # emerge -vpt virtual/mta

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild N ] mail-mta/esmtp-0.5.0-r1 USE="-mailwrapper" 123 kB
[ebuild N ] net-libs/libesmtp-1.0.4 USE="-debug ssl" 344 kB

Total: 2 packages (2 new), Size of downloads: 467 kB

Do you need more help?X

Without that line in the virtuals file, ssmtp is going to be installed:

winnb000488 portage # grep -v esmtp profile/virtuals > /tmp/dummy ; cat /tmp/dummy > profile/virtuals ; rm /tmp/dummy winnb000488 portage # cat profile/virtuals virtual/editor app-editors/vim
winnb000488 portage # emerge -vpt virtual/mta

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild N ] mail-mta/ssmtp-2.61-r2 USE="-ipv6 -mailwrapper -md5sum ssl" 53 kB
[ebuild N ] net-mail/mailbase-1 USE="pam" 0 kB

Total: 2 packages (2 new), Size of downloads: 53 kB

So, what am I doing wrong with regards to virtual/editor? I know that I could just install app-editors/vim and be done, but I'd like to know why emerge virtual/editor doesn't work the way I expect it to work (or why my expectation is wrong).

Alexander

-- 
gentoo-user@gentoo.org mailing list
Received on Fri Dec 7 04:51:20 2007

This archive was generated by hypermail 2.1.8 : Thu Jun 05 2008 - 18:10:29 EDT

Can we help you?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library