<br><br>On Wednesday, June 27, 2012, Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br>&gt; On Tue, 2012-06-26 at 23:09 -0700, Khem Raj wrote:<br>&gt;&gt; USE_NLS is generally defined for uclibc based system builds<br>
&gt;&gt; and generally its defined to &#39;no&#39; there. However this variable<br>&gt;&gt; does not exist at all for eglibc/glibc distributions. This<br>&gt;&gt; patch adds a weak definition to &#39;yes&#39; on eglibc based system<br>
&gt;&gt; builds. This will ease out some of the cryptic contructs we<br>&gt;&gt; have to define certain options based on USE_NLS and also<br>&gt;&gt; checking got uclibc at the same time to avoid pythong exceptions<br>&gt;&gt; when its not defined.<br>
&gt;&gt;<br>&gt;&gt; Signed-off-by: Khem Raj &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt;<br>&gt;&gt; ---<br>&gt;&gt;  meta/conf/distro/include/tclibc-eglibc.inc |    2 ++<br>&gt;&gt;  1 file changed, 2 insertions(+)<br>
&gt;&gt;<br>&gt;&gt; diff --git a/meta/conf/distro/include/tclibc-eglibc.inc b/meta/conf/distro/include/tclibc-eglibc.inc<br>&gt;&gt; index 4f5607f..e2ca4e8 100644<br>&gt;&gt; --- a/meta/conf/distro/include/tclibc-eglibc.inc<br>
&gt;&gt; +++ b/meta/conf/distro/include/tclibc-eglibc.inc<br>&gt;&gt; @@ -32,6 +32,8 @@ LIBC_LOCALE_DEPENDENCIES = &quot;\<br>&gt;&gt;       eglibc-gconv-iso8859-1 \<br>&gt;&gt;       eglibc-gconv-iso8859-15&quot;<br>&gt;&gt;<br>
&gt;&gt; +USE_NLS ?= &quot;yes&quot;<br>&gt;&gt; +<br>&gt;&gt;  def get_libc_locales_dependencies(d):<br>&gt;&gt;      if &#39;libc-locales&#39; in (d.getVar(&#39;DISTRO_FEATURES&#39;, True) or &#39;&#39;).split() :<br>&gt;&gt;          return d.getVar(&#39;LIBC_LOCALE_DEPENDENCIES&#39;, True) or &#39;&#39;<br>
&gt;<br>&gt; Shouldn&#39;t this go as a weak default in bitbake.conf?<br>&gt;<br>&gt; USE_NLS ??= &quot;yes&quot;<br>&gt;<br><br>I think that would be better I will try that out and update <br><br>&gt; Cheers,<br>&gt;<br>
&gt; Richard<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Openembedded-core mailing list<br>&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>&gt;