summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPhil Carns <carns@mcs.anl.gov>2018-10-10 21:51:19 -0400
committerPeter Scheibel <scheibel1@llnl.gov>2018-10-10 18:51:19 -0700
commit312de47594aa751bddfd20daa341cea4a5e94ebe (patch)
treee31d948811ebeaae7d29f840629d4b3e7836b779 /var
parentaac8d52075b26e66582b7b09b8594c07971a88d7 (diff)
downloadspack-312de47594aa751bddfd20daa341cea4a5e94ebe.tar.gz
spack-312de47594aa751bddfd20daa341cea4a5e94ebe.tar.bz2
spack-312de47594aa751bddfd20daa341cea4a5e94ebe.tar.xz
spack-312de47594aa751bddfd20daa341cea4a5e94ebe.zip
update rdma-core package to specify rundir (#9370)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/rdma-core/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/rdma-core/package.py b/var/spack/repos/builtin/packages/rdma-core/package.py
index 5113ec5206..51559512a3 100644
--- a/var/spack/repos/builtin/packages/rdma-core/package.py
+++ b/var/spack/repos/builtin/packages/rdma-core/package.py
@@ -40,7 +40,12 @@ class RdmaCore(CMakePackage):
conflicts('platform=darwin', msg='rdma-core requires FreeBSD or Linux')
conflicts('%intel', msg='rdma-core cannot be built with intel (use gcc instead)')
+# NOTE: specify CMAKE_INSTALL_RUNDIR explicitly to prevent rdma-core from
+# using the spack staging build dir (which may be a very long file
+# system path) as a component in compile-time static strings such as
+# IBACM_SERVER_PATH.
def cmake_args(self):
cmake_args = ["-DCMAKE_INSTALL_SYSCONFDIR=" +
- self.spec.prefix.etc]
+ self.spec.prefix.etc,
+ "-DCMAKE_INSTALL_RUNDIR=/var/run"]
return cmake_args