diff mbox series

perl: Fix ptest failures

Message ID 20260525013402.3744277-1-rong.fu.cn@windriver.com
State New
Headers show
Series perl: Fix ptest failures | expand

Commit Message

Rong Fu May 25, 2026, 1:34 a.m. UTC
From: Jinfeng Wang <jinfeng.wang.cn@windriver.com>

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.

Signed-off-by: Jinfeng Wang <jinfeng.wang.cn@windriver.com>
Signed-off-by: Rong Fu <rong.fu.cn@windriver.com>
---
 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(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc
index 4b4756118c..b33800ba54 100644
--- a/meta/recipes-devtools/perl/perl-ptest.inc
+++ b/meta/recipes-devtools/perl/perl-ptest.inc
@@ -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.
diff --git a/meta/recipes-devtools/perl/perl_5.42.0.bb b/meta/recipes-devtools/perl/perl_5.42.0.bb
index cf28067bab..f61978a3de 100644
--- a/meta/recipes-devtools/perl/perl_5.42.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.42.0.bb
@@ -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() {