From: Dmitry Baryshkov Date: Fri, 11 Dec 2020 14:28:18 +0000 (+0300) Subject: perl: fix installation failure because of shell issue X-Git-Tag: 2020-04.5-dunfell~34 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=92cd97616f68dfd2fea2ad039c892d3faf1a0f32;p=openembedded-core.git perl: fix installation failure because of shell issue On one of my buildservers I noticed perl do_install failing with the following message: | rm: cannot remove '/tmp-rpb-glibc/work/armv8-2a-linaro-linux/perl/5.32.0-r0/image//usr/lib/perl5/5.32.0/*/CORE/libperl.so': No such file or directory I tracked this down to shell being dash rather than bash not being able to expand this glob in the middle of the filename. So replace the glob expansion with the simpler one which works in all cases. Signed-off-by: Dmitry Baryshkov Signed-off-by: Richard Purdie (cherry picked from commit d1ea1b5c12120abdd085dc4eb69120af9258a99b) Signed-off-by: Steve Sakoman --- diff --git a/meta/recipes-devtools/perl/perl_5.30.1.bb b/meta/recipes-devtools/perl/perl_5.30.1.bb index b53aff1216..ee6eb6ef0f 100644 --- a/meta/recipes-devtools/perl/perl_5.30.1.bb +++ b/meta/recipes-devtools/perl/perl_5.30.1.bb @@ -146,8 +146,9 @@ do_install() { install lib/ExtUtils/typemap ${D}${libdir}/perl5/${PV}/ExtUtils/ # Fix up shared library - rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so - ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo ${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so + dir=$(echo ${D}/${libdir}/perl5/${PV}/*/CORE) + rm $dir/libperl.so + ln -sf ../../../../libperl.so.${PERL_LIB_VER} $dir/libperl.so } do_install_append_class-target() {