]> code.ossystems Code Review - openembedded-core.git/commitdiff
sdk: Install nativesdk locales for all TCLIBC variants
authorKhem Raj <raj.khem@gmail.com>
Thu, 26 Sep 2019 05:15:59 +0000 (22:15 -0700)
committerArmin Kuster <akuster808@gmail.com>
Tue, 10 Dec 2019 15:35:42 +0000 (07:35 -0800)
install_locales() here is actually operating on nativesdk and only glibc
is the default library for nativesdk, since thats what most of
desktop/server distros use, therefore bailing out based on TCLIBC is not
needed here, since nativesdk-glibc would be required for all non-glibc
targetting SDKs as well.

Fixes SDK install time error

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Your system needs to support the en_US.UTF-8 locale.
ERROR: SDK preparation failed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oe/sdk.py

index 153b07d76b40c19d86eb9ccfab844ce15d8e0716..ef81f8cf60b29ef0a5be877db2df363d9b01379c 100644 (file)
@@ -84,10 +84,6 @@ class Sdk(object, metaclass=ABCMeta):
             bb.warn("cannot remove SDK dir: %s" % path)
 
     def install_locales(self, pm):
-        # This is only relevant for glibc
-        if self.d.getVar("TCLIBC") != "glibc":
-            return
-
         linguas = self.d.getVar("SDKIMAGE_LINGUAS")
         if linguas:
             import fnmatch