Patchwork [3,2/9] flex: only needs gettext if locale is selected

login
register
mail settings
Submitter Arnout Vandecappelle
Date Nov. 1, 2012, 2:35 p.m.
Message ID <20121101143544.8550.20909.stgit@localhost>
Download mbox | patch
Permalink /patch/196232/
State Accepted
Headers show

Comments

Arnout Vandecappelle - Nov. 1, 2012, 2:35 p.m.
From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

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(-)
Gustavo Zacarias - March 24, 2013, 1:23 p.m.
On 11/01/2012 11:35 AM, Arnout Vandecappelle (Essensium/Mind) wrote:

> From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> 
> 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>

Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Peter Korsgaard - May 6, 2013, 10:25 p.m.
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:

 Arnout> From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
 Arnout> Also add missing select in Config.in.

Committed, thanks.

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 =