Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-131850

'reuse lint' fails to parse "Apache-2.0 WITH LLVM-exception"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9
    • Other
    • None

    Description

      See build log: https://testresults.qt.io/logs/qt/qtbase/be826a001c3cf5e5014cf576b7c9fc7a496c0741/WindowsWindows_11_23H2x86_64WindowsWindows_11_23H2x86_64Clangqtci-windows-11_23H2-x86_64-53-744f17GenerateSBOM_Packaging_PinCores_Sccache_UseConfigure_VerifySBOM/d00861c8dfb48fc817bff1c15ac5708f94508897/build_1732756821/log.txt.gz

      The error was:

      -- Running 'reuse lint' in 'C:/Users/qt/work/qt/qtbase'.
      # MISSING LICENSES
      'LLVM-exception' found in:
      * C:\Users\qt\work\qt\qtbase\src\3rdparty\compiler-rt\lib\builtins\emutls.c
       # MISSING COPYRIGHT AND LICENSING INFORMATION
      The following files have no copyright and licensing information:
      * C:\Users\qt\work\qt\qtbase\src\3rdparty\compiler-rt\CODE_OWNERS.TXT
      * C:\Users\qt\work\qt\qtbase\src\3rdparty\compiler-rt\CREDITS.TXT
      

      I have no idea why it wants a copyright in a simple .txt file, but that's not the big problem. The problem is that it fails to understand the header:

      //===---------- emutls.c - Implements __emutls_get_address ---------------===//
      //
      // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
      // See https://llvm.org/LICENSE.txt for license information.
      // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
      //
      //===----------------------------------------------------------------------===//
      

      I don't want to patch the file. Please advise how to teach the tool about the correct licence and copyright information for this file (I have imported the relevant file).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              lugerard Lucie Gerard
              thiago Thiago Macieira
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes