* mklibs patches: fix mklibs on powerpc, use correct ld.so
@ 2013-12-08 12:55 Stefan Seyfried
2013-12-09 10:16 ` Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Seyfried @ 2013-12-08 12:55 UTC (permalink / raw)
To: poky
[-- Attachment #1: Type: text/plain, Size: 659 bytes --]
Hi all,
image-mklibs.bbclass was only looking for LSB binaries, which does not
bode well with powerpc
mklibs script is searching for ld.so in /lib instead of sysroot, which
also did not work well for me (powerpc has /lib/ld.so.1 and my x86_64
host has something completely different, and even if it was there it
would be the wrong one).
Patches attached to avoid mangling in thunderbird.
Best regards,
Stefan
--
Stefan Seyfried
Linux Consultant & Developer -- GPG Key: 0x731B665B
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
[-- Attachment #2: 0001-mklibs-add-patch-to-use-the-ld.so-from-sysroot.patch --]
[-- Type: text/x-patch, Size: 2172 bytes --]
From b5acb1ead4a6e90dee6d3140dc302f143101893c Mon Sep 17 00:00:00 2001
From: Stefan Seyfried <seife+dev@b1-systems.com>
Date: Thu, 5 Dec 2013 10:48:08 +0100
Subject: [PATCH 1/2] mklibs: add patch to use the ld.so from sysroot
mklibs was looking for ld.so in the system, which is wrong. Look in
sysroot instead.
Signed-off-by: Stefan Seyfried <seife+dev@b1-systems.com>
---
.../mklibs/files/fix_linker_location.patch | 17 +++++++++++++++++
meta/recipes-devtools/mklibs/mklibs-native_0.1.38.bb | 1 +
2 files changed, 18 insertions(+)
create mode 100644 meta/recipes-devtools/mklibs/files/fix_linker_location.patch
diff --git a/meta/recipes-devtools/mklibs/files/fix_linker_location.patch b/meta/recipes-devtools/mklibs/files/fix_linker_location.patch
new file mode 100644
index 0000000..ca137ff
--- /dev/null
+++ b/meta/recipes-devtools/mklibs/files/fix_linker_location.patch
@@ -0,0 +1,17 @@
+Index: b/src/mklibs
+===================================================================
+--- a/src/mklibs
++++ b/src/mklibs
+@@ -493,11 +493,11 @@ while 1:
+
+ # calculate what symbols are present in small_libs and available_libs
+ present_symbols = {}
+ checked_libs = small_libs
+ checked_libs.extend(available_libs)
+- checked_libs.append(ldlib)
++ checked_libs.append(sysroot + ldlib)
+ for lib in checked_libs:
+ for symbol in provided_symbols(lib):
+ debug(DEBUG_SPAM, "present_symbols adding %s" % symbol)
+ names = symbol.base_names()
+ for name in names:
diff --git a/meta/recipes-devtools/mklibs/mklibs-native_0.1.38.bb b/meta/recipes-devtools/mklibs/mklibs-native_0.1.38.bb
index e424052..fc4109f 100644
--- a/meta/recipes-devtools/mklibs/mklibs-native_0.1.38.bb
+++ b/meta/recipes-devtools/mklibs/mklibs-native_0.1.38.bb
@@ -8,6 +8,7 @@ DEPENDS = "python-native"
SRC_URI = "http://ftp.de.debian.org/debian/pool/main/m/mklibs/${BPN}_${PV}.tar.gz \
file://ac_init_fix.patch\
file://fix_STT_GNU_IFUNC.patch\
+ file://fix_linker_location.patch \
"
SRC_URI[md5sum] = "e597b01548204874feef396403615d9f"
--
1.8.4.4
[-- Attachment #3: 0002-image-mklibs-also-allow-LSB-binaries-powerpc.patch --]
[-- Type: text/x-patch, Size: 906 bytes --]
From 9cb07c1d3a9ed3a9bb3a4a1e06945fa03f72424a Mon Sep 17 00:00:00 2001
From: Stefan Seyfried <seife+dev@b1-systems.com>
Date: Thu, 5 Dec 2013 11:08:28 +0100
Subject: [PATCH 2/2] image-mklibs: also allow LSB binaries (powerpc...)
Signed-off-by: Stefan Seyfried <seife+dev@b1-systems.com>
---
meta/classes/image-mklibs.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass
index 66b0f52..c80293e 100644
--- a/meta/classes/image-mklibs.bbclass
+++ b/meta/classes/image-mklibs.bbclass
@@ -9,7 +9,7 @@ mklibs_optimize_image_doit() {
du -bs > ${WORKDIR}/mklibs/du.before.mklibs.txt
for i in `find .`; do file $i; done \
| grep ELF \
- | grep "LSB *executable" \
+ | grep "[LM]SB *executable" \
| grep "dynamically linked" \
| sed "s/:.*//" \
| sed "s+^\./++" \
--
1.8.4.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: mklibs patches: fix mklibs on powerpc, use correct ld.so
2013-12-08 12:55 mklibs patches: fix mklibs on powerpc, use correct ld.so Stefan Seyfried
@ 2013-12-09 10:16 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2013-12-09 10:16 UTC (permalink / raw)
To: Stefan Seyfried; +Cc: poky
Hi Stefan,
On Sunday 08 December 2013 13:55:47 Stefan Seyfried wrote:
> image-mklibs.bbclass was only looking for LSB binaries, which does not
> bode well with powerpc
>
> mklibs script is searching for ld.so in /lib instead of sysroot, which
> also did not work well for me (powerpc has /lib/ld.so.1 and my x86_64
> host has something completely different, and even if it was there it
> would be the wrong one).
Poky tracks OpenEmbedded-Core (OE-Core), so these patches need to be sent
there:
http://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
Thanks,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-09 10:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-08 12:55 mklibs patches: fix mklibs on powerpc, use correct ld.so Stefan Seyfried
2013-12-09 10:16 ` Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.