Whamcloud - gitweb
LU-16050 build: replace ofed_info with dpkg/rpm 47/48047/4
authorJian Yu <yujian@whamcloud.com>
Wed, 27 Jul 2022 22:45:49 +0000 (15:45 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 17 Sep 2022 06:23:42 +0000 (06:23 +0000)
commit3a7930e63c15b0fbe51ac73db81a1186939115bb
tree87848497a8088f89f8f32e7bfd2f1dcc7a8c9b65
parent8e66f061c01e53cda84ce80af3860f488e927210
LU-16050 build: replace ofed_info with dpkg/rpm

After installing MLNX_OFED by running mlnxofedinstall command,
mlnx-ofed-kernel-modules package is not listed by ofed_info,
which causes Lustre configure fail as follows:

checking whether to use Compat RDMA... /usr/bin/ofed_info
dpkg-query: error: --listfiles needs at least one package name argument

This patch fixes the above issue by replacing ofed_info with
"dpkg -l" and "rpm -qa" commands to find OFED package.

Test-Parameters: trivial
Fixes: ec03c9628cae ("LU-15417 build: find the new path for MOFED 5.5")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Change-Id: Ia3c2d6bf10e147ca2761221741eff6f93008556c
Reviewed-on: https://review.whamcloud.com/48047
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Gaurang Tapase <gtapase@ddn.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4