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

fix error handling with undefined %kernel_module_package_buildreqs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • Lustre 2.16.0
    • None
    • 3
    • 9223372036854775807

    Description

      Lustre fails to build rpm on Oracle 8.9  without kernel-rpm-macros installed

      # cat /etc/oracle-release
      Oracle Linux Server release 8.9
      # uname -r
      4.18.0-513.9.1.el8_9.x86_64
      # rpm --eval %rhel
      8
      
      # sh autogen.sh
      # ./configure --disable-server --disable-tests --disable-iokit
      # make rpms
      

      Produces the error

      error: line 269: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: %kernel_module_package_buildreqs
      

      Installing kernel-rpm-macros resolves the build issue.
      The error should be as follows instead of the above one:

      error: Failed build dependencies:
      	kernel-rpm-macros is needed by ......
      

      Attachments

        Activity

          People

            yujian Jian Yu
            yujian Jian Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: