Skip to contentSkip to conversation

meson: Remove libumad dependence

PATCH Superseded zhenwei pi 2 participants 3 messages Jun 11, 2024 Arm/Amlogic Meson SoC support

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

zhenwei pi

author
#0 lore raw

PATCH 1/1 meson: Remove libumad dependence

RDMA based migration has no dependence on libumad, libibverbs and librdmacm are enough.
libumad was used by rdmacm-mux which has been already removed. It's remained mistakenly.

Fixes 1dfd42c4264b ("hw/rdma: Remove deprecated pvrdma device and rdmacm-mux helper")
Cc Philippe Mathieu-Daudé <[email protected]>
---
 meson.build | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meson.build +1 -3
index ec59effca2..226b97ea26 100644
@@ -1885,11 +1885,9 @@ endif
 
 rdma = not_found
 if not get_option('rdma').auto() or have_system
-  libumad = cc.find_library('ibumad', required: get_option('rdma'))
   rdma_libs = [cc.find_library('rdmacm', has_headers: ['rdma/rdma_cma.h'],
                                required: get_option('rdma')),
-               cc.find_library('ibverbs', required: get_option('rdma')),
-               libumad]
+               cc.find_library('ibverbs', required: get_option('rdma'))]
   rdma = declare_dependency(dependencies: rdma_libs)
   foreach lib: rdma_libs
     if not lib.found()
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · zhenwei pi

RDMA based migration has no dependence on libumad, libibverbs and librdmacm are enough.
libumad was used by rdmacm-mux which has been already removed. It's remained mistakenly.

Great!

Please also update tests/lcitool/projects/qemu.yml, with that:

Quoted 24 lines
Fixes 1dfd42c4264b ("hw/rdma: Remove deprecated pvrdma device and rdmacm-mux helper")
Cc Philippe Mathieu-Daudé <[email protected]>
---
  meson.build | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
meson.build +1 -3
index ec59effca2..226b97ea26 100644
@@ -1885,11 +1885,9 @@ endif
 
  rdma = not_found
  if not get_option('rdma').auto() or have_system
-  libumad = cc.find_library('ibumad', required: get_option('rdma'))
    rdma_libs = [cc.find_library('rdmacm', has_headers: ['rdma/rdma_cma.h'],
                                 required: get_option('rdma')),
-               cc.find_library('ibverbs', required: get_option('rdma')),
-               libumad]
+               cc.find_library('ibverbs', required: get_option('rdma'))]
    rdma = declare_dependency(dependencies: rdma_libs)
    foreach lib: rdma_libs
      if not lib.found()
#2 lore raw
Quoted 9 lines · Philippe Mathieu-Daudé
Quoted 4 lines · zhenwei pi

RDMA based migration has no dependence on libumad, libibverbs and librdmacm are enough.
libumad was used by rdmacm-mux which has been already removed. It's remained mistakenly.

Great!

Please also update tests/lcitool/projects/qemu.yml,

(see https://www.qemu.org/docs/master/devel/testing#adding-new-build-pre-requisites)

Quoted 27 lines

with that:

Quoted 23 lines
Fixes 1dfd42c4264b ("hw/rdma: Remove deprecated pvrdma device and rdmacm-mux helper")
Cc Philippe Mathieu-Daudé <[email protected]>

---
  meson.build | 4 +---

  1 file changed, 1 insertion(+), 3 deletions(-)
meson.build +0 -0
index ec59effca2..226b97ea26 100644
@@ -1885,11 +1885,9 @@ endif

  rdma = not_found
  if not get_option('rdma').auto() or have_system
-  libumad = cc.find_library('ibumad', required: get_option('rdma')) rdma_libs = [cc.find_library('rdmacm', has_headers: ['rdma/rdma_cma.h'],
                                 required: get_option('rdma')), -               cc.find_library('ibverbs', required: get_option('rdma')), -               libumad]
+               cc.find_library('ibverbs', required: get_option('rdma'))] rdma = declare_dependency(dependencies: rdma_libs)
    foreach lib: rdma_libs
      if not lib.found()