On 12/03/2014 04:40 AM, Andreas Müller wrote:
I have a native recipe around which directly compiles/links against libintl.
Gettext contains this code (usually supplied by glibc) as fallback. In native
case this code is used by default because we don't have glibc there. This patch
changes static linking into dynamic linking making libintl code shareable.

Signed-off-by: Andreas Müller <schnitzelt...@googlemail.com>
---
  meta/recipes-core/gettext/gettext_0.18.3.2.bb | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/gettext/gettext_0.18.3.2.bb 
b/meta/recipes-core/gettext/gettext_0.18.3.2.bb
index 65d4103..98838d7 100644
--- a/meta/recipes-core/gettext/gettext_0.18.3.2.bb
+++ b/meta/recipes-core/gettext/gettext_0.18.3.2.bb
@@ -39,6 +39,9 @@ EXTRA_OECONF += "--without-lispdir \
                   --with-included-libunistring \
                  "

+# we have no glib intl
+EXTRA_OECONF_append_class-native = "--with-included-gettext --enable-shared"
+

This patch might be causing problems in other places, we had a recent failure on the Autobuilder:

| Building program 
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work/x86_64-linux/apt-native/0.9.9.4-r0/build/bin/methods/mirror
| /usr/bin/ld: 
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work/x86_64-linux/apt-native/0.9.9.4-r0/build/obj/methods/mirror.o:
 undefined reference to symbol 'libintl_dgettext'
| /usr/bin/ld: note: 'libintl_dgettext' is defined in DSO 
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/sysroots/x86_64-linux/usr/lib/libintl.so.8
 so try adding it to the linker command line
| 
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/sysroots/x86_64-linux/usr/lib/libintl.so.8:
 could not read symbols: Invalid operation
| collect2: error: ld returned 1 exit status
| make[2]: *** 
[/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work/x86_64-linux/apt-native/0.9.9.4-r0/build/bin/methods/mirror]
 Error 1
| make[1]: *** [all] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at 
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work/x86_64-linux/apt-native/0.9.9.4-r0/temp/log.do_compile.12994)
NOTE: recipe apt-native-0.9.9.4-r0: task do_compile: Failed

Since gettext affects alot of other projects, can you try a world build to ensure there is not other issues with this change. Or check at least check more native recipes.

Thanks

Sau!
  acpaths = '-I ${S}/gettext-runtime/m4 \
             -I ${S}/gettext-tools/m4'


--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to