Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems emerging postfix because of "virtual/mta"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Wed Aug 20, 2003 7:59 pm    Post subject: problems emerging postfix because of "virtual/mta" Reply with quote

Hi there,

I am having trouble installing postfix using "emerge". I synched the portage tree and the system is a fresh stage1 install with kde and OO.

Here it is:

Code:
emerge --pretend postfix

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B    ] net-mail/ssmtp ("virtual/mta" from pkg net-mail/postfix-2.0.11)
[ebuild  N   ] net-mail/postfix-2.0.11


and

Code:
emerge postfix
Calculating dependencies ...done!

!!! Error: the virtual/mta package conflicts with this package and both can't be installed on the same system together.


Is this a package that is already installed? How do I get rid of it? What's it name?

Because I can't unemerge it:

Code:
emerge unmerge =net-mail/postfix
emerge unmerge =net-mail/postfix-2.0.11
emerge unmerge =virtual/mta


This doesn't work.

I am new to Gentoo but have understood the principles of using emerge and portage but I can't verify what packages are actually on the system and how to remove them.

Any help appreciated.

Tobias
Back to top
View user's profile Send private message
rwallace
Tux's lil' helper
Tux's lil' helper


Joined: 22 May 2003
Posts: 107
Location: Phoenix, AZ US

PostPosted: Wed Aug 20, 2003 8:11 pm    Post subject: Reply with quote

Merging postfix is blocking because there is already an smtp package installed. That is ssmtp. The virtual/mta is a virtual package that makes sure people don't try and install multiple things trying to do the same thing, which could result in undefined behaviour.

To fix this and get postfix to emerge do
Code:
emerge -C ssmtp
emerge postfix
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Wed Aug 20, 2003 8:52 pm    Post subject: many thanks Reply with quote

Many many thanks :-) Why isn't that in the portage guide? ;-)
Back to top
View user's profile Send private message
jcosters
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 104
Location: Gent, Belgium

PostPosted: Fri Sep 26, 2003 7:04 pm    Post subject: Reply with quote

BTW - After doing all this, I tried doing an
Code:
emerge -upv --deep world
, and the darn ssmtp package keeps on popping up to be installed, even with postfix installed!

I had to manually remove ssmtp from the
Code:
virtual/mta net-mail/ssmtp net-mail/postfix
line in
Code:
/var/cache/edb/virtuals
to solve it.
Is this a bug or isn't portage supposed to keep track of such things?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9535
Location: beyond the rim

PostPosted: Fri Sep 26, 2003 8:39 pm    Post subject: Reply with quote

It's a portage bug that the virtual isn't remove on unmerge that was fixed and came back several times (bug 1891).
Back to top
View user's profile Send private message
jcosters
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 104
Location: Gent, Belgium

PostPosted: Sat Sep 27, 2003 11:27 am    Post subject: Reply with quote

Thanks for pointing that out Genone

However, removing net-mail/ssmtp from the virtuals file (see previous post) only did the trick partially: ssmtp does not pop up when updating, but when I
Code:
emerge mod_php
, portage tells me I need an MTA which supports sendmail?? I just installed postfix which I thought includes the sendmail command, but upon inspection I did not find any sendmail binary or symlink.

Code:
emerge mod_php
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-php/mod_php-4.3.2-r4 to /
>>> md5 src_uri ;-) php-4.3.2.tar.bz2
>>> md5 src_uri ;-) php-4.3.2-fopen-url-secure.patch
>>> Unpacking source...
 * This is a security upgrade for PHP!
 * However it is not critical for your machine
 * Due to some previous bloopers with PHP and slotting, you may have
 * multiple copies of mod_php installed. Please look at the autoclean
 * output at the end of the emerge and unmerge all but relevant
 * copies.
 * Apache2 only detected
>>> Unpacking php-4.3.2.tar.bz2 to /var/tmp/portage/mod_php-4.3.2-r4/work
>>> Source unpacked.
 
!!! ERROR: dev-php/mod_php-4.3.2-r4 failed.
!!! Function php_src_compile, Line 242, Exitcode 1
!!! You need a virtual/mta that provides /usr/sbin/sendmail!

What can I do?

Never mind, simply re-emerging postfix created the /usr/sbin/sendmail file. I think it got nuked when removing ssmtp.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum