Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-70155

kernel-ark: Fix broken copyright self-test error

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • eln
    • None
    • kernel / Packaging
    • None
    • rhel-kernel-maint
    • ssg_core_kernel
    • None
    • False
    • Hide

      None

      Show
      None
    • None

      The current kernel-ark build-os branch fails to build due to this error from the self-tests:

         --- /tmp/tmp.LeFjAVZAYk    2024-12-05 08:45:34.492814129 -0500
         +++ /tmp/tmp.40WG8WSGmr    2024-12-05 08:46:19.773760720 -0500
         @@ -15,6 +15,7 @@
          GPL-1.0-or-later
          GPL-1.0-or-later OR BSD-3-Clause
          GPL-1.0-or-later WITH Linux-syscall-note
         +GPL-2
          GPL-2.0-only
          GPL-2.0-only OR Apache-2.0
          GPL-2.0-only OR BSD-2-Clause
         ERROR: The kernel RPM spec file License: field does not match the licenses available in the source tree. Fedora, Centos Stream, and RHEL require that the RPM License field match the licenses in the source tree. See https://docs.fedoraproject.org/en-US/legal/license-approval/ for further information. A list of licenses can be generated by executing the redhat/scripts/license/kspdx.py utility. New licenses can be added to the RPM License field only if they are listed in the Allowed Licenses list https://docs.fedoraproject.org/en-US/legal/allowed-licenses/). Licenses cannot be added if they are in the 'Not Allowed' Licenses (https://docs.fedoraproject.org/en-US/legal/not-allowed-licenses/). Licenses can be added to the 'Allowed' or 'Not Allowed' Licenses by following the License Review Process (https://docs.fedoraproject.org/en-US/legal/license-review-process/).

       

      This occurs because the staging tnt4882 driver has a SPDX license identifier that is not compliant with the official licenses listed (https://spdx.org/licenses).  I have submitted a patch upstream to resolve the issue that has been accepted into linux-next which can be backported into kernel-ark until the patch appears in linux main.
      From 724cc0cc17d9431f59b69f1e1d22c880c1e7ba60 Mon Sep 17 00:00:00 2001
      From: Prarit Bhargava
      <prarit@redhat.com>
      Date: Mon, 2 Dec 2024 11:03:57 -0500
      Subject: staging: Fix tnt4882 license to be SPDX compliant

      "GPL-2" is not a valid SPDX license identifier[1]. Update to SPDX
      compliant string "GPL-2.0-only".

      [1]
      https://spdx.org/licenses

       

       

              scweaver@redhat.com Scott Weaver
              prarit@redhat.com Prarit Bhargava
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: