diff mbox series

[3/4] sdk: only install locales if we're using glibc

Message ID 20180305110158.10308-3-ross.burton@intel.com
State Accepted
Commit 8fc80734053645fa893694dfe33ddaee99aa9a1a
Headers show
Series [1/4] xcb-proto: solve python cache colliion | expand

Commit Message

Ross Burton March 5, 2018, 11:01 a.m. UTC
Using glibc-locale to install locales only makes sense if we're using glibc.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/lib/oe/sdk.py | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.11.0

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

Patch

diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index 76fe02c37b2..6cd4115202f 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -130,6 +130,10 @@  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