summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2020-12-11 17:28:18 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-04 11:45:47 +0000
commitf7e9bff5fc8b518f51fda439a66d80b303e2739e (patch)
tree39f98a1c641e1c43feaef82bc37a05b0a0f15063
parent5829cb869b3e7636bc400db6972695724ea80af2 (diff)
downloadpoky-f7e9bff5fc8b518f51fda439a66d80b303e2739e.tar.gz
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 '<OEROOT>/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. (From OE-Core rev: 784ca95f7e3a816be9c9782944fa49b896d58690) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d1ea1b5c12120abdd085dc4eb69120af9258a99b) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/perl/perl_5.32.0.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.32.0.bb b/meta/recipes-devtools/perl/perl_5.32.0.bb
index bba8263b90..3815dd44b1 100644
--- a/meta/recipes-devtools/perl/perl_5.32.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.32.0.bb
@@ -137,8 +137,9 @@ do_install() {
137 install lib/ExtUtils/typemap ${D}${libdir}/perl5/${PV}/ExtUtils/ 137 install lib/ExtUtils/typemap ${D}${libdir}/perl5/${PV}/ExtUtils/
138 138
139 # Fix up shared library 139 # Fix up shared library
140 rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so 140 dir=$(echo ${D}/${libdir}/perl5/${PV}/*/CORE)
141 ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo ${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so 141 rm $dir/libperl.so
142 ln -sf ../../../../libperl.so.${PERL_LIB_VER} $dir/libperl.so
142 143
143 # Try to catch Bug #13946 144 # Try to catch Bug #13946
144 if [ -e ${D}/${libdir}/perl5/${PV}/Storable.pm ]; then 145 if [ -e ${D}/${libdir}/perl5/${PV}/Storable.pm ]; then