From 524190f109a6e630717dcd521bcde692edcfb520 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Fri, 6 Jul 2012 14:25:02 -0800 Subject: [PATCH] brew-audit: Warn against depending on MPI Depending on `open-mpi` or `mpich2` will cause problems since both formulae install components with the same names. `brew audit` now recommends using MPIDependency. Signed-off-by: Charlie Sharpsteen --- Library/Homebrew/cmd/audit.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 0fd44580b3..5f7641a33c 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -337,6 +337,14 @@ def audit_formula_instance f EOS when 'gfortran' problems << " * Use ENV.fortran during install instead of depends_on 'gfortran'" + + when 'open-mpi', 'mpich2' + problems << <<-EOS.undent + * There are multiple conflicting ways to install MPI. Use a MPIDependency: + depends_on MPIDependency.new() + Where is a comma delimited list that can include: + :cc, :cxx, :f90, :f77 + EOS end end