From patchwork Tue Jun 21 14:04:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Using TCLIBC = "uclibc" in oe-core Date: Tue, 21 Jun 2011 14:04:19 -0000 From: Tom Parkin X-Patchwork-Id: 6177 Message-Id: <20110621140419.GA8589@raven.pace.internal> To: openembedded-core@lists.openembedded.org Hi list, I'm trying to set up a working openembedded-core/uClibc mipsel environment. I found that setting TCLIBC = "uclibc" in local.conf yielded the following: ERROR: Nothing PROVIDES 'glib-2.0-native' I traced this down to code in meta/recipes-core/glib-2.0/glib-2.0.inc, which raises a SkipPackage exception if USE_NLS = "no". The reason that USE_NLS = "no" in this case is that meta/conf/distro/include/tclibc-uclibc.inc sets USE_NLS ?= "no". Looking further at tclibc-uclibc.inc, though, it appears that there is some code attempting to work around this issue: USE_NLS_glib-2.0 = "yes" Sadly, this appears to get ignored. Following this up on the #yocto IRC channel, it seems that a more appropriate formulation of the above would be: USE_NLS_pn-glib-2.0-native = "yes" The attached patch allows me to (at least) assemble the bitbake task list when TCLIBC = "uclibc". I'm not sure whether this is the correct approach, though. Any comments? Many thanks, Tom diff --git a/meta/conf/distro/include/tclibc-uclibc.inc b/meta/conf/distro/include/tclibc-uclibc.inc index c421f5e..408966b 100644 --- a/meta/conf/distro/include/tclibc-uclibc.inc +++ b/meta/conf/distro/include/tclibc-uclibc.inc @@ -14,7 +14,7 @@ PREFERRED_PROVIDER_virtual/libiconv ?= "libiconv" PREFERRED_PROVIDER_virtual/libintl ?= "gettext" USE_NLS ?= "no" -USE_NLS_glib-2.0 = "yes" +USE_NLS_pn-glib-2.0-native = "yes" CXXFLAGS += "-fvisibility-inlines-hidden"