[Buildroot] [PATCH 1/2] libconfuse: add optional dependency on gettext

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Aug 18 21:46:49 UTC 2016


Hello,

On Thu, 18 Aug 2016 23:54:37 +0530, Rahul Bedarkar wrote:
> Signed-off-by: Rahul Bedarkar <rahul.bedarkar at imgtec.com>
> ---
>  package/libconfuse/Config.in     | 1 +
>  package/libconfuse/libconfuse.mk | 4 ++++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/package/libconfuse/Config.in b/package/libconfuse/Config.in
> index be18cbb..7dedd83 100644
> --- a/package/libconfuse/Config.in
> +++ b/package/libconfuse/Config.in
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_LIBCONFUSE
>  	bool "libconfuse"
> +	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE

This was not correct: libconfuse does not *require* gettext, even if
locale support is enabled. It can work fine without it. However, if
it's available, it uses it. So I've changed your patch to just:

ifeq ($(BR2_PACKAGE_GETTEXT),y)
LIBCONFUSE_DEPENDENCIES += gettext
endif

which ensures that *if* gettext has been enabled in the configuration,
it will be built before libconfuse.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the buildroot mailing list