[oe-commits] [openembedded-core] 10/12: perl: Don't use TARGET_ARCH in filepaths

git at git.openembedded.org git at git.openembedded.org
Wed Apr 3 13:51:19 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 6eadd9f5ac2887311ae9ed133b389ae4d64a8181
Author: William A. Kennington III via Openembedded-core <openembedded-core at lists.openembedded.org>
AuthorDate: Tue Apr 2 14:53:47 2019 -0700

    perl: Don't use TARGET_ARCH in filepaths
    
    Platforms like powerpc64le have different variants of the same target.
    Perl guesses that the target should be called powerpc64le-linux, while
    TARGET_ARCH think it is called ppc64le-linux. If we use TARGET_ARCH
    for perl-native on powerpc64le this build will fail since the
    post-install rm command won't reference and existing file.
    
    We know that there is only one arch existing per build, so use a
    wildcard for finding the path instead of trying to guess the correct
    architecture name.
    
    Signed-off-by: William A. Kennington III <wak at google.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/perl-sanity/perl_5.28.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/perl-sanity/perl_5.28.1.bb b/meta/recipes-devtools/perl-sanity/perl_5.28.1.bb
index 5aa7cd3..f3948a5 100644
--- a/meta/recipes-devtools/perl-sanity/perl_5.28.1.bb
+++ b/meta/recipes-devtools/perl-sanity/perl_5.28.1.bb
@@ -107,8 +107,8 @@ do_install() {
     install lib/ExtUtils/typemap ${D}${libdir}/perl5/${PV}/ExtUtils/
 
     # Fix up shared library
-    rm ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so
-    ln -sf ../../../../libperl.so.${PERL_LIB_VER} ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so
+    rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so
+    ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo ${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so
 }
 
 do_install_append_class-target() {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list