[LU-16317] dkms: missing dependencies for flex, bison and libmount-devel Created: 16/Nov/22  Updated: 17/Feb/23  Resolved: 29/Nov/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.15.1
Fix Version/s: Lustre 2.16.0, Lustre 2.15.2

Type: Bug Priority: Minor
Reporter: Stephane Thiell Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: None
Environment:

CentOS 7.9


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This is likely a follow-up to LU-15967.

The lustre-client dkms for Lustre 2.15.1 fails to build on clients that don't have flex, bison, or libmount-devel installed.

checking whether to build Lustre client support... yes
checking whether to build Linux kernel modules... yes (linux-gnu)
configure: error: flex package is required to build kernel modules
configure error, check /var/lib/dkms/lustre-client/2.15.1_2_ga1696d7/build/config.log

It looks like Andreas saw it coming in this patch review: https://review.whamcloud.com/c/fs/lustre-release/+/47745

A BuildRequires for flex, bison and also libmount-devel should probably be added to the lustre (and lustre-dkms?) spec files.



 Comments   
Comment by Peter Jones [ 16/Nov/22 ]

Jian

Could you please advise?

Thanks

Peter

Comment by Gerrit Updater [ 17/Nov/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49183
Subject: LU-16317 build: dkms build requires flex, bison and libmount-devel
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a741bab8f01feae402405df3455f86c4c6e99e4c

Comment by Gerrit Updater [ 29/Nov/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49183/
Subject: LU-16317 build: dkms build requires flex, bison and libmount-devel
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c74c630ff7596317d1b500fd385fca271b31708c

Comment by Peter Jones [ 29/Nov/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 29/Nov/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49272
Subject: LU-16317 build: dkms build requires flex, bison and libmount-devel
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 64568d7a507911e1d1004b738624d0129171ca50

Comment by Gerrit Updater [ 06/Dec/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49272/
Subject: LU-16317 build: dkms build requires flex, bison and libmount-devel
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: be37ba4b298dba3a2eae99e0e44546de54081e62

Comment by Andreas Dilger [ 17/Feb/23 ]

It is also worthwhile to note here for future reference that the libmount-devel RPM is available in the "Power Tools" YUM repository, which needs to be enabled in /etc/yum.repos.d/CentOS-PowerTools.repo or /etc/yum.repos.d/almalinux-powertools.repo.

Generated at Sat Feb 10 03:25:56 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.