]> code.ossystems Code Review - openembedded-core.git/commit
glibc-package.inc: disable build-time locale generation for nativesdk
authorKevin Tian <kevin.tian@intel.com>
Fri, 3 Sep 2010 06:29:17 +0000 (14:29 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 3 Sep 2010 08:30:26 +0000 (09:30 +0100)
commit9f60a6fbfb93f17a9146f93380f9a3775fe48f4d
tree80da77425b67abffe2d6a8771e373dffc0592726
parent3d7431b71b3308c917ba886d213277874c2610b0
glibc-package.inc: disable build-time locale generation for nativesdk

The idea of build-time locale generation is documented in glibc-package.inc:

    Binary locales are generated at build time if ENABLE_BINARY_LOCALE_GENERATION
    is set. The idea is to avoid running localedef on the target (at first boot)
    to decrease initial boot time and avoid localedef being killed by the OOM
    killer which used to effectively break i18n on machines with < 128MB RAM.

However it doesn't make sense to do same thing for glibc-nativesdk, as the
build system is powerful. More importantly is that ideally host_arch running
sdk may even be out of the support list of target_arch by qemu-native.

Regarding to above rationale, this commit disables build time locale
generation to avoid following error when asking qemu to run localdef:

NOTE: /opt/poky/sysroots/i586-pokysdk-linux/lib/ld-linux.so.2: No such file or directory

nativesdk binaris have opt path hardcoded to avoid mess with host bits, which
is another reason that build time locale generation is not feasible here.

This fixes [BUGID #264]

also add 'nativesdk' to eglibc per RP's suggestion

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
meta/recipes-core/eglibc/eglibc-package.inc
meta/recipes-core/eglibc/eglibc_2.12.bb
meta/recipes-core/glibc/glibc-package.inc
meta/recipes-core/glibc/glibc_2.10.1.bb