Commit 3a5a42eb authored by Philip Carns's avatar Philip Carns
Browse files

workaround problem in rdma-core spackage

- will open PR for spack for long term fix
parent af19d322
......@@ -18,6 +18,7 @@ JOBDIR=$PWD/mochi-regression-job-$$
# scratch area to clone and build things
mkdir $SANDBOX
cp spack-shell.patch $SANDBOX/
cp spack-rdma-core-rundir.patch $SANDBOX/
cp packages.yaml $SANDBOX/
# scratch area for job submission
......@@ -36,6 +37,7 @@ git clone
cd $SANDBOX/spack
patch -p1 < ../spack-shell.patch
patch -p1 < ../spack-rdma-core-rundir.patch
export SPACK_SHELL=bash
. $SANDBOX/spack/share/spack/
# put packages file in place in SPACK_ROOT to set our preferences for building
diff --git a/var/spack/repos/builtin/packages/rdma-core/ b/var/spack/repos/builtin/packages/rdma-core/
index 22307be6c..1c6698e7d 100644
--- a/var/spack/repos/builtin/packages/rdma-core/
+++ b/var/spack/repos/builtin/packages/rdma-core/
@@ -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
def cmake_args(self):
- self.spec.prefix.etc]
+ self.spec.prefix.etc,
return cmake_args
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment