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

SRPM unnecessarily tied to kernel version

Details

    • 3
    • 9223372036854775807

    Description

      Source rpms (e.g. lustre-2.10.5-1.src.rpm) are tied to the kernel version they were originally built against by kmp-lustre.preamble.

      # rpm -i lustre-2.10.5-1.src.rpm
      # cd rpmbuild/SOURCE
      # cat kmp-lustre.preamble
      Obsoletes:      %{name}-modules < %{version}
      Requires:       kernel < 3.10.0-863, kernel >= 3.10.0-862
      

      This prevents the rpm from being rebuild via rpmbuild --rebuild lustre-2.10.5-1.src.rpm on other el releases (e.g. el7.4).

      WORKAROUND

      1. Install source rpm
      2. Edit rpmbuild/SOURCE/kmp-lustre.preamble for correct kernel version
      3. build from spec: rpm -bb rpmbuild/SPEC/lustre.spec

      Attachments

        Issue Links

          Activity

            [LU-11720] SRPM unnecessarily tied to kernel version

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34310/
            Subject: LU-11720 spec: srpm should be free of kernel requiements
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 544beec0e32528ccc6332d503d8e5593e1201a09

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34310/ Subject: LU-11720 spec: srpm should be free of kernel requiements Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 544beec0e32528ccc6332d503d8e5593e1201a09

            Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34310
            Subject: LU-11720 spec: srpm should be free of kernel requiements
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: 8ab56c35bc8784de961d6f84e1465890ea42dc63

            gerrit Gerrit Updater added a comment - Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34310 Subject: LU-11720 spec: srpm should be free of kernel requiements Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 8ab56c35bc8784de961d6f84e1465890ea42dc63

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34268/
            Subject: LU-11720 spec: srpm should be free of kernel requiements
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set:
            Commit: 5fe982690dde421c0108f484ab694d2488c9042b

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34268/ Subject: LU-11720 spec: srpm should be free of kernel requiements Project: fs/lustre-release Branch: b2_10 Current Patch Set: Commit: 5fe982690dde421c0108f484ab694d2488c9042b

            Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34268
            Subject: LU-11720 spec: srpm should be free of kernel requiements
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set: 1
            Commit: cae8c7e1c55ba367cd96ce752236c2ef0a918d0a

            gerrit Gerrit Updater added a comment - Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34268 Subject: LU-11720 spec: srpm should be free of kernel requiements Project: fs/lustre-release Branch: b2_10 Current Patch Set: 1 Commit: cae8c7e1c55ba367cd96ce752236c2ef0a918d0a
            pjones Peter Jones added a comment -

            Landed for 2.13

            pjones Peter Jones added a comment - Landed for 2.13

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33771/
            Subject: LU-11720 spec: srpm should be free of kernel requiements
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 3c280a95736a884bc2f36dad674505f1d5b00982

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33771/ Subject: LU-11720 spec: srpm should be free of kernel requiements Project: fs/lustre-release Branch: master Current Patch Set: Commit: 3c280a95736a884bc2f36dad674505f1d5b00982

            Nathaniel Clark (nclark@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33771
            Subject: LU-11720 spec: srpm should be free of kernel requiements
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 10f0dd96237f02a53aa4866255176af752531120

            gerrit Gerrit Updater added a comment - Nathaniel Clark (nclark@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33771 Subject: LU-11720 spec: srpm should be free of kernel requiements Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 10f0dd96237f02a53aa4866255176af752531120
            pjones Peter Jones added a comment -

            Nathaniel, can you please investigate?

            pjones Peter Jones added a comment - Nathaniel, can you please investigate?
            utopiabound Nathaniel Clark added a comment - - edited

            This issue was created by LU-9731.

             

            This issue is ONLY present when the source rpm is created via lbuild.

            Using make srpm results in an srpm without the offending Requires line, but one that may also fall victim to LU-9731.

            utopiabound Nathaniel Clark added a comment - - edited This issue was created by LU-9731 .   This issue is ONLY present when the source rpm is created via lbuild . Using make srpm results in an srpm without the offending Requires line, but one that may also fall victim to LU-9731 .

            People

              utopiabound Nathaniel Clark
              utopiabound Nathaniel Clark
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: