MLX DPDK glue: exclude dependency on OFED libraries 58/12658/3
authorIgor Mikhailov (imichail) <imichail@cisco.com>
Sat, 19 May 2018 03:08:26 +0000 (20:08 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Sat, 19 May 2018 11:25:09 +0000 (11:25 +0000)
MLX DPDK mlx5_glue.so, compiled under RTE_LIBRTE_MLX5_DLOPEN_DEPS,
provides a run-time check for OFED libraries.
To do so, it links with -libverbs -lmlx5 so that the binding could
occur or fail at runtime (see DPDK 59b91be and VPP 59b91be).
However RPM install fails on systems without OFED installed since
RPM spec has an entry "Requires: libmlx5".
To overcome this, exclude such requirement from the spec.

Same applies to mlx4_glue.so, compiled under RTE_LIBRTE_MLX4_DLOPEN_DEPS

Change-Id: I0ff6efc49581104743cc7e5b1f7cdbc1665ce9ba
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
extras/rpm/vpp.spec

index bc1323e..e49d7e3 100644 (file)
@@ -379,6 +379,7 @@ fi
 
 %files lib
 %defattr(-,bin,bin)
+%global __requires_exclude_from %{_libdir}/librte_pmd_mlx[45]_glue\\.so.*$
 %exclude %{_libdir}/vpp_plugins
 %exclude %{_libdir}/vpp_api_test_plugins
 %{_libdir}/*