[oe-commits] [openembedded-core] 22/22: cpan.bbclass: make RPATH fix more general

git at git.openembedded.org git at git.openembedded.org
Tue Aug 28 09:32:51 UTC 2018


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

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

commit a5439ff9627d309f6980947f5ee573d85e672228
Author: Jens Rehsack <sno at netbsd.org>
AuthorDate: Mon Aug 27 15:20:15 2018 +0200

    cpan.bbclass: make RPATH fix more general
    
    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 at netbsd.org>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/cpan.bbclass                             | 10 ++++++++++
 meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb |  7 -------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
index 926c635..a5bc301 100644
--- a/meta/classes/cpan.bbclass
+++ b/meta/classes/cpan.bbclass
@@ -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}"
 }
diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
index 194ed6a..95af4d1 100644
--- a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
+++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
@@ -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
 }
 

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


More information about the Openembedded-commits mailing list