Skip to contentSkip to conversation

libxml-parser-perl remove rpath

PATCH New João Henrique Ferreira de Freitas 1 participant 2 messages Aug 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxml-parser-perl remove rpath

Test case to run without patch:

1) add meta-intel and meta-crownbay layers
2) build MACHINE=qemux86 bitbake libxml-parser-perl
3) build MACHINE=genericx86 bitbake libxml-parser-perl
4) build MACHINE=crownbay-noemgd bitbake libxml-parser-perl

The step 4 wont complete because rpath issues.

To get it work:

MACHINE=crownbay-noemgd bitbake libxml-parser-perl perl -c cleanssate

Then

MACHINE=crownbay-noemgd bitbake libxml-parser-perl

Master branch seems not be affected by this behaviour

João Henrique Ferreira de Freitas (1):
libxml-parser-perl: remove rpath

 .../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
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 libxml-parser-perl: remove rpath

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.

---
 .../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
meta/recipes-devtools/perl/libxml-parser-perl-2.41/makefile_pl_rpath.patch new file +14 -0
new file mode 100644
index 0000000..9cae967
@@ -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')
meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb +3 -1
index 43a8a84..19b47e5 100644
@@ -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"
 
Signature · 1 line
1.9.1