Skip to contentSkip to conversation

perl: Fix ptest failures

PATCH In review [email protected] 3 participants 3 messages May 25 – May 26

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: Fix ptest failures

From: Jinfeng Wang <[email protected]>

Fix ptest failures:
/usr/lib64/perl/ptest/perl_langinfo.h:8:10: fatal error: xconfig.h: No such filey
8 | #include "xconfig.h"
| ^~~~~~~~~~~
compilation terminated.

../../../../reentr.h:124:16: fatal error: crypt.h: No such file or directory
124 | # include <crypt.h>

      |                ^~~~~~~~~

compilation terminated.

---
 meta/recipes-devtools/perl/perl-ptest.inc | 3 ++-
 meta/recipes-devtools/perl/perl_5.42.0.bb | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/perl/perl-ptest.inc +2 -1
index 4b4756118c..b33800ba54 100644
@@ -59,7 +59,8 @@ python populate_packages:prepend() {
             '${PN}-ptest%s', '%s', recursive=True, match_path=True)
 }
 
-RDEPENDS:${PN}-ptest += "${PN}-modules ${PN}-doc sed procps-ps"
+RDEPENDS:${PN}-ptest += "${PN}-modules ${PN}-doc sed procps-ps libxcrypt-dev"
+INSANE_SKIP:${PN}-ptest = "dev-deps"
 
 # The perl-ptest package contains Perl internal modules and generating file
 # dependencies for it causes problems.
meta/recipes-devtools/perl/perl_5.42.0.bb +1 -0
index cf28067bab..f61978a3de 100644
@@ -104,6 +104,7 @@ do_configure:class-target() {
     #the others in config.sh).
 
     sed -i -e "s,${STAGING_LIBDIR},${libdir},g" config.h
+    sed -i '/^#define.*USE_CROSS_/d' config.h
 }
 
 do_configure:class-nativesdk() {
Signature · 1 line
2.43.0
#1 lore raw
Quoted 1 line · Rong Fu via lists.openembedded.org

From: Jinfeng Wang <[email protected]>

Hi,

Thanks for your patch.

meta/recipes-devtools/perl/perl-ptest.inc python populate_packages:prepend() { · line 62

Quoted 11 lines
meta/recipes-devtools/perl/perl-ptest.inc +1 -1
index 4b4756118c..b33800ba54 100644
@@ -59,7 +59,8 @@ python populate_packages:prepend() {
             '${PN}-ptest%s', '%s', recursive=True, match_path=True)
 }
 
-RDEPENDS:${PN}-ptest += "${PN}-modules ${PN}-doc sed procps-ps"
+RDEPENDS:${PN}-ptest += "${PN}-modules ${PN}-doc sed procps-ps libxcrypt-dev"

It looks like this is failing with musl:

ERROR: Nothing RPROVIDES 'libxcrypt-dev' (but /srv/pokybuild/yocto-worker/musl-qemuarm64/build/layers/openembedded-core/meta/recipes-devtools/perl/perl_5.42.0.bb RDEPENDS on or otherwise requires it) libxcrypt RPROVIDES libxcrypt-dev but was skipped: PREFERRED_PROVIDER_virtual/crypt set to musl, not libxcrypt

https://autobuilder.yoctoproject.org/valkyrie/#/builders/111/builds/2537
https://autobuilder.yoctoproject.org/valkyrie/#/builders/6/builds/3831
https://autobuilder.yoctoproject.org/valkyrie/#/builders/3/builds/3868

Can you have a look at the issue?

Thanks,
Mathieu

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
In reply to [email protected]
Quoted 10 lines · Rong Fu via lists.openembedded.org

Fix ptest failures:
/usr/lib64/perl/ptest/perl_langinfo.h:8:10: fatal error: xconfig.h: No such filey
8 | #include "xconfig.h"
| ^~~~~~~~~~~
compilation terminated.

../../../../reentr.h:124:16: fatal error: crypt.h: No such file or directory
124 | # include <crypt.h>

      |                ^~~~~~~~~

compilation terminated.

Can you please explain how to reproduce and observe the issue? We do run perl ptests on the autobuilder and they do not fail like this. Is something enabled in your build that standard poky doesn't enable?

meta/recipes-devtools/perl/perl_5.42.0.bb do_configure:class-target() { · line 107

Quoted 7 lines
meta/recipes-devtools/perl/perl_5.42.0.bb +1 -0
@@ -104,6 +104,7 @@ do_configure:class-target() {
     #the others in config.sh).
 
     sed -i -e "s,${STAGING_LIBDIR},${libdir},g" config.h
+    sed -i '/^#define.*USE_CROSS_/d' config.h

This also needs to be explained. Why is this necessary? What does it do? Does it affect perl build in general, and how?

Alex