[ewg] rdma-core rpm install on SLES12

Nikolova, Tatyana E tatyana.e.nikolova at intel.com
Wed May 17 12:09:05 PDT 2017


Hi,

On my setup, SLES 12 patch level 0, the rdma-core rpm from OFED-4.8 rc2 failed to install.
I didn't have any missing dependencies reported by OFED-4.8 install.

These are the changes I made to rdma-core.spec so that rdma-core rpm installs successfully.

---
 rdma-core.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rdma-core.spec b/rdma-core.spec
index 3f6e73a..2616357 100644
--- a/rdma-core.spec
+++ b/rdma-core.spec
@@ -33,7 +33,8 @@ BuildRequires: ninja,make
 # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags
 # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style
 # module libraries (eg ibacmp).
-%define CMAKE_FLAGS -DCMAKE_MODULE_LINKER_FLAGS=""
+%define CMAKE_FLAGS -GNinja -DCMAKE_MODULE_LINKER_FLAGS=""
+%define cmake_install DESTDIR=%{buildroot} ninja -C build install
 %else
 %if 0%{?fedora} >= 23
 # Ninja was introduced in FC23
-- 
1.8.5.2

The changes are only tested on my setup.
Thank you,
Tatyana




More information about the ewg mailing list