File 0517-fix-licenses.patch of Package erlang

From f6a3de41667e8b70ac46e3d075c08c4e3bcafc9f Mon Sep 17 00:00:00 2001
From: Kiko Fernandez-Reyes <kiko@erlang.org>
Date: Thu, 6 Feb 2025 12:20:36 +0100
Subject: [PATCH] fix licenses

---
 .ort.yml | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/.ort.yml b/.ort.yml
index 761317a868..7743463d4d 100644
--- a/.ort.yml
+++ b/.ort.yml
@@ -22,6 +22,12 @@ excludes:
 # Curations are used to fix wrongly detected licenses
 curations:
     license_findings:
+      - path: "lib/wx/src/gen/**/wx*.erl"
+        reason: "INCORRECT"
+        comment: >-
+          Documentation was taken from wxWidgets, source code is Apache-2.0
+        detected_license: "Apache-2.0"
+        concluded_license: "Apache-2.0 AND LicenseRef-wxwindows-free-doc"
 
       - path: "lib/edoc/doc/guides/chapter.md"
         reason: "INCORRECT"
@@ -41,6 +47,12 @@ curations:
           License mistaken by Scancode
         concluded_license: "Apache-2.0 OR LGPL-2.0-or-later"
 
+      - path: "lib/compiler/test/beam_ssa_check_SUITE_data/phis.erl"
+        reason: "INCORRECT"
+        comment: >-
+          License mistaken by Scancode
+        concluded_license: "Apache-2.0 OR LGPL-2.0-or-later"
+
       - path: "scripts/licensedetection/licenses/apache-2.0-or-lgpl-2.1-or-later.LICENSE"
         reason: "INCORRECT"
         comment: >-
@@ -90,11 +102,19 @@ curations:
         concluded_license: "Unicode-3.0"
 
       - path: "lib/stdlib/uc_spec/**/*"
-        reason: "DATA_OF"
+        reason: "INCORRECT"
+        detected_license: "NONE"
         comment: >-
           License not included in data files
         concluded_license: "Unicode-3.0"
 
+      - path: "lib/stdlib/uc_spec/**/*"
+        reason: "INCORRECT"
+        detected_license: "LicenseRef-scancode-unicode"
+        comment: >-
+          Update license to its actual license
+        concluded_license: "Unicode-3.0"
+
       - path: "lib/stdlib/test/shell_docs_SUITE_data/**/*"
         detected_license: "NONE"
         reason: "DATA_OF"
@@ -725,7 +745,7 @@ curations:
         reason: "INCORRECT"
         comment: >-
           The scanner incorrectly categorises the license
-        concluded_license: "Apache-2.0 WITH LLVM-exception OR BSL-1.0 WITH LLVM-exception"
+        concluded_license: "(Apache-2.0 WITH LLVM-exception AND BSL-1.0) AND (Apache-2.0 OR BSL-1.0)"
 
       - path: "erts/emulator/ryu/d2s_full_table.h"
         reason: "INCORRECT"
@@ -845,4 +865,4 @@ curations:
         reason: "DOCUMENTATION_OF"
         comment: >-
           The scanner mixes up the copyright and license notice
-        concluded_license: "Apache-2.0"
\ No newline at end of file
+        concluded_license: "Apache-2.0"
-- 
2.43.0

openSUSE Build Service is sponsored by