[Mailman-Developers] News->Mail gateways

Barry A. Warsaw bwarsaw@CNRI.Reston.Va.US (Barry A. Warsaw)
Thu, 4 Jun 1998 10:42:51 -0400 (EDT)


>>>>> "JV" == John Viega <viega@list.org> writes:

    JV> Well, it looks like Python isn't in your path when installing,
    JV> and it needs to be.  The configure script is trying to run
    JV> Python to guess which group your SMTPD runs under, but can't
    JV> run Python, and thus can't come up with a guess.

John's right.  The problem is that the configure script looks on your
$PATH for python (which it didn't find), but defaults to
/usr/local/bin/python (which it did find).  If configure never found a
python binary, it would have exited earlier.

The problem is that other tests in the configure script assume python
is on your path, and in your case it isn't.  This is exactly the kind
of bug I was hoping would get fleshed out by this beta, so... thanks
Mike!  :-)

Try this patch.  It changes the tests so that it uses the python
binary it found in the earlier test.

-Barry

P.S. The error message isn't very good, so I'll change that, but not
for this patch.

-------------------- snip snip --------------------
Index: configure
===================================================================
RCS file: /projects/cvsroot/mailman/configure,v
retrieving revision 1.9
diff -C2 -r1.9 configure
*** configure	1998/06/03 22:25:49	1.9
--- configure	1998/06/04 14:39:13
***************
*** 1,5 ****
  #! /bin/sh
  
! # From configure.in Revision: 1.9 
  
  # Guess values for system-dependent variables and create Makefiles.
--- 1,5 ----
  #! /bin/sh
  
! # From configure.in Revision: 1.10 
  
  # Guess values for system-dependent variables and create Makefiles.
***************
*** 1005,1009 ****
  fp.close()
  EOF
!     python conftest.py
      MAIL_GID=`cat conftest.out`
  fi
--- 1005,1009 ----
  fp.close()
  EOF
!     $PYTHON conftest.py
      MAIL_GID=`cat conftest.out`
  fi
***************
*** 1061,1065 ****
  fp.close()
  EOF
!     python conftest.py
      CGI_GID=`cat conftest.out`
  fi
--- 1061,1065 ----
  fp.close()
  EOF
!     $PYTHON conftest.py
      CGI_GID=`cat conftest.out`
  fi
***************
*** 1110,1114 ****
  fp.close()
  EOF
! python conftest.py
  
  echo $ac_n "checking for default fully qualified host name""... $ac_c" 1>&6
--- 1110,1114 ----
  fp.close()
  EOF
! $PYTHON conftest.py
  
  echo $ac_n "checking for default fully qualified host name""... $ac_c" 1>&6