[LU-6300] Dependency mismatch for RHEL ppc64 client kernel RPM Created: 26/Feb/15  Updated: 07/Jul/15  Resolved: 07/Jul/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.8.0

Type: Bug Priority: Minor
Reporter: Frank Heckes (Inactive) Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: ppc

Severity: 3
Rank (Obsolete): 17641

 Description   

The Redhat kernel RPM the following dependencies:

rpm -q --provides kernel-2.6.32-431.29.2.el6.ppc64
kernel = 2.6.32-431.29.2.el6
kernel-ppc64 = 2.6.32-431.29.2.el6
...

The Lustre client module requires the following kernel:

rpm -q --requires lustre-client-modules-2.6.92-2.6.32_431.29.2.el6.ppc64_g33984c0.ppc64
...
kernel = 2.6.32-431.29.2.el6.ppc64
...

This leads to the situation that the client modules can't be installed.
Fix is to add the line:

-e 's/\.ppc64$//'

to line

%define krequires %(bash -c "echo %{kversion} | sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/-ppc64$//' -e 's/-default$//'")

in lustre-release/lustre.spec.in.



 Comments   
Comment by Andreas Dilger [ 26/Feb/15 ]

Hi Frank, would you be able to submit a patch for this?

Comment by Frank Heckes (Inactive) [ 06/Mar/15 ]

Yes, I will.

Comment by Andreas Dilger [ 06/Mar/15 ]

It looks like it would be possible to just change:

sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/-ppc64$//' -e 's/-default$//'")

to

sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/[\.-]ppc64$//' -e 's/-default$//'")
Comment by Gerrit Updater [ 09/Mar/15 ]

Frank Heckes (Frank.Heckes@intel.com) uploaded a new patch: http://review.whamcloud.com/14012
Subject: LU-6300 build: Kernel string mismatch for ppc64 in RPMs
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 10d30a7a1dca205f30dc2cf3980387af7b0e4e91

Comment by Frank Heckes (Inactive) [ 09/Mar/15 ]

I took your suggestion. I was unsure whether the - has to be escaped, too (as it's a range operator) in the [ ], but it seems to work as expected (checked it with some different input strings).

Comment by Gerrit Updater [ 16/Apr/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14012/
Subject: LU-6300 build: Kernel string mismatch for ppc64 in RPMs
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a4bcfa9c49abae8035b05d94a09352aae01bd77d

Comment by Peter Jones [ 07/Jul/15 ]

Landed for 2.8

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