Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] perl: Fix ptest failures
@ 2026-05-25  1:34 rong.fu.cn
  2026-05-26  9:34 ` [OE-core] " Mathieu Dubois-Briand
  2026-05-26 10:04 ` Alexander Kanavin
  0 siblings, 2 replies; 3+ messages in thread
From: rong.fu.cn @ 2026-05-25  1:34 UTC (permalink / raw)
  To: openembedded-core

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 --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() {
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] perl: Fix ptest failures
  2026-05-25  1:34 [PATCH] perl: Fix ptest failures rong.fu.cn
@ 2026-05-26  9:34 ` Mathieu Dubois-Briand
  2026-05-26 10:04 ` Alexander Kanavin
  1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Dubois-Briand @ 2026-05-26  9:34 UTC (permalink / raw)
  To: rong.fu.cn, openembedded-core

On Mon May 25, 2026 at 3:34 AM CEST, Rong Fu via lists.openembedded.org wrote:
> From: Jinfeng Wang <jinfeng.wang.cn@windriver.com>

Hi,

Thanks for your 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"

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

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] perl: Fix ptest failures
  2026-05-25  1:34 [PATCH] perl: Fix ptest failures rong.fu.cn
  2026-05-26  9:34 ` [OE-core] " Mathieu Dubois-Briand
@ 2026-05-26 10:04 ` Alexander Kanavin
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2026-05-26 10:04 UTC (permalink / raw)
  To: rong.fu.cn; +Cc: openembedded-core

On Mon, 25 May 2026 at 03:34, Rong Fu via lists.openembedded.org
<rong.fu.cn=windriver.com@lists.openembedded.org> wrote:
> 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?


> --- 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

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

Alex


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-26 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-25  1:34 [PATCH] perl: Fix ptest failures rong.fu.cn
2026-05-26  9:34 ` [OE-core] " Mathieu Dubois-Briand
2026-05-26 10:04 ` Alexander Kanavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox