[LU-15940] Add a dependency for libmount by default when building Lustre rpm/deb packages Created: 13/Jun/22 Updated: 18/Nov/22 Resolved: 06/Jul/22 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0, Lustre 2.15.1 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Jian Yu | Assignee: | Jian Yu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
The Lustre client utilities (mount/umount) have an optional dependency on libmount, providing some minor improvements. It's however easy to miss when building it, and the rpm/deb package builds don't depend on it either. libmount was introduced in util-linux 2.18 in 2010, and with a stable API and ABI as of util-linux 2.19 in 2011. CentOS 6 which was AFAICS the last long time support distro with an older version of util-linux was EOL'ed in 2020, and Lustre itself doesn't support such old distros anymore either. Avoiding a dependency on libmount doesn't help much, since the "standard" mount/umount commands also depend on it, so if libmount is missing the OS is likely more or less completely broken. So could usage of libmount be made unconditional (or at least the default)? That would entail for the rpm/deb building at least:
And possibly removing separate "#ifdef HAVE_LIBMOUNT #else ..." code and modifying configure logic slightly, if one wants to entirely remove the possibility of compiling without libmount. |
| Comments |
| Comment by Gerrit Updater [ 13/Jun/22 ] |
|
"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47619 |
| Comment by Gerrit Updater [ 24/Jun/22 ] |
|
"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47759 |
| Comment by Gerrit Updater [ 06/Jul/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47619/ |
| Comment by Gerrit Updater [ 06/Jul/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47759/ |
| Comment by Stanford Research Computing Center [ 12/Nov/22 ] |
|
Shouldn't that dependency be added to `lustre-dkms.spec.in` as well? It should probably even be added as a `Requires:` (not just `BuildRequires:` since compilation will happen on the fly when the `lustre-client-dkms` package is installed. Cheers, |
| Comment by Jian Yu [ 18/Nov/22 ] |
|
Hi kilian, |
| Comment by Kilian Cavalotti [ 18/Nov/22 ] |
|
Thanks @Jian Yu! |