Message ID | 20250515165010.242349-3-rajendra.desai@emerson.com |
---|---|
State | New |
Headers | show |
Series | perl-ptest: fix 5 of the ExtUtils ptests | expand |
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(-)