[PVFS2-CVS] commit by pcarns in pvfs2/maint/build: mpich2-build.py
CVS commit program
cvs at parl.clemson.edu
Mon Mar 29 14:32:38 EST 2004
Update of /projects/cvsroot/pvfs2/maint/build
In directory parlweb:/tmp/cvs-serv4700
Modified Files:
mpich2-build.py
Log Message:
quick hack to make mpich2-build.py use patch from pvfs2/doc/coding
directory, but something isn't working out right yet
Index: mpich2-build.py
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/build/mpich2-build.py,v
diff -p -u -r1.2 -r1.3
--- mpich2-build.py 21 Mar 2004 22:07:21 -0000 1.2
+++ mpich2-build.py 29 Mar 2004 19:32:37 -0000 1.3
@@ -6,6 +6,7 @@ import os,sys,string
# default directory to download and build in
rootdir="/tmp/pvfs2-build-test/"
+
def get_build_MPICH2():
os.chdir(rootdir)
@@ -22,14 +23,15 @@ def get_build_MPICH2():
print "Failed to untar mpich2; Exiting..."
sys.exit(1)
+
# find the release name
os.system('ln -s `head -n1 tarout` mpich2-src')
- # see if there are any patches available for this mpich release
- if os.system('wget -q http://www.parl.clemson.edu/~pcarns/patches/`head -n1 tarout`/pvfs2.patch') == 0:
- if os.system('patch -s -p1 -d mpich2-src < pvfs2.patch'):
- print "Failed to patch mpich2; Exiting..."
- sys.exit(1)
+ # look for a patch that matches it- don't error out if this fails;
+ # the mpich2 version we downloaded may not need a patch
+ os.system('ls pvfs2/doc/coding/romio-MPICH2-`head -n1 tarout | cut -d "-" -f 2 | cut -d "/" -f 1`-PVFS2* > target_patch')
+ os.system('patch -s -p0 -d mpich2-src/src/mpi/romio < `cat target_patch`')
+
os.remove('tarout')
# set the necessary variables for compiling with PVFS2 support and install it
More information about the PVFS2-CVS
mailing list