summaryrefslogtreecommitdiffstats
path: root/extras/rpm
diff options
context:
space:
mode:
authorIgor Mikhailov (imichail) <imichail@cisco.com>2018-05-18 20:08:26 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2018-05-19 11:25:09 +0000
commit3b854a5cb876b5af4e69c56028e2c2824100f4b2 (patch)
tree66db7df0e6fc24679d9802263c737817fa021667 /extras/rpm
parent2f63bc9482dd1443710ae0321dea69a3f8f21d5b (diff)
MLX DPDK glue: exclude dependency on OFED libraries
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>
Diffstat (limited to 'extras/rpm')
-rw-r--r--extras/rpm/vpp.spec1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec
index bc1323ecd94..e49d7e3770a 100644
--- a/extras/rpm/vpp.spec
+++ b/extras/rpm/vpp.spec
@@ -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}/*