Whamcloud - gitweb
LU-16050 build: replace ofed_info with dpkg/rpm
authorJian Yu <yujian@whamcloud.com>
Mon, 26 Sep 2022 18:22:56 +0000 (11:22 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Oct 2022 06:12:06 +0000 (06:12 +0000)
commit31a314fbbad726cf4a3d79968da7c8bde1c5cf02
tree395159682a2088deb8eb89a902b6c71ed6575331
parente4ff5ff9257765d196b7d8a462ea96472d957d89
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.

Lustre-change: https://review.whamcloud.com/48047
Lustre-commit: 3a7930e63c15b0fbe51ac73db81a1186939115bb

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-by: Gaurang Tapase <gtapase@ddn.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/48662
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/autoconf/lustre-lnet.m4