Skip to contentSkip to conversation

classes/create-spdx-2.2: Add extra debugging for missing package files

PATCH New Joshua Watt 1 participant 1 message Sep 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 classes/create-spdx-2.2: Add extra debugging for missing package files

In a effort to debug YOCTO #15185, improve the logging when a package file cannot be found in the list of SPDX files.

---
 meta/classes/create-spdx-2.2.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/create-spdx-2.2.bbclass +2 -1
index 844b674f6f1..3aa629852d8 100644
@@ -302,7 +302,8 @@ def add_package_sources_from_debug(d, package_doc, spdx_package, package, packag
             if file_path.lstrip("/") == pkg_file.fileName.lstrip("/"):
                 break
         else:
-            bb.fatal("No package file found for %s" % str(file_path))
+            bb.fatal("No package file found for %s in %s; SPDX found: %s" % (str(file_path), package,
+                " ".join(p.fileName for p in package_files)))
             continue
 
         for debugsrc in file_data["debugsrc"]:
Signature · 1 line
2.34.1