Patchwork cross-canadian.bbclass: add native chrpath dependency

login
register
mail settings
Submitter Laurentiu Palcu
Date Oct. 5, 2012, 10:22 a.m.
Message ID <1349432547-23974-1-git-send-email-laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/37807/
State Accepted
Commit 7d68b952cb5db999b1e0e0c9ab6934da52cb6436
Headers show

Comments

Laurentiu Palcu - Oct. 5, 2012, 10:22 a.m.
In order for the RPATHs in 32bit toolchain binaries to be relocated
properly, chrpath >=0.14 is needed.

[YOCTO #3161]
[YOCTO #3201]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 meta/classes/cross-canadian.bbclass |    7 +++++++
 1 file changed, 7 insertions(+)
Richard Purdie - Oct. 5, 2012, 11:25 a.m.
On Fri, 2012-10-05 at 13:22 +0300, Laurentiu Palcu wrote:
> In order for the RPATHs in 32bit toolchain binaries to be relocated
> properly, chrpath >=0.14 is needed.
> 
> [YOCTO #3161]
> [YOCTO #3201]
> 
> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
> ---
>  meta/classes/cross-canadian.bbclass |    7 +++++++
>  1 file changed, 7 insertions(+)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
index aec7301..47fb0ab 100644
--- a/meta/classes/cross-canadian.bbclass
+++ b/meta/classes/cross-canadian.bbclass
@@ -54,6 +54,13 @@  LDFLAGS = "${BUILDSDK_LDFLAGS} \
 
 DEPENDS_GETTEXT = "gettext-native nativesdk-gettext"
 
+#
+# We need chrpath >= 0.14 to ensure we can deal with 32 and 64 bit
+# binaries
+#
+DEPENDS_append = " chrpath-replacement-native"
+EXTRANATIVEPATH += "chrpath-native"
+
 # Path mangling needed by the cross packaging
 # Note that we use := here to ensure that libdir and includedir are
 # target paths.