From 6f4c90378ac7f0984bc63fa8cdf467c433528f9c Mon Sep 17 00:00:00 2001 From: "Dr. Christian Tacke" <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Fri, 31 Jan 2020 21:01:58 +0100 Subject: [libfabric@1.9.0] Fix C++ header usage (#14703) Fix from libfabric's git for 1.9.0. Compiling C++ software against libfabric@1.9.0 doesn't work without this patch. See: https://github.com/ofiwg/libfabric/commit/2e95b0efd85fa8a3d814128e34ec57ffd357460e --- var/spack/repos/builtin/packages/libfabric/package.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/libfabric/package.py b/var/spack/repos/builtin/packages/libfabric/package.py index 5e4255b7cf..da5edc48f4 100644 --- a/var/spack/repos/builtin/packages/libfabric/package.py +++ b/var/spack/repos/builtin/packages/libfabric/package.py @@ -59,6 +59,12 @@ class Libfabric(AutotoolsPackage): variant('kdreg', default=False, description='Enable kdreg on supported Cray platforms') + # For version 1.9.0: + # headers: fix forward-declaration of enum fi_collective_op with C++ + patch('https://github.com/ofiwg/libfabric/commit/2e95b0efd85fa8a3d814128e34ec57ffd357460e.patch', + sha256='71f06e8bf0adeccd425b194ac524e4d596469e9dab9e7a4f8bb209e6b9a454f4', + when='@1.9.0') + depends_on('rdma-core', when='fabrics=verbs') depends_on('opa-psm2', when='fabrics=psm2') depends_on('psm', when='fabrics=psm') -- cgit v1.2.3-70-g09d2