]> code.ossystems Code Review - openembedded-core.git/commitdiff
cpan.bbclass: make RPATH fix more general
authorJens Rehsack <sno@netbsd.org>
Mon, 27 Aug 2018 13:20:15 +0000 (15:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Aug 2018 09:27:15 +0000 (10:27 +0100)
Extract a general version of RPATH fix for libxml-parser-perl_2.44.bb
from
  292471701 libxml-parser-perl: fix "...contains bad RPATH"
into cpan.bbclass to catch most errors reported by Khem Raj via
  http://errors.yoctoproject.org/Errors/Build/66538/

Genrally, Perl 5 toolchain deals with cross-compile sysroots
as if a dependency is installed at an exostic place on a server.
This issue needs to be addressed wider into the community.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cpan.bbclass
meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb

index 926c6358a6372617378aff8df443b7df13404da0..a5bc301898dd9f8d1d296b3f9b9940c9309eef2f 100644 (file)
@@ -40,6 +40,16 @@ cpan_do_configure () {
        fi
 }
 
+do_configure_append_class-target() {
+       find . -name Makefile | xargs sed -E -i \
+           -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g'
+}
+
+do_configure_append_class-nativesdk() {
+       find . -name Makefile | xargs sed -E -i \
+           -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g'
+}
+
 cpan_do_compile () {
        oe_runmake PASTHRU_INC="${CFLAGS}" LD="${CCLD}"
 }
index 194ed6ac48cc40990b5eb45319d1bdec57209ce7..95af4d1de65fa682d34460a0a8d5688ea2a5e01d 100644 (file)
@@ -21,13 +21,6 @@ inherit cpan ptest-perl
 do_configure_append_class-target() {
        sed -E \
            -e 's:-L${STAGING_LIBDIR}::g' -e 's:-I${STAGING_INCDIR}::g' \
-           -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g' \
-           -i Makefile Expat/Makefile
-}
-
-do_configure_append_class-nativesdk() {
-       sed -E \
-           -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g' \
            -i Makefile Expat/Makefile
 }