Coda File System

patch to fix python path

From: Greg Troxel <gdt_at_ir.bbn.com>
Date: Mon, 22 Oct 2007 15:31:17 -0400
On pkgsrc systems, python is installed as pythonX.Y, e.g. python2.4, and
the name 'python' is not bound to anything.  (Because packages install
files in site-local within some version, scripts must in general use the
same version of python that they were built/configured against.  If
there were a default version, then programs that use different python
versions would fail in mysterious ways.  Because some programs require
different versions, pkgsrc supports a multiple-python-version world.)

gcodacon calls 'python', and some version in the users path, rather than
the version which was found at configure time.

The following patch fixes this, finding python and substituting it.  I
don't think it will cause trouble on systems that do provide 'python'.
Could it be committed?

Index: configure.ac
===================================================================
RCS file: /coda-src/coda/configure.ac,v
retrieving revision 1.1
diff -u -p -r1.1 configure.ac
--- configure.ac	14 Aug 2007 03:54:25 -0000	1.1
+++ configure.ac	22 Oct 2007 19:27:34 -0000
@@ -51,6 +51,8 @@ AC_PATH_PROG(RM, rm, "")
 AC_PATH_PROG(SED, sed, "")
 AC_PATH_PROG(FLUID, fluid, "")
 
+AM_PATH_PYTHON
+
 AC_PATH_PROG(RP2GEN, rp2gen, "", [${PATH}:${prefix}/sbin:/usr/sbin:/usr/local/sbin:/usr/pkg/sbin])
 AC_PATH_PROG(RDSINIT, rdsinit, "", [${PATH}:${prefix}/sbin:/usr/sbin:/usr/local/sbin:/usr/pkg/sbin])
 AC_PATH_PROG(RVMUTL, rvmutl, "", [${PATH}:${prefix}/sbin:/usr/sbin:/usr/local/sbin:/usr/pkg/sbin])
Index: coda-src/vtools/gcodacon.in
===================================================================
RCS file: /coda-src/coda/coda-src/vtools/gcodacon.in,v
retrieving revision 4.11
diff -u -p -r4.11 gcodacon.in
--- coda-src/vtools/gcodacon.in	24 Sep 2007 16:29:05 -0000	4.11
+++ coda-src/vtools/gcodacon.in	22 Oct 2007 19:27:40 -0000
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!@PYTHON@
 #
 #			   Coda File System
 #			      Release 6
Received on 2007-10-22 15:34:31