File mpich-1.2.6.dif of Package mpich

Index: mpid/server/serv_p4.c
===================================================================
--- mpid/server/serv_p4.c.orig
+++ mpid/server/serv_p4.c
@@ -148,7 +148,7 @@ extern int optind;
 #define MAXARGS 256
 
 #ifndef LOGFILE
-#define LOGFILE "/usr/adm/secure_server.log"
+#define LOGFILE "/var/log/mpich/secure_server.log"
 #endif
 char logfile[1024];
 FILE *logfile_fp;
Index: util/mpiinstall.in
===================================================================
--- util/mpiinstall.in.orig
+++ util/mpiinstall.in
@@ -112,6 +112,10 @@ for arg in "$@" ; do
 	-device=*) DEVICE=`echo A$arg | sed -e 's/A-device=//g'` 
 	           COMM=$DEVICE 
 		   arg="" ;;   # device not valid for mpeargs
+        -datapath=*)datadir=`echo $arg | sed -e 's/-datapath=//g'`
+                   datadir_override=1
+                   arg="" ;;  # datapath not valid for mpeargs
+
 	-manpath=*)mandir=`echo $arg | sed -e 's/-manpath=//g'` 
 		   mandir_override=1
 		   arg="" ;;   # manpath not valid for mpeargs
@@ -141,6 +145,7 @@ Install MPICH into $prefix.
 -t           - Try only; do no installation.
 -libonly     - Install only the libraries; this is 
                appropriate for installing a second device.
+-datapath=path - Set an alternate path for the data files.
 -manpath=path- Set an alternate path for the man pages
 -noman       - Do not install the man pages.
 -device=name - Select a different device type to install
@@ -183,7 +188,9 @@ if [ "$prefix_override" = 1 ] ; then
     if [ "$mandir_override" != 1 ] ; then
         mandir=$prefix/man
     fi
-    datadir=$prefix/share
+    if [ "$datadir_override" != 1 ] ; then
+        datadir=$prefix/share
+    fi
     docdir=$prefix/doc
 fi
 
openSUSE Build Service is sponsored by