spack-rdma-core-rundir.patch 1004 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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