[OE-core] [PATCH 2/7] tclibc-eglibc.inc: Define USE_NLS

Khem Raj raj.khem at gmail.com
Thu Jun 28 17:09:36 UTC 2012


On Wednesday, June 27, 2012, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:
> On Tue, 2012-06-26 at 23:09 -0700, Khem Raj wrote:
>> USE_NLS is generally defined for uclibc based system builds
>> and generally its defined to 'no' there. However this variable
>> does not exist at all for eglibc/glibc distributions. This
>> patch adds a weak definition to 'yes' on eglibc based system
>> builds. This will ease out some of the cryptic contructs we
>> have to define certain options based on USE_NLS and also
>> checking got uclibc at the same time to avoid pythong exceptions
>> when its not defined.
>>
>> Signed-off-by: Khem Raj <raj.khem at gmail.com>
>> ---
>>  meta/conf/distro/include/tclibc-eglibc.inc |    2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/meta/conf/distro/include/tclibc-eglibc.inc
b/meta/conf/distro/include/tclibc-eglibc.inc
>> index 4f5607f..e2ca4e8 100644
>> --- a/meta/conf/distro/include/tclibc-eglibc.inc
>> +++ b/meta/conf/distro/include/tclibc-eglibc.inc
>> @@ -32,6 +32,8 @@ LIBC_LOCALE_DEPENDENCIES = "\
>>       eglibc-gconv-iso8859-1 \
>>       eglibc-gconv-iso8859-15"
>>
>> +USE_NLS ?= "yes"
>> +
>>  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 ''
>
> Shouldn't this go as a weak default in bitbake.conf?
>
> USE_NLS ??= "yes"
>

I think that would be better I will try that out and update

> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120628/6e28b756/attachment-0002.html>


More information about the Openembedded-core mailing list