summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2017-01-18 17:54:39 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-18 14:54:39 -0800
commit9b7001fda1d9738a65da3e02e5a5014391bd7850 (patch)
treebe0f84889ee1329e86e816e65f7178bc310be82c
parent02f92fc7f8a69618fcf91282222b8316ace9c4ae (diff)
downloadspack-9b7001fda1d9738a65da3e02e5a5014391bd7850.tar.gz
spack-9b7001fda1d9738a65da3e02e5a5014391bd7850.tar.bz2
spack-9b7001fda1d9738a65da3e02e5a5014391bd7850.tar.xz
spack-9b7001fda1d9738a65da3e02e5a5014391bd7850.zip
OpenMPI: Update auto-detection of Verbs library location (#2124)
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index 754cc8d93e..2c6b6d68ac 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -39,6 +39,9 @@ def _verbs_dir():
# Remove executable name and "bin" directory
path = os.path.dirname(path)
path = os.path.dirname(path)
+ # There's usually no "/include" on Unix; use "/usr/include" instead
+ if path == "/":
+ path = "/usr"
return path
except:
return None