[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

configuration problem and patch



Barry, I had problems configuring a fresh clone of petsc-dev, you have
attached a patch with solved it for me. As new build systems is rather
new for me, please review it and apply it (if it is OK)

BTW, if things works as I understood, perhaps the those small files
saved in packageDir should be prefixed and posfixed with the
PETSC_ARCH used in configuration (let say, using perhaps somethink
like petsc-hypre.linux-gnu, petsc-ml.linux-gnu).

Regards,


-- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594
diff -r 21b5e52a8beb python/PETSc/packages/hypre.py
--- a/python/PETSc/packages/hypre.py	Wed Jun 20 15:26:37 2007 -0500
+++ b/python/PETSc/packages/hypre.py	Wed Jun 20 21:01:48 2007 -0300
@@ -75,7 +75,7 @@ class Configure(PETSc.package.Package):
     args.append('--without-fei')
     args.append('--without-superlu')
     args = ' '.join(args)
-    fd = file(os.path.join(self.installDir,'hypre'), 'w')
+    fd = file(os.path.join(self.packageDir,'hypre'), 'w')
     fd.write(args)
     fd.close()
 
diff -r 21b5e52a8beb python/PETSc/packages/sowing.py
--- a/python/PETSc/packages/sowing.py	Wed Jun 20 15:26:37 2007 -0500
+++ b/python/PETSc/packages/sowing.py	Wed Jun 20 20:48:32 2007 -0300
@@ -17,7 +17,7 @@ class Configure(PETSc.package.Package):
     fd = file(os.path.join(self.packageDir,'sowing'), 'w')
     fd.write(args)
     fd.close()
-    if self.installNeeded('makefile.in'):
+    if self.installNeeded('sowing'):
       try:
         output  = config.base.Configure.executeShellCommand('cd '+self.packageDir+';./configure '+args, timeout=900, log = self.framework.log)[0]
       except RuntimeError, e: