Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
courier-imap mailbase conflict
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
gmtl3
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2004
Posts: 135

PostPosted: Fri Feb 18, 2005 4:36 pm    Post subject: courier-imap mailbase conflict Reply with quote

I'm trying to upgrade mailbase, and I'm getting the following error messages:

Code:
Calculating world dependencies  .. * Checking for possible file collisions...
 * //etc/pam.d/pop3 exists and wasn't provided by mailbase
 * //etc/pam.d/imap exists and wasn't provided by mailbase

 * Those files listed above have to be removed in order to
 *  install this version of mailbase.

 * If you edited them, remember to backup and when restoring make
 *  sure the first line in each file is:
 * # Provided by mailbase (dont remove this line!)

!!! ERROR: net-mail/mailbase-0.00-r8 failed.
!!! Function pkg_setup, Line 50, Exitcode 0
!!! Can't be installed, files will collide
!!! If you need support, post the topmost build error, NOT this status message.

 ...done!
>>> emerge (1 of 4) net-mail/mailbase-0.00-r8 to /


Code:
$ qpkg -f /etc/pam.d/pop3
net-mail/courier-imap *
 $ qpkg -f /etc/pam.d/imap
net-mail/courier-imap *


Any way to resolve this? I"m not sure which version of /etc/pam.d/pop3 and imap I need, but I would imaging they're very similar no?

Thanks,
Back to top
View user's profile Send private message
schpanky
n00b
n00b


Joined: 12 Jan 2005
Posts: 58

PostPosted: Fri Feb 18, 2005 4:43 pm    Post subject: Reply with quote

Quote:
* Those files listed above have to be removed in order to
* install this version of mailbase.

...just do what it tells ya...
:)
Back to top
View user's profile Send private message
sfp-a7x
n00b
n00b


Joined: 16 Nov 2004
Posts: 47

PostPosted: Sat Feb 19, 2005 2:57 am    Post subject: Reply with quote

Yeah, it's easy to follow the directions, but I would like to know the answer to a more fundamental question: How did the package end up with conflicting files in the first place? Barring an answer to that, could something break by blindly following the directions without understanding why they need to be followed? (Perhaps the package maintainer didn't test for this particular case?) Certainly mailbase should peacfully coexist with courier-imap, right?

Does someone know the proper long-term solution to this?

I guess I just wish that the error message was more descriptive. I guess I wish all error messages were more descriptive. If all the error message has to say is "do xyz", then it should just do "xyz" itself and let me get on with my life. If the error is more complicated than that, the message should say (1) what the problem is from the computer's point of view, (2) what the program was expecting, (3) what steps the program took before arriving at the problem, (4) a guess at what the problem is from the user's point of view, (5) possible causes of the problem, (6) possible solutions to the problem, and (7) possible side effects of the solutions. I know that writing software this way is tedious and non-sexy, but it would help Gentoo win more love from the non-l33t public.
Back to top
View user's profile Send private message
psychomunky
Guru
Guru


Joined: 02 Nov 2004
Posts: 337
Location: Canada

PostPosted: Sun Feb 20, 2005 10:19 pm    Post subject: Reply with quote

I'm with sfp-a7x on this. I saw his remarks in another post regarding "If the solution is that simple why doesn't it do it it itself??" , I have the same question I and I think I know why it doesn't do it itself...because us as users may have made changes to it. What I am not understanding is why some etc-update magic be used to install the new versions instead of outright refusing to install??

Some background on this would be helpful, because I am afraid to upgrade for fear of breaking my mail server. It was a bitch to get fix once before after something broke it and I'd rather not go through that again.

I apologise if being a relatively intelligent gentoo user, who is curious as to "why?" rather than just "what?" offends some peeps in these forums, but I have seen about 8 threads on this same subject ("Why is it telling me these files conflict?") people just telling us to "Do what it says"....This is not our question...our question is why is it telling us that these files conflict when r6 didn't??

And yes I have seen the links to the bugs regarding the file permissions, but that seems to be a different issue with /var/spool/mail or something. If it is the same issue, I apologise, but could someone explain why those /var perm issues afftect files in /etc??

Thankyou in advance and I apologise for ranting!! I just had to get that off my chest since in the past I have never found these forums to be snide or condescending like some others I know, and the response to these questions were just rubbing me the wrong way...
Back to top
View user's profile Send private message
gmtl3
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2004
Posts: 135

PostPosted: Sun Feb 20, 2005 10:24 pm    Post subject: Reply with quote

Yes, schpanky's response was very helpful if all you care about is a successful emerge of mailbase. If, on the other hand, you're equally concerned about the health and functionality of your system, then the answer may not be that simple.

In this case, however, it is just that simple. I move /etc/pam.d/imap and pop3 to imap-courier and pop3-courier and then emerged mailbase. After a successful emerge of mailbase, I did a "diff" on the files and there were no differences outside of the comments.

So, it's safe to blow those two files away and the emerge mailbase. However, this kind of problem will continue to cause me fits as I upgrade the two packages. Perhaps one or both of them could be smart enough to just warn about the problem, don't overlay the existing version of the file with their own, and continue on to success. Then, if you start to have problems you could see the ebuild log files to determine the problem.

Thanks for the follow up posts.
Back to top
View user's profile Send private message
schpanky
n00b
n00b


Joined: 12 Jan 2005
Posts: 58

PostPosted: Tue Feb 22, 2005 2:44 pm    Post subject: Reply with quote

sorry I didn't get back on this quicker.....

Quote:

In this case, however, it is just that simple. I move /etc/pam.d/imap and pop3 to imap-courier and pop3-courier and then emerged mailbase. After a successful emerge of mailbase, I did a "diff" on the files and there were no differences outside of the comments.


I had done this on one of my systems prior to posting this.... shoulda given you more info.

my bust.
Back to top
View user's profile Send private message
nickrout
Apprentice
Apprentice


Joined: 06 Oct 2002
Posts: 208
Location: New Zealand

PostPosted: Wed Mar 02, 2005 8:36 pm    Post subject: Reply with quote

I just did the same as gmtl3 and it worked.

for those concerned about whether this will happen again, it seems from the comments:

Quote:
* If you edited them, remember to backup and when restoring make
* sure the first line in each file is:
* # Provided by mailbase (dont remove this line!)


and the fact that the new files have that comment in the first line:

Quote:
# Provided by mailbase (dont remove this line!)


That the same error may not re-occur.

After this update I might try reinstalling mailbase and see what happens just to confirm this.
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