Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 02/19] Make all package using gettext rely on BR2_NEEDS_GETTEXT
Date: Sat, 22 May 2010 00:11:49 +0200	[thread overview]
Message-ID: <20100522001149.2ef4a5bb@surf> (raw)
In-Reply-To: <87mxvtt4fe.fsf@macbook.be.48ers.dk>

On Fri, 21 May 2010 21:56:05 +0200
Peter Korsgaard <jacmet@uclibc.org> wrote:

> I unfortunately now get the following error when building with an
> internal toolchain and locales NOT enabled:
> 
> checking libintl.h usability... no
> checking libintl.h presence... no
> checking for libintl.h... no
> configure: error: 
> *** You must have either have gettext support in your C library, or
> use the *** GNU gettext library.
> (http://www.gnu.org/software/gettext/gettext.html
> 
> make: *** [/tmp/br/build/libglib2-2.22.5/.stamp_configured] Error 1
> 
> Seems like we need to make libglib2 depend on locale support?

I can reproduce the same problem (strange because I thought I tested
this case, but anyway).

So we have two cases :

 * Packages like Avahi. They understand --disable-nls and therefore
   when locale support is not enabled, they don't need gettext.

 * Packages like libglib2. They don't understand --disable-nls, so even
   when locale is not enabled, they need gettext. libglib2 builds
   fine in the previous situation, where BR2_NEEDS_GETTEXT was set
   to yes as soon as an uClibc toolchain was used (regardless of
   whether BR2_ENABLE_LOCALE is set or not). So it is possible to build
   libglib2 with a !BR2_ENABLE_LOCALE toolchain, but it requires
   gettext to be built.

So either we decide that packages such as libglib2 do require
BR2_ENABLE_LOCALE, or we need to find some smarter way.

In general, this locale/gettext/libintl/libiconv thing still isn't 100%
clear to me. Why is iconv selected only when !BR2_ENABLE_LOCALE ? Does
gettext works when the toolchain doesn't support locales ? What is the
exact role of all these components ?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2010-05-21 22:11 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-21  8:08 [Buildroot] [pull request] Pull request for branch 2010-05-15-fixes Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 01/19] Add a BR2_NEEDS_GETTEXT option Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 02/19] Make all package using gettext rely on BR2_NEEDS_GETTEXT Thomas Petazzoni
2010-05-21 19:56   ` Peter Korsgaard
2010-05-21 22:11     ` Thomas Petazzoni [this message]
2010-05-22  7:34       ` Peter Korsgaard
2010-05-22  8:27         ` Peter Korsgaard
2010-05-21  8:08 ` [Buildroot] [PATCH 03/19] libcap: fix build failure Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 04/19] libcgicc: fix package after autotools infrastructure conversion Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 05/19] ltrace: fix build failure Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 06/19] gettext: make only available if BR2_NEEDS_GETTEXT is set Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 07/19] external toolchain: check BR2_INSTALL_LIBSTDCPP Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 08/19] iconv: disallow selection when BR2_ENABLE_LOCALE is enabled Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 09/19] lmbench: needs BR2_INET_RPC Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 10/19] startup-notification: add dependency on xlib_libX11 Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 11/19] ntp: fix build failure Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 12/19] samba: only require libiconv if !BR2_ENABLE_LOCALE Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 13/19] pango: run pango-querymodules on the target instead of on the host Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 14/19] cairo: remove host variant Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 15/19] mutt: fix build and convert to autotools Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 16/19] lvm2: do not override CC and similar variables Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 17/19] uemacs: don't forget CFLAGS at link time Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 18/19] vpnc: pass " Thomas Petazzoni
2010-05-21  8:08 ` [Buildroot] [PATCH 19/19] netsnmp: disable build with external toolchain Thomas Petazzoni
2010-05-21 18:38 ` [Buildroot] [pull request] Pull request for branch 2010-05-15-fixes Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100522001149.2ef4a5bb@surf \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox