[OE-core] [daisy][PATCH] libxml-parser-perl: remove rpath

João Henrique Ferreira de Freitas joaohf at gmail.com
Mon Aug 11 02:44:06 UTC 2014


When building for two MACHINES using the same TMPDIR, the last one
will claims about libxml-parser-perl contains bad RPATH.

This remove $expat_libpath from $libs.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf at gmail.com>
---
 .../perl/libxml-parser-perl-2.41/makefile_pl_rpath.patch   | 14 ++++++++++++++
 meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb      |  4 +++-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/perl/libxml-parser-perl-2.41/makefile_pl_rpath.patch

diff --git a/meta/recipes-devtools/perl/libxml-parser-perl-2.41/makefile_pl_rpath.patch b/meta/recipes-devtools/perl/libxml-parser-perl-2.41/makefile_pl_rpath.patch
new file mode 100644
index 0000000..9cae967
--- /dev/null
+++ b/meta/recipes-devtools/perl/libxml-parser-perl-2.41/makefile_pl_rpath.patch
@@ -0,0 +1,14 @@
+Upstream-Status: Inappropriate [embedded specific]
+
+Index: XML-Parser-2.41/Expat/Makefile.PL
+===================================================================
+--- XML-Parser-2.41.orig/Expat/Makefile.PL	2011-05-25 00:33:32.000000000 -0300
++++ XML-Parser-2.41/Expat/Makefile.PL	2014-07-20 18:28:39.074911980 -0300
+@@ -7,7 +7,6 @@
+ 
+ push(@extras, INC => "-I$expat_incpath") if $expat_incpath;
+ 
+-$libs = "-L$expat_libpath $libs" if $expat_libpath;
+ 
+ push(@extras, CAPI => 'TRUE')
+     if (($PERL_VERSION >= 5.005) and ($OSNAME eq 'MSWin32')
diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
index 43a8a84..19b47e5 100644
--- a/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
+++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
@@ -7,7 +7,9 @@ DEPENDS += "expat expat-native"
 
 PR = "r3"
 
-SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz"
+SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz \
+        file://makefile_pl_rpath.patch"
+
 SRC_URI[md5sum] = "c320d2ffa459e6cdc6f9f59c1185855e"
 SRC_URI[sha256sum] = "b48197cd2265a26c5f016489f11a7b450d8833cb8b3d6a46ee15975740894de9"
 
-- 
1.9.1




More information about the Openembedded-core mailing list