Whamcloud - gitweb
LU-16050 build: replace ofed_info with dpkg/rpm 92/48592/2
authorJian Yu <yujian@whamcloud.com>
Mon, 19 Sep 2022 16:53:54 +0000 (09:53 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Oct 2022 04:43:35 +0000 (04:43 +0000)
commit3c8812e6d364829c4faa78fe02feda755c83164a
tree5c55b1779a4b8193b9b528df020abdbf6b54d10b
parentd767ce06d38334b29457c2b6980fd18138437d38
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/c/fs/lustre-release/+/48592
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/autoconf/lustre-lnet.m4