diff mbox series

[4/5] perl: do not install unicore/TestNorm.pl

Message ID 20261130011401.68860-5-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:14 a.m. UTC
TestNorm.pl is a Unicode normalization test, not runtime code, but it
is shipped in perl-module-unicore (1.2MB) and would make that package,
and so every user of charnames, depend on Test::More once dependencies
are generated with perl.req. perl-ptest has its own copy; the perl ptest
still passes on qemux86-64.

AI-Generated: Uses Claude Code (Claude Fable 5.2)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 meta/recipes-devtools/perl/perl_5.44.0.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/perl/perl_5.44.0.bb b/meta/recipes-devtools/perl/perl_5.44.0.bb
index 5f2560cee8..5b6b31bf79 100644
--- a/meta/recipes-devtools/perl/perl_5.44.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.44.0.bb
@@ -171,6 +171,9 @@  do_install() {
     rm $dir/libperl.so
     ln -sf ../../../../libperl.so.${PERL_LIB_VER} $dir/libperl.so
 
+    # Test script which pulls Test::More into perl-module-unicore
+    rm -f ${D}${libdir}/perl5/${PV}/unicore/TestNorm.pl
+
     # Try to catch Bug #13946
     if [ -e ${D}/${libdir}/perl5/${PV}/Storable.pm ]; then
         bbfatal 'non-arch specific Storable.pm found! See https://bugzilla.yoctoproject.org/show_bug.cgi?id=13946'