| Message ID | 20261201021139.2312947-6-tim.orling@konsulko.com |
|---|---|
| State | New |
| Headers | show |
| Series | perl recipes: fix modules that fail to load | expand |
diff --git a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc index 8a97fb2a4a..e815b1df37 100644 --- a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc +++ b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc @@ -40,6 +40,7 @@ PTESTS_FAST_META_PERL = "\ libtest-warn-perl \ libtext-diff-perl \ libunicode-linebreak-perl \ + libunix-statgrab \ liburi-perl \ " @@ -49,5 +50,4 @@ PTESTS_SLOW_META_PERL = "\ PTESTS_PROBLEMS_META_PERL = "\ libhtml-parser-perl \ - libunix-statgrab \ " diff --git a/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb b/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb index 1e59f83dd0..e1100f2730 100644 --- a/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb +++ b/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb @@ -38,3 +38,10 @@ do_configure:prepend() { # Toolchains forcibly define LD, so override it in the task export LD="${CCLD}" } + +do_install:prepend() { + # run-ptest does not pass -T, so drop it from the #! line + sed -i '1s/^#!perl -T$/#!perl/' ${B}/t/00-load.t +} + +RDEPENDS:${PN}-ptest += "perl-module-test-more"
The ptest fails on every test case: - t/01-methods, t/02-hashlist and t/03-leak use Test::More, which is not in RDEPENDS:${PN}-ptest. Found by the perl-rdeps QA check. - t/00-load has "#!perl -T", and run-ptest does not pass -T to perl. Drop the -T, so the test still checks that Unix::Statgrab loads. With both fixed the ptest passes (3 pass, 1 skip), so move it from PTESTS_PROBLEMS_META_PERL to PTESTS_FAST_META_PERL. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Tim Orling <tim.orling@konsulko.com> --- meta-perl/conf/include/ptest-packagelists-meta-perl.inc | 2 +- .../recipes-perl/libstatgrab/libunix-statgrab_0.112.bb | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)