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

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 https://github.com/pdlfs/mercury-runner.git
echo "=== BUILD SPACK PACKAGES AND LOAD ==="
cd $SANDBOX/spack
patch -p1 < ../spack-shell.patch
patch -p1 < ../spack-rdma-core-rundir.patch
export SPACK_SHELL=bash
. $SANDBOX/spack/share/spack/setup-env.sh
# put packages file in place in SPACK_ROOT to set our preferences for building
......
diff --git a/var/spack/repos/builtin/packages/rdma-core/package.py b/var/spack/repos/builtin/packages/rdma-core/package.py
index 22307be6c..1c6698e7d 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
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