<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>25027</bug_id>
          
          <creation_ts>2003-07-21 21:12 0000</creation_ts>
          <short_desc>courier authdaemon directory is not created [/or created with courier-imap directory instead]</short_desc>
          <delta_ts>2003-08-02 09:39:43 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gullevek@gullevek.org</reporter>
          <assigned_to>iggy@gentoo.org</assigned_to>
          <cc>nick@capital-internet.net</cc>
    
    <cc>raphael@ist.sowasvon.org</cc>
    
    <cc>robbat2@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gullevek@gullevek.org</who>
            <bug_when>2003-07-21 21:12:06 0000</bug_when>
            <thetext>I emerged courier and courier-imap, when I wanted to start courier (/etc/init.d/courier 
start) it complained about a missing &quot;/var/lib/courier/authdaemon/lock&quot; because the 
&quot;authdaemon&quot; dir was created in &quot;courier-imap&quot; instead of &quot;courier&quot;. 
 
Either courier-imap doesn&apos;t use its own /var/lib/ dir OR courier itself has its 
authdaemon dir set to courier-imap [which is more or less not logical] 
 
I haven&apos;t looked into courier in detail, but I think haveing two /etc dirs is not the best, 
as I see there are several double files (pop config in courier and courier-imap) which 
might be confusing to config. 

Reproducible: Always
Steps to Reproduce:
1. emerge courier courier-imap 
2. /etc/init.d/courier start 
3. 
Actual Results:  
courier fails to start because /var/lib/courier/authdaemon/lock file can&apos;t be created (dir 
does not exist) 

Expected Results:  
courier started 

perhaps merge /etc/courier and /etc/courier-imap and /var/lib/courier and 
/var/lib/courier-imap 
 
Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20-ck6 i586 AMD-K6(tm) 3D processor 
GENTOO_MIRRORS=&quot;http://gentoo.inode.at http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot; 
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot; 
PORTDIR=&quot;/usr/portage&quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot; 
USE=&quot;x86 oss apm avi encode foomaticdb gnome libg++ mad mikmod mpeg pdflib 
quicktime spell xmms xv gdbm tcltk guile esd motif mozilla 3dnow acl alsa apache2 arts 
berkdb canna cjk crypt cups curl dga directfb fbcon freewnn gd gif gpm gtk gtk2 imap 
imlib innodb ipv6 java jpeg kde kerberos libwww maildir mcal mmx mysql ncurses nls 
odbc oggvorbis opengl pam perl png postgres python qt readline ruby samba sasl sdl 
slang snmp ssl svga tcpd tetex tiff truetype usb wmf X xml xml2 zlib&quot; 
COMPILER=&quot;gcc3&quot; 
CHOST=&quot;i686-pc-linux-gnu&quot; 
CFLAGS=&quot;-march=k6 -O2 -pipe&quot; 
CXXFLAGS=&quot;-march=k6 -O2 -pipe&quot; 
ACCEPT_KEYWORDS=&quot;x86&quot; 
MAKEOPTS=&quot;-j2&quot; 
AUTOCLEAN=&quot;yes&quot; 
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot; 
FEATURES=&quot;sandbox ccache userpriv usersandbox&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2003-07-21 23:54:38 0000</bug_when>
            <thetext>courier and courier-imap should not be installed at the same time.  courier contains courier-imap already.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gullevek@gullevek.org</who>
            <bug_when>2003-07-22 06:15:50 0000</bug_when>
            <thetext>then, for gods sake, Block each other package. it should be possible to either block courier-imap from installing when courier is installed, or vica versa. if this is not possible, then this is either A) a very important feature for portage, or B) (more logical) imap functionallty has to be turned of in courier so courier and courier-imap are two seperate packages that complement each other.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>iggy@gentoo.org</who>
            <bug_when>2003-07-22 08:40:12 0000</bug_when>
            <thetext>If you read the courier webpage you will notice that courier can be installed in 
separate parts. There are reasons for this. Sometimes courier-imap is used with other 
mta&apos;s. Maildrop (part of courier) can be installed to take the place of procmail. Or 
you can get the whole shebang with courier. Some people might want to install 
courier-imap and courier at the same time (i.e. for converting from courier-imap/
some-other-mta -&gt; courier with only one box). While I do think we should attempt to 
make some things difficult to do, so inexperienced sys-admins don&apos;t shoot off their 
own toes, this is not one of them. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gullevek@gullevek.org</who>
            <bug_when>2003-07-24 01:55:16 0000</bug_when>
            <thetext>if I download the source from the courier webpage and do it myself I can shoot 
myself int he foot. but if a linux distribution gives me two packages called courier 
and courier-imap, I first think (and I am sure I am not the only one), that courier is 
pop/smtp without imap and courier-imap is the imap adon. 
it is not so, good, then why don&apos;t you block each other package? shoudln&apos;t be too 
complicated. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2003-07-24 02:05:01 0000</bug_when>
            <thetext>i vote having courier installed should block the standalone courier-imap/maildrop/etc and vice-versa.

Maybe instead of blocking via DEPEND, through a function in pkg_setup which dies if it detects a conflicting Mr. Sam package already installed and informing the user of the problem and valid choices for a solution?  Just a thought.  What do you think iggy?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>iggy@gentoo.org</who>
            <bug_when>2003-07-24 10:35:23 0000</bug_when>
            <thetext>I still think it&apos;s a bad idea to just block something like that. I&apos;ve personally had to move from 
qmail/courier-imap -&gt; courier back in my Slackware days, and if I had been unable to install both 
on the same system, I would have been SOL. I can do a conditional warning that says something 
along the lines of &quot;you already have courier-imap installed, courier includes this functionality, so 
you should remove it unless you need it&quot;. Would that satisfy everybody? Maybe we could talk 
robbat2 into doing something similar. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2003-07-24 10:41:01 0000</bug_when>
            <thetext>Iggy: doing that would break non-interactive emerges. Eg user does emerge -p ... and it all shows fine, then leave emerge ... running and comes back in the morning to find the second item, courier, stopped his entire list to emerges.

I&apos;m strongly with Nick on this one. A precedent for doing this already exists with MTAs anyway. 
try:
emerge -p qmail sendmail</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>iggy@gentoo.org</who>
            <bug_when>2003-07-24 10:59:14 0000</bug_when>
            <thetext>Fine, done. 
added !virtual/imapd to RDEPEND </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>raphael@ist.sowasvon.org</who>
            <bug_when>2003-07-29 08:32:55 0000</bug_when>
            <thetext>the problem here isn&apos;t that courier-imap and courier get installed concurrently, but courier-imap&apos;s initscript not working if ONLY the courier-imapd is installed

it just erroneously looks into /usr/lib/courier which simply doesn&apos;t exist (unless you install the courier package)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>iggy@gentoo.org</who>
            <bug_when>2003-08-02 09:39:43 0000</bug_when>
            <thetext>moved the version that fixes this to x86 </thetext>
          </long_desc>
      
    </bug>

</bugzilla>