]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
classes/create-spdx-2.2: Add extra debugging for missing package files
authorJoshua Watt <JPEWhacker@gmail.com>
Tue, 12 Sep 2023 14:38:33 +0000 (08:38 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Sep 2023 08:32:31 +0000 (09:32 +0100)
In a effort to debug YOCTO #15185, improve the logging when a package
file cannot be found in the list of SPDX files.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx-2.2.bbclass

index aed1a94132c2ce722a8d9644a298896332b341c3..9b28d124c7884d38d1194652a65ab2fcd9e2f5f3 100644 (file)
@@ -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"]: