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] libglib2: remove $(DISABLE_NLS) from configure options
Date: Mon, 27 Oct 2008 10:30:49 +0100	[thread overview]
Message-ID: <20081027103049.47ef9fd4@surf> (raw)
In-Reply-To: <87ej22bdu7.fsf@macbook.be.48ers.dk>

Le Mon, 27 Oct 2008 10:13:20 +0100,
Peter Korsgaard <jacmet@uclibc.org> a ?crit :

> Probably it's handled with the libintl stuff when !BR2_ENABLE_LOCALE.

Concerning libglib2 and iconv, I have the following workaround/patch in
my tree to disable pulling libiconv when !BR2_ENABLE_LOCALE. The
problem is that I'm using an external toolchain (having too many
troubles with buildroot-generated toolchains). Because the toolchain is
external, BR2_ENABLE_LOCALE is not set. But the toolchain already
contains libiconv, so I don't want to add it as a dependency. But the
following patch is just a workaround, I haven't thought about a proper
fix for now.

Bogus check if the toolchain is external.
---
 package/libglib2/Config.in   |    1 -
 package/libglib2/libglib2.mk |    4 ----
 2 files changed, 5 deletions(-)

Index: buildroot/package/libglib2/Config.in
===================================================================
--- buildroot.orig/package/libglib2/Config.in
+++ buildroot/package/libglib2/Config.in
@@ -2,7 +2,6 @@
 	bool "libglib2"
 	select BR2_PACKAGE_GETTEXT
 	select BR2_PACKAGE_LIBINTL
-	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	select BR2_PACKAGE_PKGCONFIG
 	help
 	  Low-level core library that forms the basis of GTK+ and GNOME.
Index: buildroot/package/libglib2/libglib2.mk
===================================================================
--- buildroot.orig/package/libglib2/libglib2.mk
+++ buildroot/package/libglib2/libglib2.mk
@@ -49,8 +49,4 @@
 
 LIBGLIB2_DEPENDENCIES = uclibc gettext libintl pkgconfig
 
-ifneq ($(BR2_ENABLE_LOCALE),y)
-LIBGLIB2_DEPENDENCIES+=libiconv
-endif
-
 $(eval $(call AUTOTARGETS,package,libglib2))


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

  reply	other threads:[~2008-10-27  9:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-25  0:16 [Buildroot] [PATCH] libglib2: remove $(DISABLE_NLS) from configure options Markus Heidelberg
2008-10-26 20:02 ` Peter Korsgaard
2008-10-27  7:07   ` Markus Heidelberg
2008-10-27  9:13     ` Peter Korsgaard
2008-10-27  9:30       ` Thomas Petazzoni [this message]
2008-10-27  9:48         ` Peter Korsgaard
2008-10-27 15:03           ` [Buildroot] Toolchain problems. About toolchains in Buildroot ? Thomas Petazzoni

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=20081027103049.47ef9fd4@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