[petsc] 01/01: remove configure option --with-mpi-dir

Drew Parsons dparsons at moszumanska.debian.org
Wed Nov 1 08:13:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to branch experimental
in repository petsc.

commit a3c279e2479af2cedff13d2437bda2ae31468a2c
Author: Drew Parsons <dparsons at debian.org>
Date:   Wed Nov 1 15:23:33 2017 +0800

    remove configure option --with-mpi-dir
    
    MPI compilers mpicc, etc. are found automatically during
    TEST checkCCompiler, checkFortranCompiler, checkCxxCompiler in
    config/BuildSystem/config/setCompilers.py.
    
    Note in particular the warning from TEST checkMPICompilerOverride:
      Check if --with-mpi-dir is used along with CC CXX or FC compiler options.
        This usually prevents mpi compilers from being used - so issue a warning
    
    In v3.8 this warning is given substance by upstream commit a98758b
    (2017-02-15), which drops mpi compilers if the bin subdir is missing
    from the MPI dir.
    
    We were using --with-mpi-dir=/usr/lib/x86_64-linux-gnu/openmpi
    and indeed that mpi dir has no bin subdir.
    
    So if mpi compilers are already found, then --with-mpi-dir is not
    required. It prevents configuration if we do use. So remove it.
---
 debian/changelog | 2 ++
 debian/rules     | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 0fe8609..671205b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ petsc (3.8.0+dfsg1-1exp1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream version.
     - updated API, fortran interfaces are simplified.
+    - configure option --with-mpi-dir not required (MPI compilers
+      mpicc, etc. are found automatically).
   * Remove deprecated debian patches:
     - applied upstream:
         build-ssl1.1.patch
diff --git a/debian/rules b/debian/rules
index 7f2be11..d713629 100755
--- a/debian/rules
+++ b/debian/rules
@@ -99,7 +99,6 @@ PACKAGE_COMPLEX_DEBUG_INSTALL_DIR=$(PACKAGE_COMPLEX_DEBUG_INSTALL_BASEDIR)/$(PET
 CONFIGURATION_OPTIONS=--with-shared-libraries --with-pic=1 \
 	  --useThreads=0 \
 	  --with-fortran-interfaces=1 \
-	  --with-mpi-dir=$(PETSC_MPI_DIR) \
 	  --with-blas-lib=-lblas --with-lapack-lib=-llapack \
 	  --with-scalapack=1 --with-scalapack-lib=-lscalapack-$(PETSC_MPI) \
 	  --with-mumps=1 --with-mumps-include=[] --with-mumps-lib="-ldmumps -lzmumps -lsmumps -lcmumps -lmumps_common -lpord" \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/petsc.git



More information about the debian-science-commits mailing list