Skip to contentSkip to conversation

meta-perl: add RDEPENDS no longer pulled in by perl-module packages

PATCH Superseded [email protected] 2 participants 43 messages Nov 30 – Dec 1

lore
Share & tools
lore
#0 lore raw

cover meta-perl: add RDEPENDS no longer pulled in by perl-module packages

From: Tim Orling <[email protected]>

Several meta-perl recipes use base.pm or DynaLoader.pm without listing perl-module-base or perl-module-dynaloader in RDEPENDS. They only came in indirectly through perl-module RDEPENDS in oe-core's perl-rdepends.txt, which "perl: generate perl-rdepends.txt with perl.req" regenerates without them. Add them where they are used, so these packages and their ptests keep working.

The gaps were found with the perl-rdeps QA check from the same oe-core series, plus a scan for packages whose dependencies lose base or DynaLoader. These patches work with or without that series, so they can be merged first. The last patch only replaces tabs with spaces in libdbd-sqlite-perl.

Tested on qemux86-64 with the oe-core series: the libcrypt-openssl-rsa, libdbd-sqlite, libnet-ssleay, libauthen-sasl, libnet-ldap, libterm-readkey, libtest-deep, liburi, libdigest-hmac and libxml-libxml ptests run. The only failures are libnet-ssleay-perl's network test t/handle/external/10_destroy and libxml-libxml-perl's t/12html (ISO-8859-2 conversion); neither is related to these changes.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

Tim Orling (10):
libcrypt-openssl-rsa-perl: add perl-module-base to ptest RDEPENDS
libdbd-sqlite-perl: add perl-module-base to RDEPENDS
libnet-ssleay-perl: add perl-module-base to ptest RDEPENDS
libnet-ldap-perl: add perl-module-base to RDEPENDS
libdigest-sha1-perl: move perl-module-dynaloader to RDEPENDS
libterm-readkey-perl: add perl-module-dynaloader to RDEPENDS
libtest-deep-perl: add perl-module-base to RDEPENDS
liburi-perl: add perl-module-base to RDEPENDS
libxml-libxml-perl: add perl-module-base to RDEPENDS
libdbd-sqlite-perl: indent with spaces

 .../libcrypt-openssl-rsa-perl_0.41.bb         |  1 +
 .../libdb/libdbd-sqlite-perl_1.78.bb          | 26 ++++++++++---------
 .../libdigest/libdigest-sha1-perl_2.13.bb     |  3 ++-
 .../libnet/libnet-ldap-perl_0.68.bb           |  1 +
 .../libnet/libnet-ssleay-perl_1.96.bb         |  1 +
 .../libterm/libterm-readkey-perl_2.38.bb      |  2 ++
 .../libtest/libtest-deep-perl_1.205.bb        |  1 +
 .../recipes-perl/liburi/liburi-perl_5.40.bb   |  1 +
 .../libxml/libxml-libxml-perl_2.0213.bb       |  1 +
 9 files changed, 24 insertions(+), 13 deletions(-)
Signature · 1 line
2.47.3
#1 lore raw

PATCH 1/10 libcrypt-openssl-rsa-perl: add perl-module-base to ptest RDEPENDS

From: Tim Orling <[email protected]>

t/rsa.t uses "use base". perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates, so the test would fail.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../recipes-perl/libcrypt/libcrypt-openssl-rsa-perl_0.41.bb      | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libcrypt/libcrypt-openssl-rsa-perl_0.41.bb +1 -0
index 0ec5ed4035..0da30977c5 100644
@@ -33,6 +33,7 @@ do_compile() {
 }
 
 RDEPENDS:${PN}-ptest += " \
+    perl-module-base \
     perl-module-file-copy \
     perl-module-test \
     perl-module-test-more \
Signature · 1 line
2.47.3
#2 lore raw

PATCH 2/10 libdbd-sqlite-perl: add perl-module-base to RDEPENDS

In reply to [email protected]

From: Tim Orling <[email protected]>

DBD::SQLite::Constants and the VirtualTable modules use "use base", and so do the virtual_table ptests. perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +1 -0
index 77b8352dae..cbd51a8ea8 100644
@@ -26,6 +26,7 @@ inherit cpan ptest-perl
 
 RDEPENDS:${PN} += "libdbi-perl \
 		   sqlite3 \
+		   perl-module-base \
 		   perl-module-constant \
 		   perl-module-locale \
 		   perl-module-tie-hash \
Signature · 1 line
2.47.3
#3 lore raw

Re: [oe] [meta-perl][PATCH 02/10] libdbd-sqlite-perl: add perl-module-base to RDEPENDS

Quoted 19 lines · Tim Orling via openembedded-devel

From: Tim Orling <[email protected]>

DBD::SQLite::Constants and the VirtualTable modules use "use base", and so do the virtual_table ptests. perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +0 -0
index 77b8352dae..cbd51a8ea8 100644

meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb inherit cpan ptest-perl · line 30

Quoted 5 lines
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +1 -0
@@ -26,6 +26,7 @@ inherit cpan ptest-perl
 
 RDEPENDS:${PN} += "libdbi-perl \
                   sqlite3 \
+                  perl-module-base \
 

tab vs spaces.

Quoted 18 lines
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +0 -0
                   perl-module-constant \
                   perl-module-locale \
                   perl-module-tie-hash \

--
2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#133577):
https://lists.openembedded.org/g/openembedded-devel/message/133577
Mute This Topic: https://lists.openembedded.org/mt/122519381/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#4 lore raw

Re: [oe] [meta-perl][PATCH 02/10] libdbd-sqlite-perl: add perl-module-base to RDEPENDS

Quoted 25 lines · Khem Raj
Quoted 20 lines · Tim Orling via openembedded-devel

From: Tim Orling <[email protected]>

DBD::SQLite::Constants and the VirtualTable modules use "use base", and so do the virtual_table ptests. perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +0 -0
index 77b8352dae..cbd51a8ea8 100644
@@ -26,6 +26,7 @@ inherit cpan ptest-perl
 
Quoted 7 lines

meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb inherit cpan ptest-perl

Quoted 4 lines
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +1 -0
 RDEPENDS:${PN} += "libdbi-perl \
                   sqlite3 \
+                  perl-module-base \
 

tab vs spaces.

I fixed that in 10/10, but I'll fold that into a v2.

Quoted 20 lines
Quoted 20 lines
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +0 -0
                   perl-module-constant \
                   perl-module-locale \
                   perl-module-tie-hash \

--
2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#133577):
https://lists.openembedded.org/g/openembedded-devel/message/133577
Mute This Topic: https://lists.openembedded.org/mt/122519381/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

PATCH 3/10 libnet-ssleay-perl: add perl-module-base to ptest RDEPENDS

In reply to [email protected]

From: Tim Orling <[email protected]>

The tests load inc/Test/Net/SSLeay.pm, which uses "use base". perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates, so the tests would fail.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.96.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.96.bb +1 -0
index 3ae4ce24af..4b37aa1388 100644
@@ -48,6 +48,7 @@ do_install_ptest_perl:append(){
 FILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/"
 
 RDEPENDS:${PN}-ptest += "\
+    perl-module-base \
     perl-module-english \
     perl-module-file-spec-functions \
     perl-module-findbin \
Signature · 1 line
2.47.3
#6 lore raw

PATCH 4/10 libnet-ldap-perl: add perl-module-base to RDEPENDS

In reply to [email protected]

From: Tim Orling <[email protected]>

LWP::Protocol::ldaps and LWP::Protocol::ldapi use "use base". perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.68.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.68.bb +1 -0
index 1c7a1b8432..b69c14e910 100644
@@ -30,6 +30,7 @@ RDEPENDS:${PN} += " \
     libconvert-asn1-perl \
     libio-socket-ssl-perl \
     libauthen-sasl-perl \
+    perl-module-base \
     perl-module-integer \
 "
 
Signature · 1 line
2.47.3
#7 lore raw

PATCH 5/10 libdigest-sha1-perl: move perl-module-dynaloader to RDEPENDS

In reply to [email protected]

From: Tim Orling <[email protected]>

Digest::SHA1 inherits from DynaLoader, but only the ptest package listed perl-module-dynaloader. Other packages got it indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates, so without it the libauthen-sasl-perl, libdigest-hmac-perl and libnet-ldap-perl ptests fail. Move it to RDEPENDS:${PN}, which the ptest package depends on.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb +2 -1
index 7ef855e7f9..27ee58f821 100644
@@ -19,7 +19,8 @@ do_install_ptest () {
     cp -r ${B}/t ${D}${PTEST_PATH}
 }
 
-RDEPENDS:${PN}-ptest += "perl-module-dynaloader perl-module-exporter perl-module-test"
+RDEPENDS:${PN} += "perl-module-dynaloader"
+RDEPENDS:${PN}-ptest += "perl-module-exporter perl-module-test"
 BBCLASSEXTEND = "native"
 
 FILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Digest/SHA1/.debug/"
Signature · 1 line
2.47.3
#8 lore raw

PATCH 6/10 libterm-readkey-perl: add perl-module-dynaloader to RDEPENDS

In reply to [email protected]

From: Tim Orling <[email protected]>

Term::ReadKey inherits from DynaLoader, which so far only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.38.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.38.bb +2 -0
index 8136f9f1f2..744953869b 100644
@@ -26,6 +26,8 @@ DEPENDS = "libterm-readkey-perl-native"
 
 inherit cpan ptest-perl
 
+RDEPENDS:${PN} += "perl-module-dynaloader"
+
 RDEPENDS:${PN}-ptest += " \
     perl-module-test-more \
 "
Signature · 1 line
2.47.3
#9 lore raw

PATCH 7/10 libtest-deep-perl: add perl-module-base to RDEPENDS

In reply to [email protected]

From: Tim Orling <[email protected]>

Test::Deep::Hash and others use "use base". perl-module-base so far only came in indirectly through the perl-module RDEPENDS that "perl:
generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libtest/libtest-deep-perl_1.205.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libtest/libtest-deep-perl_1.205.bb +1 -0
index ff0f696177..47ada02b34 100644
@@ -35,6 +35,7 @@ S = "${UNPACKDIR}/Test-Deep-${PV}"
 inherit cpan ptest-perl
 
 RDEPENDS:${PN} += " \
+    perl-module-base \
     perl-module-dynaloader \
     perl-module-exporter \
     perl-module-fcntl \
Signature · 1 line
2.47.3
#10 lore raw

PATCH 8/10 liburi-perl: add perl-module-base to RDEPENDS

In reply to [email protected]

From: Tim Orling <[email protected]>

URI::geo, URI::icap and URI::icaps use "use base". perl-module-base so far only came in indirectly through the perl-module RDEPENDS that "perl:
generate perl-rdepends.txt with perl.req" in oe-core regenerates, so the geo and icap ptests would fail.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/liburi/liburi-perl_5.40.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/liburi/liburi-perl_5.40.bb +1 -0
index 8a628ca7b0..07637d51d7 100644
@@ -32,6 +32,7 @@ do_install:prepend() {
 }
 
 RDEPENDS:${PN} += "\
+    perl-module-base \
     perl-module-integer \
     perl-module-mime-base64 \
     perl-module-unicode-normalize \
Signature · 1 line
2.47.3
#11 lore raw

PATCH 9/10 libxml-libxml-perl: add perl-module-base to RDEPENDS

In reply to [email protected]

From: Tim Orling <[email protected]>

XML::LibXML::Reader uses "use base". perl-module-base so far only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libxml/libxml-libxml-perl_2.0213.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libxml/libxml-libxml-perl_2.0213.bb +1 -0
index 91bfaafb07..e8b6e8d2a8 100644
@@ -17,6 +17,7 @@ RDEPENDS:${PN} += "\
     libxml2 \
     libxml-sax-perl \
     libxml-sax-base-perl \
+    perl-module-base \
     perl-module-encode \
     perl-module-data-dumper \
     zlib \
Signature · 1 line
2.47.3
#12 lore raw

PATCH 10/10 libdbd-sqlite-perl: indent with spaces

In reply to [email protected]

From: Tim Orling <[email protected]>

Replace the tab indentation in RDEPENDS and do_install_ptest with four spaces, as in the rest of the recipe. No functional change.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../libdb/libdbd-sqlite-perl_1.78.bb          | 27 ++++++++++---------
 1 file changed, 14 insertions(+), 13 deletions(-)
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +14 -13
index cbd51a8ea8..54cc204878 100644
@@ -24,12 +24,13 @@ DEPENDS += "libdbi-perl-native"
 
 inherit cpan ptest-perl
 
-RDEPENDS:${PN} += "libdbi-perl \
-		   sqlite3 \
-		   perl-module-base \
-		   perl-module-constant \
-		   perl-module-locale \
-		   perl-module-tie-hash \
+RDEPENDS:${PN} += "\
+    libdbi-perl \
+    sqlite3 \
+    perl-module-base \
+    perl-module-constant \
+    perl-module-locale \
+    perl-module-tie-hash \
 "
 
 do_install:append() {
@@ -39,15 +40,15 @@ do_install:append() {
 }
 
 do_install_ptest() {
-	cp -r ${B}/MANIFEST ${D}${PTEST_PATH}
-	chown -R root:root ${D}${PTEST_PATH}
+    cp -r ${B}/MANIFEST ${D}${PTEST_PATH}
+    chown -R root:root ${D}${PTEST_PATH}
 
-	# the t/virtual_table/11_filcontent_fulltext tests load these files directly
-	cp -r ${S}/lib ${D}${PTEST_PATH}
-	cp -r ${S}/inc ${D}${PTEST_PATH}
+    # the t/virtual_table/11_filcontent_fulltext tests load these files directly
+    cp -r ${S}/lib ${D}${PTEST_PATH}
+    cp -r ${S}/inc ${D}${PTEST_PATH}
 }
 
-RDEPENDS:${PN}-ptest += " \
+RDEPENDS:${PN}-ptest += "\
     libtest-nowarnings-perl \
     perl-module-digest-md5 \
     perl-module-encode-encoding \
@@ -58,6 +59,6 @@ RDEPENDS:${PN}-ptest += " \
     perl-module-file-spec-functions \
     perl-module-findbin \
     perl-module-test-more \
-    "
+"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.47.3
#13 lore raw
In reply to [email protected]
Quoted 24 lines · Tim Orling via openembedded-devel

From: Tim Orling <[email protected]>

Several meta-perl recipes use base.pm or DynaLoader.pm without listing perl-module-base or perl-module-dynaloader in RDEPENDS. They only came in indirectly through perl-module RDEPENDS in oe-core's perl-rdepends.txt, which "perl: generate perl-rdepends.txt with perl.req" regenerates without them. Add them where they are used, so these packages and their ptests keep working.

The gaps were found with the perl-rdeps QA check from the same oe-core series, plus a scan for packages whose dependencies lose base or DynaLoader. These patches work with or without that series, so they can be merged first. The last patch only replaces tabs with spaces in libdbd-sqlite-perl.

Tested on qemux86-64 with the oe-core series: the libcrypt-openssl-rsa, libdbd-sqlite, libnet-ssleay, libauthen-sasl, libnet-ldap, libterm-readkey, libtest-deep, liburi, libdigest-hmac and libxml-libxml ptests run. The only failures are libnet-ssleay-perl's network test t/handle/external/10_destroy and libxml-libxml-perl's t/12html (ISO-8859-2 conversion); neither is related to these changes.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

Quoted 12 lines

Tim Orling (10):
libcrypt-openssl-rsa-perl: add perl-module-base to ptest RDEPENDS
libdbd-sqlite-perl: add perl-module-base to RDEPENDS
libnet-ssleay-perl: add perl-module-base to ptest RDEPENDS
libnet-ldap-perl: add perl-module-base to RDEPENDS
libdigest-sha1-perl: move perl-module-dynaloader to RDEPENDS
libterm-readkey-perl: add perl-module-dynaloader to RDEPENDS
libtest-deep-perl: add perl-module-base to RDEPENDS
liburi-perl: add perl-module-base to RDEPENDS
libxml-libxml-perl: add perl-module-base to RDEPENDS
libdbd-sqlite-perl: indent with spaces

Is this list all we need ? I can see libcrypt-openssl-bignum-perl using base or DynaLoader

Quoted 27 lines
 .../libcrypt-openssl-rsa-perl_0.41.bb         |  1 +
 .../libdb/libdbd-sqlite-perl_1.78.bb          | 26 ++++++++++---------
 .../libdigest/libdigest-sha1-perl_2.13.bb     |  3 ++-
 .../libnet/libnet-ldap-perl_0.68.bb           |  1 +
 .../libnet/libnet-ssleay-perl_1.96.bb         |  1 +
 .../libterm/libterm-readkey-perl_2.38.bb      |  2 ++
 .../libtest/libtest-deep-perl_1.205.bb        |  1 +
 .../recipes-perl/liburi/liburi-perl_5.40.bb   |  1 +
 .../libxml/libxml-libxml-perl_2.0213.bb       |  1 +
 9 files changed, 24 insertions(+), 13 deletions(-)

--
2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#133575):
https://lists.openembedded.org/g/openembedded-devel/message/133575
Mute This Topic: https://lists.openembedded.org/mt/122519379/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#14 lore raw
Quoted 42 lines · Khem Raj
Quoted 24 lines · Tim Orling via openembedded-devel

From: Tim Orling <[email protected]>

Several meta-perl recipes use base.pm or DynaLoader.pm without listing perl-module-base or perl-module-dynaloader in RDEPENDS. They only came in indirectly through perl-module RDEPENDS in oe-core's perl-rdepends.txt, which "perl: generate perl-rdepends.txt with perl.req" regenerates without them. Add them where they are used, so these packages and their ptests keep working.

The gaps were found with the perl-rdeps QA check from the same oe-core series, plus a scan for packages whose dependencies lose base or DynaLoader. These patches work with or without that series, so they can be merged first. The last patch only replaces tabs with spaces in libdbd-sqlite-perl.

Tested on qemux86-64 with the oe-core series: the libcrypt-openssl-rsa, libdbd-sqlite, libnet-ssleay, libauthen-sasl, libnet-ldap, libterm-readkey, libtest-deep, liburi, libdigest-hmac and libxml-libxml ptests run. The only failures are libnet-ssleay-perl's network test t/handle/external/10_destroy and libxml-libxml-perl's t/12html (ISO-8859-2 conversion); neither is related to these changes.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

Quoted 12 lines

Tim Orling (10):
libcrypt-openssl-rsa-perl: add perl-module-base to ptest RDEPENDS
libdbd-sqlite-perl: add perl-module-base to RDEPENDS
libnet-ssleay-perl: add perl-module-base to ptest RDEPENDS
libnet-ldap-perl: add perl-module-base to RDEPENDS
libdigest-sha1-perl: move perl-module-dynaloader to RDEPENDS
libterm-readkey-perl: add perl-module-dynaloader to RDEPENDS
libtest-deep-perl: add perl-module-base to RDEPENDS
liburi-perl: add perl-module-base to RDEPENDS
libxml-libxml-perl: add perl-module-base to RDEPENDS
libdbd-sqlite-perl: indent with spaces

Quoted 3 lines

Is this list all we need ? I can see libcrypt-openssl-bignum-perl using base or DynaLoader

Thank you for catching that. No, we need more. I missed some recommendations from a perl-rdeps run somehow.

I'll send a v2 of the whole series (about 12 new patches).

Quoted 29 lines
Quoted 29 lines


 .../libcrypt-openssl-rsa-perl_0.41.bb         |  1 +
 .../libdb/libdbd-sqlite-perl_1.78.bb          | 26 ++++++++++---------
 .../libdigest/libdigest-sha1-perl_2.13.bb     |  3 ++-
 .../libnet/libnet-ldap-perl_0.68.bb           |  1 +
 .../libnet/libnet-ssleay-perl_1.96.bb         |  1 +
 .../libterm/libterm-readkey-perl_2.38.bb      |  2 ++
 .../libtest/libtest-deep-perl_1.205.bb        |  1 +
 .../recipes-perl/liburi/liburi-perl_5.40.bb   |  1 +
 .../libxml/libxml-libxml-perl_2.0213.bb       |  1 +
 9 files changed, 24 insertions(+), 13 deletions(-)

--
2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#133575):
https://lists.openembedded.org/g/openembedded-devel/message/133575
Mute This Topic: https://lists.openembedded.org/mt/122519379/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#15 lore raw
Quoted 46 lines · Tim Orling
Quoted 42 lines · Khem Raj
Quoted 36 lines · Tim Orling via openembedded-devel

From: Tim Orling <[email protected]>

Several meta-perl recipes use base.pm or DynaLoader.pm without listing perl-module-base or perl-module-dynaloader in RDEPENDS. They only came in indirectly through perl-module RDEPENDS in oe-core's perl-rdepends.txt, which "perl: generate perl-rdepends.txt with perl.req" regenerates without them. Add them where they are used, so these packages and their ptests keep working.

The gaps were found with the perl-rdeps QA check from the same oe-core series, plus a scan for packages whose dependencies lose base or DynaLoader. These patches work with or without that series, so they can be merged first. The last patch only replaces tabs with spaces in libdbd-sqlite-perl.

Tested on qemux86-64 with the oe-core series: the libcrypt-openssl-rsa, libdbd-sqlite, libnet-ssleay, libauthen-sasl, libnet-ldap, libterm-readkey, libtest-deep, liburi, libdigest-hmac and libxml-libxml ptests run. The only failures are libnet-ssleay-perl's network test t/handle/external/10_destroy and libxml-libxml-perl's t/12html (ISO-8859-2 conversion); neither is related to these changes.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

Tim Orling (10):
libcrypt-openssl-rsa-perl: add perl-module-base to ptest RDEPENDS
libdbd-sqlite-perl: add perl-module-base to RDEPENDS
libnet-ssleay-perl: add perl-module-base to ptest RDEPENDS
libnet-ldap-perl: add perl-module-base to RDEPENDS
libdigest-sha1-perl: move perl-module-dynaloader to RDEPENDS
libterm-readkey-perl: add perl-module-dynaloader to RDEPENDS
libtest-deep-perl: add perl-module-base to RDEPENDS
liburi-perl: add perl-module-base to RDEPENDS
libxml-libxml-perl: add perl-module-base to RDEPENDS
libdbd-sqlite-perl: indent with spaces

Quoted 10 lines
Quoted 3 lines

Is this list all we need ? I can see libcrypt-openssl-bignum-perl using base or DynaLoader

Thank you for catching that. No, we need more. I missed some recommendations from a perl-rdeps run somehow.

I'll send a v2 of the whole series (about 12 new patches).

The v2 scope has grown, so I will attempt to break up the new changes into logical series.

There were a lot of missing dependencies in the Perl recipes, and we knew that. That was the whole point of why YOCTO #13376 was filed in the first place and why I am doing this current work. It just so happens that genAI has made this possible without a huge amount of effort to track down "all" the issues. I can virtually guarantee that I have missed something... baby steps.

Quoted 29 lines
Quoted 29 lines
Quoted 29 lines


 .../libcrypt-openssl-rsa-perl_0.41.bb         |  1 +
 .../libdb/libdbd-sqlite-perl_1.78.bb          | 26 ++++++++++---------
 .../libdigest/libdigest-sha1-perl_2.13.bb     |  3 ++-
 .../libnet/libnet-ldap-perl_0.68.bb           |  1 +
 .../libnet/libnet-ssleay-perl_1.96.bb         |  1 +
 .../libterm/libterm-readkey-perl_2.38.bb      |  2 ++
 .../libtest/libtest-deep-perl_1.205.bb        |  1 +
 .../recipes-perl/liburi/liburi-perl_5.40.bb   |  1 +
 .../libxml/libxml-libxml-perl_2.0213.bb       |  1 +
 9 files changed, 24 insertions(+), 13 deletions(-)

--
2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#133575):
https://lists.openembedded.org/g/openembedded-devel/message/133575
Mute This Topic: https://lists.openembedded.org/mt/122519379/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#16 lore raw

v2 cover perl recipes: add missing base, DynaLoader and other perl-module RDEPENDS

In reply to [email protected]

Several Perl recipes use base.pm or DynaLoader.pm without perl-module-base or perl-module-dynaloader in RDEPENDS. Some only got them through perl-module RDEPENDS in oe-core's perl-rdepends.txt, which "perl: generate perl-rdepends.txt with perl.req" regenerates without them; others never had them. libio-compress-perl and libio-compress-lzma-perl lose IO::File, IO::Handle and Symbol the same way. These patches work with or without the oe-core series.

Found with the perl-rdeps QA check and by loading every module on qemux86-64 with only its package and RDEPENDS installed. All 57 perl ptest images pass, apart from libnet-dns-sec-perl t/10-keyset and libnet-ssleay-perl's network test, which fail without these changes too.

Changes in v2:
- Fold the libdbd-sqlite-perl indent fix into its patch (Khem)
- Add recipes that were already missing base or DynaLoader, starting with libcrypt-openssl-bignum-perl (Khem), plus libio-compress-perl and libio-compress-lzma-perl
- Add the other perl-module packages these recipes need to load
- rrdtool: package the perl bindings in rrdtool-perl, which was empty
- openipmi: install the perl bindings in @INC and link OpenIPMI.so
- Prefix each patch with the layer it applies to, as the series now also touches meta-oe and meta-networking

AI-Generated: Uses Claude Code (Claude Opus 5.5)

Tim Orling (26):
libcrypt-openssl-rsa-perl: add perl-module-base to ptest RDEPENDS
libdbd-sqlite-perl: add perl-module-base to RDEPENDS
libnet-ssleay-perl: add perl-module-base to ptest RDEPENDS
libnet-ldap-perl: add missing RDEPENDS
libdigest-sha1-perl: move perl-module-dynaloader to RDEPENDS
libterm-readkey-perl: add perl-module-dynaloader to RDEPENDS
libtest-deep-perl: add missing perl-module RDEPENDS
liburi-perl: add missing perl-module RDEPENDS
libxml-libxml-perl: add perl-module-base to RDEPENDS
geoip-perl: add perl-module-base to RDEPENDS
libconfig-general-perl: add missing perl-module RDEPENDS libcrypt-openssl-bignum-perl: add perl-module-base to RDEPENDS
libdbi-perl: add missing perl-module RDEPENDS
libtest-harness-perl: add missing perl-module RDEPENDS libxml-filter-buffertext-perl: add perl-module-base to RDEPENDS
libcurses-perl: add perl-module-dynaloader to RDEPENDS
libfile-fnmatch-perl: add perl-module-dynaloader to RDEPENDS
liblocale-gettext-perl: add missing perl-module RDEPENDS
libnet-libidn-perl: add missing perl-module RDEPENDS
libpcsc-perl: add perl-module-dynaloader to RDEPENDS
libtext-iconv-perl: add missing perl-module RDEPENDS
ipc-run: add missing perl-module RDEPENDS
rrdtool: package the perl bindings in rrdtool-perl
openipmi: fix the perl bindings
libio-compress-perl: add missing perl-module RDEPENDS
libio-compress-lzma-perl: add perl-module-io-file to RDEPENDS

 .../recipes-support/geoip/geoip-perl_1.51.bb  |  2 ++
 ...penIPMI.so-against-the-OpenIPMI-libr.patch | 33 +++++++++++++++++++
 .../openipmi/openipmi_2.0.38.bb               | 23 ++++++-------
 .../perl/ipc-run_20260402.0.bb                | 19 +++++++++++
 .../perl/libconfig-general-perl_2.69.bb       | 13 ++++++++
 .../perl/libdbi-perl_1.656.bb                 |  6 ++++
 .../perl/libpcsc-perl_1.4.15.bb               |  2 +-
 .../perl/libfile-fnmatch-perl_0.02.bb         |  2 ++
 .../rrdtool/rrdtool_1.11.0.bb                 | 10 +++---
 .../libcrypt-openssl-bignum-perl_0.09.bb      |  1 +
 .../libcrypt-openssl-rsa-perl_0.41.bb         |  1 +
 .../libcurses/libcurses-perl_1.46.bb          |  2 ++
 .../libdb/libdbd-sqlite-perl_1.78.bb          | 26 ++++++++-------
 .../libdigest/libdigest-sha1-perl_2.13.bb     |  3 +-
 .../libio/libio-compress-lzma-perl_2.225.bb   |  1 +
 .../libio/libio-compress-perl_2.225.bb        |  6 ++++
 .../liblocale/liblocale-gettext-perl_1.07.bb  |  2 ++
 .../libnet/libnet-ldap-perl_0.68.bb           |  2 ++
 .../libnet/libnet-libidn-perl_0.12.bb         |  2 ++
 .../libnet/libnet-ssleay-perl_1.96.bb         |  1 +
 .../libterm/libterm-readkey-perl_2.38.bb      |  2 ++
 .../libtest/libtest-deep-perl_1.205.bb        |  3 ++
 .../libtest/libtest-harness-perl_3.52.bb      | 13 ++++++++
 .../libtext/libtext-iconv-perl_1.7.bb         |  2 ++
 .../recipes-perl/liburi/liburi-perl_5.40.bb   |  6 ++++
 .../libxml-filter-buffertext-perl_1.01.bb     |  2 +-
 .../libxml/libxml-libxml-perl_2.0213.bb       |  1 +
 27 files changed, 154 insertions(+), 32 deletions(-)
 create mode 100644 meta-networking/recipes-support/openipmi/files/0003-swig-perl-link-OpenIPMI.so-against-the-OpenIPMI-libr.patch
Signature · 1 line
2.47.3
author
#17 lore raw

PATCH v2 1/26 libcrypt-openssl-rsa-perl: add perl-module-base to ptest RDEPENDS

t/rsa.t uses "use base". perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates, so the test would fail.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../recipes-perl/libcrypt/libcrypt-openssl-rsa-perl_0.41.bb      | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libcrypt/libcrypt-openssl-rsa-perl_0.41.bb +1 -0
index 0ec5ed4035..0da30977c5 100644
@@ -33,6 +33,7 @@ do_compile() {
 }
 
 RDEPENDS:${PN}-ptest += " \
+    perl-module-base \
     perl-module-file-copy \
     perl-module-test \
     perl-module-test-more \
Signature · 1 line
2.47.3
author
#18 lore raw

PATCH v2 2/26 libdbd-sqlite-perl: add perl-module-base to RDEPENDS

In reply to Tim Orling

DBD::SQLite::Constants and the VirtualTable modules use "use base", and so do the virtual_table ptests. perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

While here, replace the tab indentation in RDEPENDS and do_install_ptest with four spaces, as in the rest of the recipe.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../libdb/libdbd-sqlite-perl_1.78.bb          | 26 ++++++++++---------
 1 file changed, 14 insertions(+), 12 deletions(-)
meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.78.bb +14 -12
index 77b8352dae..54cc204878 100644
@@ -24,11 +24,13 @@ DEPENDS += "libdbi-perl-native"
 
 inherit cpan ptest-perl
 
-RDEPENDS:${PN} += "libdbi-perl \
-		   sqlite3 \
-		   perl-module-constant \
-		   perl-module-locale \
-		   perl-module-tie-hash \
+RDEPENDS:${PN} += "\
+    libdbi-perl \
+    sqlite3 \
+    perl-module-base \
+    perl-module-constant \
+    perl-module-locale \
+    perl-module-tie-hash \
 "
 
 do_install:append() {
@@ -38,15 +40,15 @@ do_install:append() {
 }
 
 do_install_ptest() {
-	cp -r ${B}/MANIFEST ${D}${PTEST_PATH}
-	chown -R root:root ${D}${PTEST_PATH}
+    cp -r ${B}/MANIFEST ${D}${PTEST_PATH}
+    chown -R root:root ${D}${PTEST_PATH}
 
-	# the t/virtual_table/11_filcontent_fulltext tests load these files directly
-	cp -r ${S}/lib ${D}${PTEST_PATH}
-	cp -r ${S}/inc ${D}${PTEST_PATH}
+    # the t/virtual_table/11_filcontent_fulltext tests load these files directly
+    cp -r ${S}/lib ${D}${PTEST_PATH}
+    cp -r ${S}/inc ${D}${PTEST_PATH}
 }
 
-RDEPENDS:${PN}-ptest += " \
+RDEPENDS:${PN}-ptest += "\
     libtest-nowarnings-perl \
     perl-module-digest-md5 \
     perl-module-encode-encoding \
@@ -57,6 +59,6 @@ RDEPENDS:${PN}-ptest += " \
     perl-module-file-spec-functions \
     perl-module-findbin \
     perl-module-test-more \
-    "
+"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.47.3
author
#19 lore raw

PATCH v2 3/26 libnet-ssleay-perl: add perl-module-base to ptest RDEPENDS

In reply to Tim Orling

The tests load inc/Test/Net/SSLeay.pm, which uses "use base". perl-module-base only came in indirectly through the perl-module RDEPENDS, which "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates, so the tests would fail.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.96.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.96.bb +1 -0
index 3ae4ce24af..4b37aa1388 100644
@@ -48,6 +48,7 @@ do_install_ptest_perl:append(){
 FILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/"
 
 RDEPENDS:${PN}-ptest += "\
+    perl-module-base \
     perl-module-english \
     perl-module-file-spec-functions \
     perl-module-findbin \
Signature · 1 line
2.47.3
author
#20 lore raw

PATCH v2 4/26 libnet-ldap-perl: add missing RDEPENDS

In reply to Tim Orling

LWP::Protocol::ldaps and LWP::Protocol::ldapi use base, which only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates. Net::LDAP::DSML also uses XML::SAX::Base, so add libxml-sax-base-perl. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.68.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.68.bb +2 -0
index 1c7a1b8432..c13fc8f00c 100644
@@ -30,7 +30,9 @@ RDEPENDS:${PN} += " \
     libconvert-asn1-perl \
     libio-socket-ssl-perl \
     libauthen-sasl-perl \
+    perl-module-base \
     perl-module-integer \
+    libxml-sax-base-perl \
 "
 
 RDEPENDS:${PN}-ptest += " \
Signature · 1 line
2.47.3
author
#21 lore raw

PATCH v2 5/26 libdigest-sha1-perl: move perl-module-dynaloader to RDEPENDS

In reply to Tim Orling

Digest::SHA1 inherits from DynaLoader, but only the ptest package listed perl-module-dynaloader. Other packages got it indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates, so without it the libauthen-sasl-perl, libdigest-hmac-perl and libnet-ldap-perl ptests fail. Move it to RDEPENDS:${PN}, which the ptest package depends on.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb +2 -1
index 7ef855e7f9..27ee58f821 100644
@@ -19,7 +19,8 @@ do_install_ptest () {
     cp -r ${B}/t ${D}${PTEST_PATH}
 }
 
-RDEPENDS:${PN}-ptest += "perl-module-dynaloader perl-module-exporter perl-module-test"
+RDEPENDS:${PN} += "perl-module-dynaloader"
+RDEPENDS:${PN}-ptest += "perl-module-exporter perl-module-test"
 BBCLASSEXTEND = "native"
 
 FILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Digest/SHA1/.debug/"
Signature · 1 line
2.47.3
author
#22 lore raw

PATCH v2 6/26 libterm-readkey-perl: add perl-module-dynaloader to RDEPENDS

In reply to Tim Orling

Term::ReadKey inherits from DynaLoader, which so far only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.38.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.38.bb +2 -0
index 8136f9f1f2..744953869b 100644
@@ -26,6 +26,8 @@ DEPENDS = "libterm-readkey-perl-native"
 
 inherit cpan ptest-perl
 
+RDEPENDS:${PN} += "perl-module-dynaloader"
+
 RDEPENDS:${PN}-ptest += " \
     perl-module-test-more \
 "
Signature · 1 line
2.47.3
author
#23 lore raw

PATCH v2 7/26 libtest-deep-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

Test::Deep::Hash and others use base, which so far only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates. The Test::Deep modules also use overload, and Test::Deep loads Test::Builder, which nothing in RDEPENDS pulls in either. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libtest/libtest-deep-perl_1.205.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-perl/recipes-perl/libtest/libtest-deep-perl_1.205.bb +3 -0
index ff0f696177..7056b22301 100644
@@ -35,12 +35,15 @@ S = "${UNPACKDIR}/Test-Deep-${PV}"
 inherit cpan ptest-perl
 
 RDEPENDS:${PN} += " \
+    perl-module-base \
     perl-module-dynaloader \
     perl-module-exporter \
     perl-module-fcntl \
     perl-module-list-util \
+    perl-module-overload \
     perl-module-scalar-util \
     perl-module-strict \
+    perl-module-test-builder \
     perl-module-vars \
     perl-module-warnings \
 "
Signature · 1 line
2.47.3
author
#24 lore raw

PATCH v2 8/26 liburi-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

URI::geo, URI::icap and URI::icaps use base, which so far only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates, so the geo and icap ptests would fail. Most URI modules also use parent, constant, overload and Scalar::Util, and URI::otpauth uses MIME::Base32, which nothing in RDEPENDS pulls in either. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/liburi/liburi-perl_5.40.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-perl/recipes-perl/liburi/liburi-perl_5.40.bb +6 -0
index 8a628ca7b0..2fa87a08ee 100644
@@ -32,8 +32,14 @@ do_install:prepend() {
 }
 
 RDEPENDS:${PN} += "\
+    libmime-base32-perl \
+    perl-module-base \
+    perl-module-constant \
     perl-module-integer \
     perl-module-mime-base64 \
+    perl-module-overload \
+    perl-module-parent \
+    perl-module-scalar-util \
     perl-module-unicode-normalize \
 "
 
Signature · 1 line
2.47.3
author
#25 lore raw

PATCH v2 9/26 libxml-libxml-perl: add perl-module-base to RDEPENDS

In reply to Tim Orling

XML::LibXML::Reader uses "use base". perl-module-base so far only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libxml/libxml-libxml-perl_2.0213.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libxml/libxml-libxml-perl_2.0213.bb +1 -0
index 91bfaafb07..e8b6e8d2a8 100644
@@ -17,6 +17,7 @@ RDEPENDS:${PN} += "\
     libxml2 \
     libxml-sax-perl \
     libxml-sax-base-perl \
+    perl-module-base \
     perl-module-encode \
     perl-module-data-dumper \
     zlib \
Signature · 1 line
2.47.3
author
#26 lore raw

PATCH v2 10/26 geoip-perl: add perl-module-base to RDEPENDS

In reply to Tim Orling

Geo::IP uses "use base". Nothing in its RDEPENDS pulls in perl-module-base, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs it. Found by the perl-rdeps QA check.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-networking/recipes-support/geoip/geoip-perl_1.51.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-support/geoip/geoip-perl_1.51.bb +2 -0
index c5f856c283..83002a8975 100644
@@ -29,6 +29,8 @@ do_install_ptest () {
     install ${S}/t/*.t* ${D}${PTEST_PATH}/t
     install ${S}/t/data/* ${D}${PTEST_PATH}/t/data
 }
+
+RDEPENDS:${PN} += "perl-module-base"
 RDEPENDS:${PN}-ptest += "perl-modules"
 
 FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Geo/IP/.debug"
Signature · 1 line
2.47.3
author
#27 lore raw

PATCH v2 11/26 libconfig-general-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

Config::General uses base, bytes, English, IO::File, FileHandle, File::Spec::Functions, File::Glob, Data::Dumper, Carp::Heavy and constant, but nothing in its RDEPENDS pulls in the matching perl-module packages, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs them. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../perl/libconfig-general-perl_2.69.bb             | 13 +++++++++++++
 1 file changed, 13 insertions(+)
meta-oe/recipes-devtools/perl/libconfig-general-perl_2.69.bb +13 -0
index a3bb37e17c..18a51a479e 100644
@@ -16,6 +16,19 @@ EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}
 
 inherit cpan
 
+RDEPENDS:${PN} += "\
+    perl-module-base \
+    perl-module-bytes \
+    perl-module-carp-heavy \
+    perl-module-constant \
+    perl-module-data-dumper \
+    perl-module-english \
+    perl-module-file-glob \
+    perl-module-file-spec-functions \
+    perl-module-filehandle \
+    perl-module-io-file \
+"
+
 do_compile() {
     export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
     cpan_do_compile
Signature · 1 line
2.47.3
author
#28 lore raw

PATCH v2 12/26 libcrypt-openssl-bignum-perl: add perl-module-base to RDEPENDS

In reply to Tim Orling

Crypt::OpenSSL::Bignum and Crypt::OpenSSL::Bignum::CTX use "use base". Nothing in its RDEPENDS pulls in perl-module-base, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs it. Found by the perl-rdeps QA check.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../recipes-perl/libcrypt/libcrypt-openssl-bignum-perl_0.09.bb   | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libcrypt/libcrypt-openssl-bignum-perl_0.09.bb +1 -0
index ad7b5dc261..437b3e94f4 100644
@@ -19,6 +19,7 @@ EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}' LIBS='-L${STAGING_LIBDIR} -L${STAGI
 inherit cpan
 
 RDEPENDS:${PN} += "\
+    perl-module-base \
     perl-module-carp \
     perl-module-dynaloader \
 "
Signature · 1 line
2.47.3
author
#29 lore raw

PATCH v2 13/26 libdbi-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

DBD::File, DBD::DBM and the DBD::Gofer modules use base, DBD::DBM uses Module::Load, the DBD::Gofer transports use Data::Dumper, IO::Select and IPC::Open3, and dbiprof and DBI::ProxyServer use Getopt::Long. Nothing in RDEPENDS pulls in the matching perl-module packages, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so these modules fail to load unless something else installs them. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-oe/recipes-devtools/perl/libdbi-perl_1.656.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-devtools/perl/libdbi-perl_1.656.bb +6 -0
index ada346b4e8..e833f21ae1 100644
@@ -33,13 +33,19 @@ do_install:append() {
 
 RDEPENDS:${PN}:class-target = " \
     perl \
+    perl-module-base \
     perl-module-carp \
     perl-module-exporter \
     perl-module-exporter-heavy \
     perl-module-dynaloader \
     perl-module-io-dir \
+    perl-module-load \
     perl-module-scalar-util \
     perl-module-universal \
+    perl-module-data-dumper \
+    perl-module-getopt-long \
+    perl-module-io-select \
+    perl-module-ipc-open3 \
 "
 
 RDEPENDS:${PN}-ptest += " \
Signature · 1 line
2.47.3
author
#30 lore raw

PATCH v2 14/26 libtest-harness-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

Test::Harness, App::Prove and the TAP modules use base, constant, Errno, File::Basename, File::Find, File::Glob, File::Path, File::Spec, Getopt::Long, IO::Handle, IO::Select, POSIX and Text::ParseWords, but nothing in RDEPENDS pulls in the matching perl-module packages, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the modules fail to load unless something else installs them. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../libtest/libtest-harness-perl_3.52.bb            | 13 +++++++++++++
 1 file changed, 13 insertions(+)
meta-perl/recipes-perl/libtest/libtest-harness-perl_3.52.bb +13 -0
index 47c6409bdc..edc3b608e6 100644
@@ -35,7 +35,20 @@ S = "${UNPACKDIR}/Test-Harness-${PV}"
 inherit cpan ptest-perl
 
 RDEPENDS:${PN} += "\
+    perl-module-base \
     perl-module-benchmark \
+    perl-module-constant \
+    perl-module-errno \
+    perl-module-file-basename \
+    perl-module-file-find \
+    perl-module-file-glob \
+    perl-module-file-path \
+    perl-module-file-spec \
+    perl-module-getopt-long \
+    perl-module-io-handle \
+    perl-module-io-select \
+    perl-module-posix \
+    perl-module-text-parsewords \
 "
 
 RDEPENDS:${PN}-ptest += "\
Signature · 1 line
2.47.3
author
#31 lore raw

PATCH v2 15/26 libxml-filter-buffertext-perl: add perl-module-base to RDEPENDS

In reply to Tim Orling

XML::Filter::BufferText uses "use base". Nothing in its RDEPENDS pulls in perl-module-base, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs it. Found by the perl-rdeps QA check.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb +1 -1
index 86c5f298bf..431e5c5d64 100644
@@ -10,7 +10,7 @@ SECTION = "libs"
 LICENSE = "Artistic-1.0 OR GPL-1.0-or-later"
 HOMEPAGE = "https://metacpan.org/dist/XML-Filter-BufferText"
 DEPENDS += "libxml-sax-perl-native"
-RDEPENDS:${PN} += "libxml-sax-perl"
+RDEPENDS:${PN} += "libxml-sax-perl perl-module-base"
 
 SRC_URI = "${CPAN_MIRROR}/authors/id/R/RB/RBERJON/XML-Filter-BufferText-${PV}.tar.gz"
 SRC_URI[sha256sum] = "8fd2126d3beec554df852919f4739e689202cbba6a17506e9b66ea165841a75c"
Signature · 1 line
2.47.3
author
#32 lore raw

PATCH v2 16/26 libcurses-perl: add perl-module-dynaloader to RDEPENDS

In reply to Tim Orling

Curses loads its XS code with DynaLoader. Nothing in its RDEPENDS pulls in perl-module-dynaloader, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs it. Found by the perl-rdeps QA check.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libcurses/libcurses-perl_1.46.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-perl/recipes-perl/libcurses/libcurses-perl_1.46.bb +2 -0
index 96c37b49f8..e2cc901d5e 100644
@@ -25,6 +25,8 @@ CFLAGS:append:libc-musl = "${@' -DNCURSES_WIDECHAR=1' if bb.utils.to_boolean((d.
 
 inherit cpan
 
+RDEPENDS:${PN} += "perl-module-dynaloader"
+
 do_compile() {
     export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
     cpan_do_compile
Signature · 1 line
2.47.3
author
#33 lore raw

PATCH v2 17/26 libfile-fnmatch-perl: add perl-module-dynaloader to RDEPENDS

In reply to Tim Orling

File::FnMatch loads its XS code with DynaLoader. Nothing in its RDEPENDS pulls in perl-module-dynaloader, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs it. Found by the perl-rdeps QA check.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb +2 -0
index 2329f366df..53fe497c42 100644
@@ -18,4 +18,6 @@ S = "${UNPACKDIR}/File-FnMatch-${PV}"
 
 inherit cpan
 
+RDEPENDS:${PN} += "perl-module-dynaloader"
+
 BBCLASSEXTEND = "native"
Signature · 1 line
2.47.3
author
#34 lore raw

PATCH v2 18/26 liblocale-gettext-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

Locale::gettext loads its XS code with DynaLoader and uses POSIX, but nothing in its RDEPENDS pulls in perl-module-dynaloader or perl-module-posix, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs them. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/liblocale/liblocale-gettext-perl_1.07.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-perl/recipes-perl/liblocale/liblocale-gettext-perl_1.07.bb +2 -0
index 2a1a1c601a..060191c268 100644
@@ -17,4 +17,6 @@ S = "${UNPACKDIR}/Locale-gettext-${PV}"
 
 inherit cpan
 
+RDEPENDS:${PN} += "perl-module-dynaloader perl-module-posix"
+
 BBCLASSEXTEND = "native"
Signature · 1 line
2.47.3
author
#35 lore raw

PATCH v2 19/26 libnet-libidn-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

Net::LibIDN loads its XS code with DynaLoader and uses AutoLoader and Errno, but nothing in its RDEPENDS pulls in perl-module-dynaloader, perl-module-autoloader or perl-module-errno, before or after "perl:
generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs them. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libnet/libnet-libidn-perl_0.12.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-perl/recipes-perl/libnet/libnet-libidn-perl_0.12.bb +2 -0
index f5c623991f..a17e5f1f61 100644
@@ -28,6 +28,8 @@ inherit cpan
 
 FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Net/LibIDN/.debug/"
 
+RDEPENDS:${PN} += "perl-module-autoloader perl-module-dynaloader perl-module-errno"
+
 do_configure:prepend() {
     rm -rf ${S}/.pc/
 }
Signature · 1 line
2.47.3
author
#36 lore raw

PATCH v2 20/26 libpcsc-perl: add perl-module-dynaloader to RDEPENDS

In reply to Tim Orling

Chipcard::PCSC loads its XS code with DynaLoader. Nothing in its RDEPENDS pulls in perl-module-dynaloader, before or after "perl:
generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs it. Found by the perl-rdeps QA check.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-oe/recipes-devtools/perl/libpcsc-perl_1.4.15.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/perl/libpcsc-perl_1.4.15.bb +1 -1
index 363d49afd2..3a2651efa3 100644
@@ -19,6 +19,6 @@ inherit cpan pkgconfig
 
 DEPENDS += "pcsc-lite"
 
-RDEPENDS:${PN} += "perl-module-carp"
+RDEPENDS:${PN} += "perl-module-carp perl-module-dynaloader"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.47.3
author
#37 lore raw

PATCH v2 21/26 libtext-iconv-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

Text::Iconv loads its XS code with DynaLoader and uses AutoLoader, but nothing in its RDEPENDS pulls in perl-module-dynaloader or perl-module-autoloader, before or after "perl: generate perl-rdepends.txt with perl.req" in oe-core, so the module fails to load unless something else installs them. Found by the perl-rdeps QA check and by loading the module on qemux86-64.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libtext/libtext-iconv-perl_1.7.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-perl/recipes-perl/libtext/libtext-iconv-perl_1.7.bb +2 -0
index e30593da8e..747e90ee47 100644
@@ -22,3 +22,5 @@ S = "${UNPACKDIR}/Text-Iconv-${PV}"
 inherit cpan
 
 FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Text/Iconv/.debug/"
+
+RDEPENDS:${PN} += "perl-module-autoloader perl-module-dynaloader"
Signature · 1 line
2.47.3
author
#38 lore raw

PATCH v2 22/26 ipc-run: add missing perl-module RDEPENDS

In reply to Tim Orling

IPC::Run and its IPC::Run::Debug, IO and Timer modules use base, bytes, Carp, constant, Errno, Exporter, Fcntl, File::Spec, IO::Handle, overload, POSIX, Scalar::Util, Socket, Symbol and Text::ParseWords, and IPC::Run loads File::Basename with a string eval, which perl.req cannot see. The package only RDEPENDS on perl, so these modules fail to load unless something else installs them. Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 .../perl/ipc-run_20260402.0.bb                | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
meta-oe/recipes-devtools/perl/ipc-run_20260402.0.bb +19 -0
index fa4ffd5907..583197bc2f 100644
@@ -17,6 +17,25 @@ inherit cpan
 
 EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
 
+RDEPENDS:${PN} += "\
+    perl-module-base \
+    perl-module-bytes \
+    perl-module-carp \
+    perl-module-constant \
+    perl-module-errno \
+    perl-module-exporter \
+    perl-module-fcntl \
+    perl-module-file-basename \
+    perl-module-file-spec \
+    perl-module-io-handle \
+    perl-module-overload \
+    perl-module-posix \
+    perl-module-scalar-util \
+    perl-module-socket \
+    perl-module-symbol \
+    perl-module-text-parsewords \
+"
+
 do_compile() {
     export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
     cpan_do_compile
Signature · 1 line
2.47.3
author
#39 lore raw

PATCH v2 23/26 rrdtool: package the perl bindings in rrdtool-perl

In reply to Tim Orling

FILES:${PN}-perl uses ${libdir}/perl/vendor_perl, but the bindings are installed in ${libdir}/perl5/vendor_perl, so rrdtool-perl is empty and RRDs.pm, RRDp.pm and RRDs.so end up in rrdtool without the RDEPENDS of rrdtool-perl. RRDp then fails to load with "Can't locate IPC/Open2.pm".

Fix the FILES paths for rrdtool-perl and rrdtool-dbg, and add the modules the bindings use that are missing from RDEPENDS:${PN}-perl:
Carp, DynaLoader, Fcntl and IO::Handle. Found by the perl-rdeps QA check.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.11.0.bb | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.11.0.bb +6 -4
index fff3cb2ebf..2f2d862cd0 100644
@@ -135,17 +135,19 @@ FILES:${PN}-doc += "${datadir}/rrdtool/examples"
 
 DESCRIPTION:${PN}-perl = \
 "The ${PN}-perl package includes RRDtool bindings for perl."
-FILES:${PN}-perl = "${libdir}/perl/vendor_perl/*/*.pm \
-    ${libdir}/perl/vendor_perl/*/auto/RRDs/RRDs.*"
+FILES:${PN}-perl = "${libdir}/perl5/vendor_perl/*/*.pm \
+    ${libdir}/perl5/vendor_perl/*/*/*.pm \
+    ${libdir}/perl5/vendor_perl/*/*/auto/RRDs/RRDs.*"
 RDEPENDS:${PN}-perl = "perl perl-module-lib perl-module-getopt-long perl-module-time-hires \
-    perl-module-io-file perl-module-ipc-open2 perl-module-io-socket"
+    perl-module-io-file perl-module-ipc-open2 perl-module-io-socket \
+    perl-module-carp perl-module-dynaloader perl-module-fcntl perl-module-io-handle"
 
 DESCRIPTION:${PN}-python = \
 "The ${PN}-python package includes RRDtool bindings for python."
 FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*"
 RDEPENDS:${PN}-python = "python3"
 
-FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/RRDs/.debug \
+FILES:${PN}-dbg += "${libdir}/perl5/vendor_perl/*/*/auto/RRDs/.debug \
     ${PYTHON_SITEPACKAGES_DIR}/.debug"
 
 # http://errors.yoctoproject.org/Errors/Details/766911/
Signature · 1 line
2.47.3
author
#40 lore raw

PATCH v2 24/26 openipmi: fix the perl bindings

In reply to Tim Orling

The perl bindings in openipmi-perl cannot be used:

- They are installed in ${libdir}/perl/vendor_perl, which is not in perl's @INC. Install them in ${libdir}/perl5/vendor_perl instead, and drop the do_install code that moved ${libdir}/perl5 to ${libdir}/perl. cpan-base adds ${libdir}/perl5 to FILES:${PN}, so put ${PN}-perl and ${PN}-python before ${PN} in PACKAGES.
- OpenIPMI.so is not linked against the OpenIPMI libraries, and its SONAME libOpenIPMI.so.0 hides the real libOpenIPMI.so.0 from the dynamic loader, so it fails with undefined symbols. Add a patch that links it like the python binding and builds it as a module, and update PRIVATE_LIBS to the new SONAME.
- OpenIPMI.pm uses base, DynaLoader and Exporter, but openipmi-perl has no RDEPENDS on them or on perl. Found by the perl-rdeps QA check.

Tested on qemux86-64: "use OpenIPMI" works and OpenIPMI::init_posix() returns 0.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 ...penIPMI.so-against-the-OpenIPMI-libr.patch | 33 +++++++++++++++++++
 .../openipmi/openipmi_2.0.38.bb               | 23 ++++++-------
 2 files changed, 43 insertions(+), 13 deletions(-)
 create mode 100644 meta-networking/recipes-support/openipmi/files/0003-swig-perl-link-OpenIPMI.so-against-the-OpenIPMI-libr.patch
meta-networking/recipes-support/openipmi/files/0003-swig-perl-link-OpenIPMI.so-against-the-OpenIPMI-libr.patch new file +33 -0
new file mode 100644
index 0000000000..11b7c62b4a
@@ -0,0 +1,33 @@
+From: Tim Orling <[email protected]>
+Subject: [PATCH] swig/perl: build OpenIPMI.so as a module linked against
+ the OpenIPMI libraries
+
+The perl binding is built from libOpenIPMI.la without any LIBADD, so
+OpenIPMI.so has no NEEDED entries for libOpenIPMI and friends and fails
+to load:
+
+  OpenIPMI.so: undefined symbol: i__ipmi_debug_malloc
+
+Link it against the same libraries as the python binding, using the
+perl POSIX OS handler library. Also build it with -module
+-avoid-version like the python binding: otherwise it gets the SONAME
+libOpenIPMI.so.0, so the dynamic loader takes it for the real
+libOpenIPMI.so.0 and never loads that, and libOpenIPMIcmdlang.so.0
+fails with undefined symbols.
+
+Upstream-Status: Pending
+AI-Generated: Uses Claude Code (Claude Opus 5.5)
+Signed-off-by: Tim Orling <[email protected]>
+---
+--- a/swig/perl/Makefile.am
++++ b/swig/perl/Makefile.am
+@@ -17,7 +17,8 @@
+ 
+ nodist_libOpenIPMI_la_SOURCES = OpenIPMI_wrap.c
+ libOpenIPMI_la_SOURCES = OpenIPMI_perl.c
+-libOpenIPMI_la_LDFLAGS = -rpath /nowhere -no-undefined
++libOpenIPMI_la_LDFLAGS = -module -avoid-version -rpath /nowhere -no-undefined
++libOpenIPMI_la_LIBADD = $(OPENIPMI_SWIG_LIBS) $(PERL_POSIX_LIB)
+ 
+ OpenIPMI_wrap.c OpenIPMI.pm: $(top_srcdir)/swig/OpenIPMI.i OpenIPMI_lang.i
+ 	$(SWIG) $(DEFS) -perl5 -o OpenIPMI_wrap.c -I$(top_srcdir)/swig/perl $<
meta-networking/recipes-support/openipmi/openipmi_2.0.38.bb +10 -13
index a637b19d20..93bd0745ca 100644
@@ -30,6 +30,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/openipmi/OpenIPMI-${PV}.tar.gz \
            file://include_sys_types.patch \
            file://0001-Makefile.am-Pass-BUILD_CFLAGS-to-BUILD_CC.patch \
            file://0002-swig-python-OpenIPMI_lang.i-add-py2-py3-C-API-compa.patch \
+           file://0003-swig-perl-link-OpenIPMI.so-against-the-OpenIPMI-libr.patch \
            file://openipmi-helper \
            file://ipmi.service \
            "
@@ -51,21 +52,23 @@ EXTRA_OECONF = "--disable-static \
 PACKAGECONFIG ??= "gdbm"
 PACKAGECONFIG[gdbm] = "ac_cv_header_gdbm_h=yes,ac_cv_header_gdbm_h=no,gdbm,"
 
-PACKAGES += "${PN}-perl ${PN}-python"
-PRIVATE_LIBS:${PN}-perl = "libOpenIPMI.so.0"
+PACKAGES =+ "${PN}-perl ${PN}-python"
+PRIVATE_LIBS:${PN}-perl = "libOpenIPMI.so"
 
 FILES:${PN}-perl = " \
-    ${libdir}/perl/vendor_perl/*/OpenIPMI.pm \
-    ${libdir}/perl/vendor_perl/*/auto/OpenIPMI/OpenIPMI.so \
+    ${libdir}/perl5/vendor_perl/*/OpenIPMI.pm \
+    ${libdir}/perl5/vendor_perl/*/auto/OpenIPMI/OpenIPMI.so \
     "
 
 FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
 
 FILES:${PN}-dbg += " \
-    ${libdir}/perl/vendor_perl/*/auto/OpenIPMI/.debug \
+    ${libdir}/perl5/vendor_perl/*/auto/OpenIPMI/.debug \
     ${PYTHON_SITEPACKAGES_DIR}/.debug \
     "
 
+RDEPENDS:${PN}-perl = "perl perl-module-base perl-module-dynaloader perl-module-exporter"
+
 do_configure () {
     # The release tarball lacks ChangeLog, which automake's gnu strictness requires
     touch ${S}/ChangeLog
@@ -83,7 +86,7 @@ do_configure () {
         echo "SAL: libdir = $libdir"
         sed -i -e "/^PERL_CFLAGS/s:-I/usr/local/include:-I${STAGING_INCDIR_NATIVE}:g" $i
         sed -i -e "/^PERL_CFLAGS/s:-I .* :-I ${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}/CORE :g" $i
-        sed -i -e "/^PERL_INSTALL_DIR/s:^PERL_INSTALL_DIR = .*:PERL_INSTALL_DIR = ${libdir}/perl/vendor_perl/$perl_ver:g" $i
+        sed -i -e "/^PERL_INSTALL_DIR/s:^PERL_INSTALL_DIR = .*:PERL_INSTALL_DIR = ${libdir}/perl5/vendor_perl/$perl_ver:g" $i
     done
 }
 
@@ -97,13 +100,7 @@ do_install:append () {
     install -m 0755 -d ${D}${sysconfdir}/sysconfig ${D}${sysconfdir}/init.d
     install -m 0755 ${S}/ipmi.init ${D}${sysconfdir}/init.d/ipmi
     install -m 0644 ${S}/ipmi.sysconf ${D}${sysconfdir}/sysconfig/ipmi
-    # SAL: mv: cannot stat `/localdisk/loadbuild/slittle1/workspace/cgts_test_build/bitbake_build/tmp/work/x86_64-wrs-linux/openipmi-2.0.19-r4/image/usr/lib64/perl5': No such file or directory
-    # SAL: real path to perl is /localdisk/loadbuild/slittle1/workspace/cgts_test_build/bitbake_build/tmp/work/x86_64-wrs-linux/perl-5.14.2-r8.3/package/usr/lib64/perl5 and it is a symlink to perl so no need to mv.
-    if [ -d ${D}${libdir}/perl5 ]
-    then
-        mv ${D}${libdir}/perl5 ${D}${libdir}/perl
-    fi
- 
+
     # for systemd
     install -d ${D}${systemd_unitdir}/system
     install -m 0664 ${UNPACKDIR}/ipmi.service ${D}${systemd_unitdir}/system
Signature · 1 line
2.47.3
author
#41 lore raw

PATCH v2 25/26 libio-compress-perl: add missing perl-module RDEPENDS

In reply to Tim Orling

IO::Uncompress::Base uses IO::File and Symbol, and Compress::Zlib uses IO::Handle. These only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates without them, so IO::Compress::*, IO::Uncompress::* and Compress::Zlib would fail to load. The zipdetails and streamzip scripts also use Data::Dumper, Getopt::Long and feature, which nothing in RDEPENDS pulls in either.

Found by the perl-rdeps QA check and by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libio/libio-compress-perl_2.225.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-perl/recipes-perl/libio/libio-compress-perl_2.225.bb +6 -0
index f8d2eec721..33e01ef01a 100644
@@ -36,6 +36,12 @@ RDEPENDS:${PN} += "\
     perl-module-utf8 \
     libcompress-raw-bzip2-perl \
     libcompress-raw-zlib-perl \
+    perl-module-data-dumper \
+    perl-module-feature \
+    perl-module-getopt-long \
+    perl-module-io-file \
+    perl-module-io-handle \
+    perl-module-symbol \
 "
 
 inherit update-alternatives
Signature · 1 line
2.47.3
author
#42 lore raw

PATCH v2 26/26 libio-compress-lzma-perl: add perl-module-io-file to RDEPENDS

In reply to Tim Orling

The IO::Compress and IO::Uncompress Lzma, Xz and Lzip modules use IO::File. It only came in indirectly through the perl-module RDEPENDS that "perl: generate perl-rdepends.txt with perl.req" in oe-core regenerates without it, so these modules would fail to load.

Found by loading each module on qemux86-64 with only the package and its RDEPENDS installed.

AI-Generated: Uses Claude Code (Claude Opus 5.5)

---
 meta-perl/recipes-perl/libio/libio-compress-lzma-perl_2.225.bb | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libio/libio-compress-lzma-perl_2.225.bb +1 -0
index 5721509797..110cafd3cb 100644
@@ -19,6 +19,7 @@ RDEPENDS:${PN} += "\
     perl-module-autoloader \
     libcompress-raw-lzma-perl \
     libio-compress-perl \
+    perl-module-io-file \
 "
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.47.3