Whamcloud - gitweb
LU-18002 build: proper MOFED detection with multiple installations 25/55625/4
authorAurelien Degremont <adegremont@nvidia.com>
Wed, 3 Jul 2024 13:43:36 +0000 (15:43 +0200)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 Jul 2024 16:03:08 +0000 (16:03 +0000)
commitaea9738642fc31b05c405f22fef7234f78f31d8e
treedd41618731afcf9d5772f840b9be4b087bd385e7
parentd7f8c21eed5ba232ae48863001b512c207427037
LU-18002 build: proper MOFED detection with multiple installations

For build step, OFED detection is based on header path detected
from the locally installed packages.

Building with multiple OFED headers installed (for different
kernels by example) is broken since v2_15_63-60-g0e9708016b.

This patch is at least fixing the Ubuntu case, and the EL
case is not changed, what was working is still working, but
the broken case is still broken.

Also simplify the package query a little bit.

Fixes: 0e9708016 ("LU-16819 build: use mofed path based on target kernel")
Signed-off-by: Aurelien Degremont <adegremont@nvidia.com>
Change-Id: Ib15f971ea745d9deded6288e3ed4663bdd385da0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55625
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: ake sandgren <ake.sandgren@hpc2n.umu.se>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4