Patchwork [02/10] flex: only needs gettext if locale is selected

login
register
mail settings
Submitter Arnout Vandecappelle
Date Oct. 14, 2012, 9:09 p.m.
Message ID <20121014210941.17845.19635.stgit@localhost>
Download mbox | patch
Permalink /patch/191425/
State Superseded
Headers show

Comments

Arnout Vandecappelle - Oct. 14, 2012, 9:09 p.m.
Also add missing select in Config.in.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 package/flex/Config.in |    1 +
 package/flex/flex.mk   |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)
Yann E. MORIN - Oct. 14, 2012, 9:25 p.m.
Arnout, All,

On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
> Also add missing select in Config.in.
> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

> ---
>  package/flex/Config.in |    1 +
>  package/flex/flex.mk   |    3 +--
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/package/flex/Config.in b/package/flex/Config.in
> index b10eb00..8ce4ccd 100644
> --- a/package/flex/Config.in
> +++ b/package/flex/Config.in
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_FLEX
>  	bool "flex"
> +	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
>  	help
>  	  A fast lexical analyser generator.  A tool for generating
>  	  programs that perform pattern-matching on text.
> diff --git a/package/flex/flex.mk b/package/flex/flex.mk
> index 2599cdc..fe21432 100644
> --- a/package/flex/flex.mk
> +++ b/package/flex/flex.mk
> @@ -11,8 +11,7 @@ FLEX_PATCH = flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz
>  FLEX_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/f/flex
>  FLEX_DIR = $(BUILD_DIR)/flex-$(FLEX_VERSION)
>  FLEX_INSTALL_STAGING = YES
> -FLEX_DEPENDENCIES = \
> -	$(if $(BR2_PACKAGE_GETTEXT),gettext)
> +FLEX_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
>  # we don't have a host-gettext/libintl
>  HOST_FLEX_DEPENDENCIES =
>  
> 
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 
>

Patch

diff --git a/package/flex/Config.in b/package/flex/Config.in
index b10eb00..8ce4ccd 100644
--- a/package/flex/Config.in
+++ b/package/flex/Config.in
@@ -1,5 +1,6 @@ 
 config BR2_PACKAGE_FLEX
 	bool "flex"
+	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
 	help
 	  A fast lexical analyser generator.  A tool for generating
 	  programs that perform pattern-matching on text.
diff --git a/package/flex/flex.mk b/package/flex/flex.mk
index 2599cdc..fe21432 100644
--- a/package/flex/flex.mk
+++ b/package/flex/flex.mk
@@ -11,8 +11,7 @@  FLEX_PATCH = flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz
 FLEX_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/f/flex
 FLEX_DIR = $(BUILD_DIR)/flex-$(FLEX_VERSION)
 FLEX_INSTALL_STAGING = YES
-FLEX_DEPENDENCIES = \
-	$(if $(BR2_PACKAGE_GETTEXT),gettext)
+FLEX_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
 # we don't have a host-gettext/libintl
 HOST_FLEX_DEPENDENCIES =