]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oe-pkgdata-util: improve lookup-pkg error for RPROVIDES packages
authorZk47T <zizuzacker@gmail.com>
Wed, 8 Apr 2026 17:12:07 +0000 (00:12 +0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Apr 2026 10:09:38 +0000 (11:09 +0100)
commit46ff3a8d2c18fcba87c711bb23dbdabae20eef84
treec269fc4e5c1f42dab64bce89afe68bcb2411765e
parentaa1b99d75f59fb51c08a4a8a31480f61ac557fc9
oe-pkgdata-util: improve lookup-pkg error for RPROVIDES packages

When a package is not found by 'oe-pkgdata-util lookup-pkg', the error
message provides no guidance on what went wrong or where to look.

Improve the error message by checking the runtime-rprovides directory
for the missing package. If the package exists in RPROVIDES:

 - If the provider package was generated, suggest looking up the actual
   package name instead.
 - If the provider package was not generated (e.g. empty package or
   disabled by PACKAGECONFIG), inform the user which recipe provides it
   and that it was not generated.

This helps users quickly identify the correct package name or
understand why a package is missing from their build.

Before:
  ERROR: The following packages could not be found: eglibc

After:
  ERROR: eglibc is in the RPROVIDES of glibc (recipe: glibc), try
  looking up 'glibc' instead

[YOCTO #16083]

Signed-off-by: Zk47T <zizuzacker@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
scripts/oe-pkgdata-util