aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-07-06 14:25:02 -0800
committerCharlie Sharpsteen2012-07-28 09:12:44 -0700
commit4e640cba0430fa88499b706b168520310363beda (patch)
treee1024b2b37f93b520cd758abbf62cc73fed1a15a /Library
parent98d69d9efc300cd6ba50af1bf33da2f27dca0cdb (diff)
downloadhomebrew-4e640cba0430fa88499b706b168520310363beda.tar.bz2
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 <source@sharpsteen.net>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 0fd44580b..5f7641a33 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(<lang list>)
+ Where <lang list> is a comma delimited list that can include:
+ :cc, :cxx, :f90, :f77
+ EOS
end
end