[LU-8390] e2fsprogs builds incorrectly on some sles12 versions Created: 11/Jul/16  Updated: 08/Aug/18  Resolved: 08/Aug/18

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

Type: Bug Priority: Major
Reporter: Bob Glossman (Inactive) Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The distro name reported by the lsb_release command has changed in some versions of sles12. This change causes the e2fsprogs build process for the master-lustre branch to choose the wrong .spec file to build with. Using the wrong .spec file results in generating the wrong packages, generic style RPMs instead of SLES compatible RPMs.

The following small repair to the build script can fix the problem:

--- a/contrib/build-rpm
+++ b/contrib/build-rpm
@@ -75,7 +75,7 @@ case "$DISTRO-$RELEASE" in
     Fedora-1[5-9]) DISTRO=RHEL; RELEASE=7;;
     Fedora-2[0-9]) DISTRO=RHEL; RELEASE=7;;
     SUSE\ LINUX-11*) DISTRO=SUSE_LINUX; RELEASE=11;;
-    SUSE\ LINUX-12*) DISTRO=SUSE_LINUX; RELEASE=12;;
+    SUSE\ LINUX-12* | SUSE-12*) DISTRO=SUSE_LINUX; RELEASE=12;;
 esac
 
 SPECFILE="$currdir/e2fsprogs-${DISTRO// /_}-$RELEASE.spec"


 Comments   
Comment by Gerrit Updater [ 11/Jul/16 ]

Bob Glossman (bob.glossman@intel.com) uploaded a new patch: http://review.whamcloud.com/21237
Subject: LU-8390 build: use correct .spec file for sles12
Project: tools/e2fsprogs
Branch: master-lustre
Current Patch Set: 1
Commit: 40a37385f5dc01da1dc2fc0562661c50fd5a61ea

Comment by Bob Glossman (Inactive) [ 12/Jul/16 ]

Andreas,
I strongly suspect but can't prove that test problems with e2fsprogs are really DCO issues. It just failed a test run on el7, which has worked fine before. So problems not limited to sles11sp3 only.

Comment by Gerrit Updater [ 12/Aug/16 ]

Andreas Dilger (andreas.dilger@intel.com) merged in patch http://review.whamcloud.com/21237/
Subject: LU-8390 build: use correct .spec file for SLES 12
Project: tools/e2fsprogs
Branch: master-lustre
Current Patch Set:
Commit: cbbd8d6d6d5017355afc9cba4a25fe2aeb0dd494

Generated at Sat Feb 10 02:17:07 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.