]> code.ossystems Code Review - openembedded-core.git/commitdiff
tclibc-eglibc.inc: make locale packages dependency conditional
authorNitin A Kamble <nitin.a.kamble@intel.com>
Wed, 11 Apr 2012 01:33:46 +0000 (18:33 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Apr 2012 11:12:24 +0000 (12:12 +0100)
Only add locale package dependencies if the eglibc is configured
with locale support.
  This avoids dependencies issues for distros such as poky-tiny

[RP: Add PR bump]
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/tclibc-eglibc.inc
meta/recipes-core/tasks/task-core-standalone-sdk-target.bb

index 8b8a21413251779db318708069d69257fbe482e3..aed82d18703c425819ff127ffc905010a222570f 100644 (file)
@@ -23,10 +23,19 @@ LIBC_DEPENDENCIES = "libsegfault \
                     eglibc-dev \
                     eglibc-utils \
                     eglibc-thread-db \
-                    eglibc-localedata-i18n \
-                    eglibc-gconv-ibm850 \
-                    eglibc-gconv-cp1252 \
-                    eglibc-gconv-iso8859-1 \
-                    eglibc-gconv-iso8859-15 \
-                    locale-base-en-us \
-                    locale-base-en-gb "
+                    ${@get_libc_locales_dependencies(d)}"
+
+LIBC_LOCALE_DEPENDENCIES = "\
+       eglibc-localedata-i18n \
+       eglibc-gconv-ibm850 \
+       eglibc-gconv-cp1252 \
+       eglibc-gconv-iso8859-1 \
+       eglibc-gconv-iso8859-15 \
+       locale-base-en-us \
+       locale-base-en-gb"
+
+def get_libc_locales_dependencies(d):
+    if 'libc-locales' in (d.getVar('DISTRO_FEATURES', True) or '').split() :
+        return d.getVar('LIBC_LOCALE_DEPENDENCIES', True) or ''
+    else:
+        return ''
index 3835ac7d6ae6d53533172f56edf583d206e7d135..03628a167dbeae421801b8a7f679dcedfb08fe78 100644 (file)
@@ -1,5 +1,5 @@
 DESCRIPTION = "Target packages for the standalone SDK"
-PR = "r6"
+PR = "r7"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"