Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55309 - courier and courier-imap packages conflict
Summary: courier and courier-imap packages conflict
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 59252 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-27 02:26 UTC by Samuel Penn
Modified: 2005-01-04 15:09 UTC (History)
4 users (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 Samuel Penn 2004-06-27 02:26:40 UTC
The package 'courier-imap' seems to be a subset of package 'courier', and installing both breaks the Courier system. Each package should block the other, so that it is obvious that both shouldn't be installed at the same time. Or change the description of the courier package to say that it includes the imap server and all other Courier packages (obvious with hindsight, but I wasn't sure, and expected the packages to be set up to stop me installing both if I wasn't supposed to).

After installing both (thinking 'courier' was everything except for the imap server), I could not get the Courier authdaemon working properly, and no mail would be accepted by the smtp server.


Reproducible: Didn't try
Steps to Reproduce:
1. emerge courier
2. emerge courier-imap


Actual Results:  
Notice that there are two versions of authdaemond installed. The one referenced in 
the courier init scripts hangs on startup. The IMAP server can authenticate against 
the other one, but esmtpd cannot. The error from esmtpd were as follows: 
 
courieresmtpd: CRIT: authdaemon: s_connect() failed: No such file or directory 
courieresmtpd: error,relay=127.0.0.1,from=<>,to=<sam@glendale.org.uk>: 450  
Service temporarily unavailable. 
 
 

Expected Results:  
Both esmtpd and imapd should have been able to use the same authdaemond for pam 
authentication. 

NB: Whilst trying to get both packages working together, I installed some other 
packages, such as mysql, which were picked up after I uninstalled both, and 
re-installed courier. 
 
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 
2.6.7-gentoo-r6) 
================================================================= 
System uname: 2.6.7-gentoo-r6 i686 AMD Athlon(tm) MP 1800+ 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" 
CHOST="i386-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.tiscali.nl/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X apm arts avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif gpm gtk 
gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis 
opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcltk 
tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-08-03 10:03:59 UTC
*** Bug 59252 has been marked as a duplicate of this bug. ***
Comment 2 Alexander Skwar 2004-11-15 04:10:14 UTC
I'm seeing this as well. First, I installed courier-0.47. Next, I tried to install php:

13:01:27 askwar@alturo:~ $ time sudo emerge --verbose --ask --tree  dev-php/mod_php
Password:
Sorry, try again.
Password:

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

Calculating dependencies ...done!
[ebuild  N    ] dev-php/mod_php-5.0.2  -adabas +apache2 +bcmath +berkdb -birdstep +bzlib +calendar -cdb -cpdflib +crypt -ctype +curl +curlwrappers -db2 +dba -dbase -dbm -dbmaker -dbx -debug -dio -empress -empress-bcs -esoob +exif +fam -fdftk -filepro -flatfile -frontbase +ftp +gd -gd-external +gdbm +gmp -hyperwave-api +iconv +imap -informix -ingres +inifile -interbase -iodbc +jpeg +ldap -libedit -mcve -memlimit +mhash +mime +ming -mnogosearch +msession -msql -mssql +mysql -mysqli +ncurses -nis +nls -oci8 -odbc -oracle7 -ovrimos +pcntl +pcre -pfpro +png +posix +postgres -qdbm +readline -recode -sapdb +sasl +session +shared +sharedmem -simplexml -snmp +soap +sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct +sysvipc +tidy +tiff -tokenizer +truetype -wddx +xml2 +xmlrpc -xpm +xsl +zlib 0 kB
[ebuild  N    ]  dev-php/php-5.0.2-r1  -adabas +bcmath +berkdb -birdstep +bzlib +calendar -cdb -cpdflib +crypt -ctype +curl +curlwrappers -db2 +dba -dbase -dbm -dbmaker -dbx -debug -dio -empress -empress-bcs -esoob +exif +fam -fdftk -filepro -flatfile -frontbase +ftp +gd -gd-external +gdbm +gmp -hyperwave-api +iconv +imap -informix -ingres +inifile -interbase -iodbc +jpeg +ldap +libedit -mcve -memlimit +mhash +mime +ming -mnogosearch +msession -msql -mssql +mysql -mysqli +ncurses -nis +nls -oci8 -odbc -oracle7 -ovrimos +pcntl +pcre -pfpro +png +posix +postgres -qdbm -readline -recode -sapdb +sasl +session +shared +sharedmem -simplexml -snmp +soap +sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct +sysvipc +tidy +tiff -tokenizer +truetype -wddx +xml2 +xmlrpc -xpm +xsl +zlib 0 kB
[ebuild  N    ]   net-nds/openldap-2.1.30-r3  -berkdb +crypt -debug +gdbm -ipv6 -odbc +perl +readline -samba +sasl -slp +ssl +tcpd 1,996 kB
[ebuild  N    ]    dev-libs/cyrus-sasl-2.1.20  +authdaemond +berkdb -debug +gdbm -java -kerberos -ldap +mysql +pam +postgres +ssl -static 1,733 kB
[ebuild  N    ]     net-mail/courier-imap-3.0.8  -berkdb -debug +fam +gdbm -ipv6 -ldap +mysql +nls +pam +postgres (-selinux) 0 kB

Total size of downloads: 3,730 kB

As you can see, this tries to install "net-mail/courier-imap-3.0.8". This bombs:

>>> Completed installing into /var/tmp/portage/courier-imap-3.0.8/image/

* checking 130 files for package collisions
existing file /usr/bin/maildirmake is not owned by this package
existing file /usr/sbin/courier-imapd is not owned by this package
existing file /usr/sbin/courier-pop3d is not owned by this package
existing file /usr/sbin/pw2userdb is not owned by this package
existing file /usr/sbin/makeuserdb is not owned by this package
existing file /usr/sbin/mkimapdcert is not owned by this package
existing file /usr/sbin/sharedindexsplit is not owned by this package
existing file /usr/sbin/vchkpw2userdb is not owned by this package
existing file /usr/sbin/sharedindexinstall is not owned by this package
existing file /usr/sbin/userdb is not owned by this package
existing file /usr/sbin/authenumerate is not owned by this package
existing file /usr/sbin/userdbpw is not owned by this package
existing file /usr/sbin/courierlogger is not owned by this package
existing file /usr/sbin/mkpop3dcert is not owned by this package
existing file /usr/share/man/man1/maildirmake.1.gz is not owned by this package
existing file /usr/share/man/man1/maildirkw.1.gz is not owned by this package
existing file /usr/share/man/man1/couriertcpd.1.gz is not owned by this package
existing file /usr/share/man/man1/courierlogger.1.gz is not owned by this package
existing file /usr/share/man/man1/maildiracl.1.gz is not owned by this package
existing file /usr/share/man/man7/authlib.7.gz is not owned by this package
existing file /usr/share/man/man8/mkpop3dcert.8.gz is not owned by this package
existing file /usr/share/man/man8/userdb.8.gz is not owned by this package
existing file /usr/share/man/man8/imapd.8.gz is not owned by this package
existing file /usr/share/man/man8/deliverquota.8.gz is not owned by this package
existing file /usr/share/man/man8/userdbpw.8.gz is not owned by this package
existing file /usr/share/man/man8/mkimapdcert.8.gz is not owned by this package
existing file /usr/share/man/man8/makeuserdb.8.gz is not owned by this package



There are two bugs here:

First, courier should block courier-imap and vice versa.
Second, courier should provide whatever courier-imap is providing, so that it courier-imap doesn't get installed by packages like PHP.


13:08:52 askwar@alturo:~ $ emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3.PHP2.4kb.cleaned.no-preempt.05 i686)
=================================================================
System uname: 2.6.9-gentoo-r3.PHP2.4kb.cleaned.no-preempt.05 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.6.6
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-fomit-frame-pointer -pipe -O2 -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache collision-protect distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://194.117.158.29/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 apm arts async avi bzlib crypt cscope cups curl curlwrappers diet djbfft encode exif fam flash foomaticdb ftp fwdzone gd gdbm gif hal hardened iconv imagemagick imap imlib immqt-bc ithreads javascript jpeg libedit libg++ libwww lzo lzw lzw-tiff mad maildir mailwrapper mbox mmap mmx mng mpeg mysql ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl offensive oggvorbis opengl oss pam parse-clocks pcntl pcre pdflib perl pic pie png posix postgres pwdb python qt quicktime readline recode sasl sdl shared slang sockets spell sse ssl sysvipc tcpd tiff truetype unicode vhosts x86 xfs xml2 xmms xv zlib linguas_de"
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-11-15 11:39:37 UTC
Alexander Skwar: PHP does NOT depend on courier-imap.

In this case, the problem is with cyrus-sasl wanting courier-imap when USE=authdaemond (it should accept both courier and courier-imap).

langthang: could you please have courier block courier-imap, and vice-versa?
Comment 4 Alexander Skwar 2004-11-15 11:52:39 UTC
Robin,

yes, you're right. PHP doesn't directly depend on courier imap. However, courier-imap was going to be installed, because I was going to install php. This caused openldap and cyrus-sasl to be installed.

Anyhow, my point was, that courier should provide everything that courier-imap provides, so that courier-imap doesn't get installed when something (for example, cyrus-sasl) needs "something".
Comment 5 Tuan Van (RETIRED) gentoo-dev 2004-11-16 09:31:20 UTC
in cvs. courier-imap now blocks virtual/imapd.
Comment 6 Georgi Georgiev 2004-12-17 07:41:57 UTC
But why block on virtual/imapd ? Aren't these two packages (courier and courier-imap) the only two that block each other? I expect that bincimapd would nicely live together with courier, or courier-imap, or cyrus for that matter?
Comment 7 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-01-04 15:09:02 UTC
I just wanted to add that I use courier-imap with bincimap on several servers with no problems at all - they seem to live quite happily together. This is to provide a secure POP3 daemon and a backup secure IMAP daemon on a second IP. Is it possible to correct this behaviour with regards to courier-imap blocking bincimap?