diff mbox series

[2/5] classes/package: add perl-generators-native to PACKAGE_DEPENDS

Message ID 20261130011401.68860-3-tim.orling@konsulko.com
State New
Headers show
Series perl: generate module dependencies with perl.req | expand

Commit Message

Tim Orling Nov. 30, 2026, 1:13 a.m. UTC
Let rpmdeps in do_package find the perl generators, so FILERPROVIDES in
pkgdata record perl(Module::Name) again, as before rpm 4.20. Groundwork
for checking Perl runtime dependencies against pkgdata.

Tested with libtry-tiny-perl on qemux86-64 with package_rpm: pkgdata has
FILERPROVIDES perl(Try::Tiny) and no perl() FILERDEPENDS or rpm Requires
were added.

[YOCTO #13376]

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 meta/classes-global/package.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index b54f4c0063..4f5b28c2f3 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -57,8 +57,9 @@  LOCALE_SECTION ?= ''
 ALL_MULTILIB_PACKAGE_ARCHS = "${@oe.utils.all_multilib_tune_values(d, 'PACKAGE_ARCHS')}"
 
 # rpm is used for the per-file dependency identification
+# perl-generators provides rpm's perl() generators
 # elfutils is used to determine the list of debug source files (eu-srcfiles)
-PACKAGE_DEPENDS += "rpm-native elfutils-native"
+PACKAGE_DEPENDS += "rpm-native perl-generators-native elfutils-native"
 
 # If your postinstall can execute at rootfs creation time rather than on
 # target but depends on a native/cross tool in order to execute, you need to