Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-8390

e2fsprogs builds incorrectly on some sles12 versions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • 3
    • 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"
      

      Attachments

        Activity

          People

            bogl Bob Glossman (Inactive)
            bogl Bob Glossman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: