Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1098 - maildrop doesn't compile
Summary: maildrop doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-12 11:20 UTC by Jan Sabbe
Modified: 2003-02-04 19:42 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 Jan Sabbe 2002-03-12 11:20:20 UTC
Maildrop didn't want to compile without a /var/spool/mail. (./configure failed, saying it couldn't find the system mailbox). I also had to modify maildrop/config.h so it would point to $HOME/.maildir. The configure switch to enable this behaviour doens't do anything i guess...
Comment 1 Jan Sabbe 2002-03-12 11:50:22 UTC
Creating a new attachment doesn't work... Pasting my patch below.
*** maildrop-1.3.6.ebuild       Wed Dec 19 08:40:39 2001
--- maildrop-1.3.6-r1.ebuild    Wed Mar  6 18:08:05 2002
***************
*** 17,22 ****
--- 17,25 ----
  
  
  src_compile() {
+       if [ ! -d /var/spool/mail ]; then
+               mkdir -p /var/spool/mail
+       fi
        ./configure --host=${CHOST} \
                --prefix=/usr \
                --mandir=/usr/share/man \
***************
*** 25,31 ****
                --disable-tempdir --enable-syslog=1 \
                --enable-maildirquota \
                --enable-userdb || die
!         
        make || die
  }
--- 28,35 ----
                --disable-tempdir --enable-syslog=1 \
                --enable-maildirquota \
                --enable-userdb || die
!         cp maildrop/config.h maildrop/config.h.bak
!       cat maildrop/config.h.bak | sed -e 's;\(DEFAULT_DEF\).*;\1
"./.maildir";' > maildrop/config.h                   
        make || die
  }
  
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-03-12 12:45:04 UTC
Hey Grant :)  Of course, we can't create the /var/spool/mail directory as Jan
has done, but we need to fix it somehow.  Forwarding to you for assistance.
Comment 3 Jan Sabbe 2002-03-17 17:43:42 UTC
Here is another suggested patch (needs some work i guess). The patch has to be
applied to $SRC_DIR/maildrop/configure (not $SRC_DIR/configure). It doesn't
allow /var/spool/mail or something like that, without the user editing
$SRC_DIR/maildrop/config.h. I don't know if that's a problem... 

Here is the patch: 

*** configure.old       2001-11-27 14:18:36.000000000 +0100
--- configure   2002-03-18 00:24:17.000000000 +0100
***************
*** 3210,3237 ****
  
  
  get_spooldir() {
! 
! for f in /var/spool/mail /usr/spool/mail /var/mail /usr/mail
! do
!       test_spooldir "$f"
!       if test "$SPOOLDIR" != ""
!       then
!               return 0
!       fi
! done
! 
! # Not found, possibly qmail $HOME/Mailbox
! if test "$QMAIL" != ""
! then
!       SPOOLDIR="./Mailbox"
! else
!       if test -d $srcdir/../courier
!       then
!               SPOOLDIR="./Maildir"
!       else
!               { echo "configure: error: Cannot determine default mailbox"
1>&2; exit 1; }
!       fi
! fi
  }
  
  check_spooldir() {
--- 3210,3216 ----
  
  
  get_spooldir() {
! SPOOLDIR="./.maildir"
  }
  
  check_spooldir() {
Comment 4 Grant Goodyear (RETIRED) gentoo-dev 2002-03-21 14:28:48 UTC
The workaround should be fine for the moment.  The main problem
seems to be that the ./configure script is seriously broken for
people using maildrop w/o either a standard mbox spool or
qmail and ~/Maildir.  We need to seriously modify how we do
mail stuff w/ gentoo, so a real fix will have to wait a
bit.
Comment 5 Grant Goodyear (RETIRED) gentoo-dev 2002-05-14 14:23:43 UTC
Reassigning to you since you've been re-working our mail system.
Comment 6 Nick Hadaway 2002-08-19 20:20:37 UTC
The latest build of maildrop includes support for setting the proper maildrop
directory (--with-default-maildrop=./.maildir/) which corresponds with the
gentoo default.  I have also changed the dependancies to include
net-mail/mailbase which installs /var/spool/mail and associated symlinks for
mail programs.

emerge rsync
emerge maildrop

Updated ebuild should be available on rsync servers within 24 hours.
Please test and let me know how things work for you.
Comment 7 Nick Hadaway 2002-09-03 15:41:08 UTC
anybody still around on this bug?  Can I get a verification that maildrop 
compiles and sets things properly with gentoo system defaults?