| Message ID | 20250515165010.242349-3-rajendra.desai@emerson.com |
|---|---|
| State | New |
| Headers | show |
| Series | perl-ptest: fix 5 of the ExtUtils ptests | expand |
On Thu May 15, 2025 at 6:50 PM CEST, Rajendra Desai via lists.openembedded.org wrote: > The following perl ptests: > > dist/ExtUtils-ParseXS/t/001-basic > dist/ExtUtils-ParseXS/t/002-more > dist/ExtUtils-ParseXS/t/003-usage > cpan/ExtUtils-Constant/t/Constant > cpan/ExtUtils-MakeMaker/t/02-xsdynamic > > are erroring out with: > In file included from /usr/lib/perl/ptest/op.h:700, > from /usr/lib/perl/ptest/perl.h:4553, > from XSUsage.xs:2: > /usr/lib/perl/ptest/reentr.h:126:16: fatal error: crypt.h: No such file or directory > 126 | # include <crypt.h> > | ^~~~~~~~~ > compilation terminated. > error building XSUsage.o from 'XSUsage.c' at /usr/lib/perl/ptest/dist/ExtUtils-ParseXS/../../lib/ExtUtils/CBuilder/Base.pm line 185. > > This is because the tests require crypt.h file which is provided > by the libxcrypt-dev package. Hence, adding the package under > RRECOMMENDS to make sure the tests are able to find the required > header file and not fail with the above error. > > Signed-off-by: Rajendra Desai <rajendra.desai@emerson.com> > --- Hi Rajendra, Thanks for your patch. I believe this is breaking builds, at least the musl ones: ERROR: Nothing RPROVIDES 'libxcrypt-dev' (but /srv/pokybuild/yocto-worker/musl-qemux86-64/build/meta/recipes-devtools/perl/perl_5.40.2.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/3/builds/1679 https://autobuilder.yoctoproject.org/valkyrie/#/builders/6/builds/1649 Can you have a look at this failure please?
diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc index 817ad401f4..3eab5e25e9 100644 --- a/meta/recipes-devtools/perl/perl-ptest.inc +++ b/meta/recipes-devtools/perl/perl-ptest.inc @@ -60,7 +60,7 @@ python populate_packages:prepend() { } RDEPENDS:${PN}-ptest += "${PN}-modules ${PN}-doc sed procps-ps" -RRECOMMENDS:${PN}-ptest += "gcc" +RRECOMMENDS:${PN}-ptest += "gcc libxcrypt-dev" # The perl-ptest package contains Perl internal modules and generating file # dependencies for it causes problems.
The following perl ptests: dist/ExtUtils-ParseXS/t/001-basic dist/ExtUtils-ParseXS/t/002-more dist/ExtUtils-ParseXS/t/003-usage cpan/ExtUtils-Constant/t/Constant cpan/ExtUtils-MakeMaker/t/02-xsdynamic are erroring out with: In file included from /usr/lib/perl/ptest/op.h:700, from /usr/lib/perl/ptest/perl.h:4553, from XSUsage.xs:2: /usr/lib/perl/ptest/reentr.h:126:16: fatal error: crypt.h: No such file or directory 126 | # include <crypt.h> | ^~~~~~~~~ compilation terminated. error building XSUsage.o from 'XSUsage.c' at /usr/lib/perl/ptest/dist/ExtUtils-ParseXS/../../lib/ExtUtils/CBuilder/Base.pm line 185. This is because the tests require crypt.h file which is provided by the libxcrypt-dev package. Hence, adding the package under RRECOMMENDS to make sure the tests are able to find the required header file and not fail with the above error. Signed-off-by: Rajendra Desai <rajendra.desai@emerson.com> --- meta/recipes-devtools/perl/perl-ptest.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)