Uploaded image for project: 'XenServer Org'
  1. XenServer Org
  2. XSO-931

kernel spec file's sources should not depend on arch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 8.0
    • 7.6
    • other
    • None
    • XSI-245

    Description

      The kernel's spec file contains this line:

      Source1: kernel-%{_arch}.config

      The (minor) problem with this is that with RPM spec files, one should be able to build the source RPM in a reproduceable way whatever the build system's arch, or as noarch. I'm talking about the source RPM only, not the binary RPM that obviously needs to depend on the arch.

      Here's what happens if you try to build the source RPM with `rpmbuild -bs --target noarch`:

      Bad file: /builddir/build/SOURCES/kernel-noarch.config: No such file or directory

       

      Actually, the way Source1 is defined wouldn't even work if there were multiple supported arches for the kernel, because you would get specific versions of the source RPM depending on the target arch, which defeats the purpose of source RPMs. If you really needed to build for separate arches with separate kernel configurations, then you would have to define several SourceX and use the appropriate one depending on the build arch.

       

      Suggestion: simply define it as:

      Source1: kernel-x86_64.config

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            stormi Samuel Verschelde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: