[LU-15758] Lustre client module deb package cannot be installed on Debian stable Created: 19/Apr/22  Updated: 05/Jul/22  Resolved: 11/Jun/22

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

Type: Bug Priority: Minor
Reporter: Thomas Stibor Assignee: Thomas Stibor
Resolution: Fixed Votes: 0
Labels: debian, ubuntu
Environment:

Debian GNU/Linux 11 (bullseye)


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Compiling Lustre client module package on Debian GNU/Linux 11 (bullseye) results
in package: lustre-client-modules-5.10.0-13-amd64_2.15.0-RC3-1_amd64.deb

Installing the package results in error:

dpkg: dependency problems prevent configuration of lustre-client-modules-5.10.0-13-amd64:
 lustre-client-modules-5.10.0-13-amd64 depends on linux-generic; however:
  Package linux-generic is not installed.

dpkg: error processing package lustre-client-modules-5.10.0-13-amd64 (--install):
 dependency problems - leaving unconfigured

because on Debian GNU/Linux 11 (bullseye) there exists no linux-generic package. See e.g.

$ apt search linux-generic
Sorting... Done
Full Text Search... Done

The package exists on Ubuntu (but not Debian):

[tstibor@ubuntu-20-lustre ~]$ apt search linux-generic
Sorting... Done
Full Text Search... Done
linux-generic/focal-updates,focal-security 5.4.0.107.111 amd64 [upgradable from: 5.4.0.105.109]
  Complete Generic Linux kernel and headers

It seems that commit: https://git.whamcloud.com/?p=fs/lustre-release.git;a=commitdiff;h=32c4b80192652f55bcef5786e4ec683e85234c04
which added the line:

--- a/debian/control.modules.in
+++ b/debian/control.modules.in
@@ -10,6 +10,7 @@ Package: lustre-client-modules-_KVERS_
 Architecture: any
 Recommends: linux-image, lustre-client-utils
 Provides: lustre-client-modules
+Depends: linux-generic
 Description: Lustre Linux kernel module (kernel _KVERS_)
  This package contains the lustre loadable kernel modules for the
  patchless client for the Lustre cluster filesystem.

causes the problem.

How about appending to the depend line:

Depends: linux-generic | linux-headers-amd64


 Comments   
Comment by Gerrit Updater [ 19/Apr/22 ]

"Thomas Stibor <t.stibor@gsi.de>" uploaded a new patch: https://review.whamcloud.com/47087
Subject: LU-15758 build: Client module DEB can't be installed on Debian
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6bc66b2dd698af720145f410db610f35dfe5f51a

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47087/
Subject: LU-15758 build: Client module DEB can't be installed on Debian
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d409f74274754c87cd14a7f0a19f8d46f6496eb1

Comment by Peter Jones [ 11/Jun/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 24/Jun/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47736
Subject: LU-15758 build: Client module DEB can't be installed on Debian
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: cfaedee9f1440b18d255b9813eedd26757812902

Comment by Gerrit Updater [ 05/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47736/
Subject: LU-15758 build: Client module DEB can't be installed on Debian
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 631ede4fb052ed56fae02a0a78117d63076426a6

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