Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82244 - mailbase-0.00-r8 chokes on /etc/pam.dpop3 and imap
Summary: mailbase-0.00-r8 chokes on /etc/pam.dpop3 and imap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 06:02 UTC by Santiago Gala
Modified: 2005-02-20 11:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Santiago Gala 2005-02-16 06:02:53 UTC
sudo emerge -av mailbase

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

Calculating dependencies ...done!
[ebuild     U ] net-mail/mailbase-0.00-r8 [0.00-r6] +pam 0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No]
>>> emerge (1 of 1) net-mail/mailbase-0.00-r8 to /
 * 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.

The files belong to net-mail/courier-imap

equery belongs /etc/pam.d/pop3 /etc/pam.d/imap
[ Searching for file(s) /etc/pam.d/pop3,/etc/pam.d/imap in *... ]
net-mail/courier-imap-4.0.1-r1 (/etc/pam.d/imap)
net-mail/courier-imap-4.0.1-r1 (/etc/pam.d/pop3)

How should I proceed?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-02-16 07:24:00 UTC
You can safely remove mentioned files and remerge mailbase-0.00-r8. All imap and pop3 packages, which use (and provide their own) files in /etc/pam.d/ are being changed to depend on mailbase-0.00-r8 and not to install their own versions.

The rationale is that these pam.d files provided by various packages were practically identical.

Feel free to comment here if you have questions to ask about this, or take it to the gentoo-user mailinglist.
Comment 2 David Westley 2005-02-20 11:13:04 UTC
I hate raining on people's parades but I wouldn't call this "FIXED".

Because the current situation is that if you install/upgrade courier-imap it will replace the /etc/pam.d files and if you subsequently install/upgrade mailbase the ebuild bombs out because the files don't match the ones that it would have previously installed.

Wouldn't it have been a better idea to mask the new versions of mailbase until the mail packages had been updated so as not to cause this problem?