Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] whois: fix build with NLS disabled
@ 2017-08-13 18:34 Baruch Siach
  2017-08-13 18:34 ` [Buildroot] [PATCH 2/3] whois: use github repo as home page Baruch Siach
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Baruch Siach @ 2017-08-13 18:34 UTC (permalink / raw)
  To: buildroot

whois build uses the xgettext utility to build translation files.
This utility may not be available when NLS is disabled. Omit the pos and
install-pos Makefile targets from the default and the install targets
when NLS is disabled, respectively.

Fixes:
http://autobuild.buildroot.net/results/862/862d8165a59711c970c65d90009a527315a1a6b4/
http://autobuild.buildroot.net/results/b62/b62ec9d6f350e409731d47ffb585344c516944e8/
http://autobuild.buildroot.net/results/be2/be28d06ae004a46c87133d6f07709c6f909288d8/

Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/whois/whois.mk | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/package/whois/whois.mk b/package/whois/whois.mk
index b77349997883..87cc65fac4c7 100644
--- a/package/whois/whois.mk
+++ b/package/whois/whois.mk
@@ -27,13 +27,22 @@ WHOIS_DEPENDENCIES += libidn
 WHOIS_MAKE_ENV += HAVE_LIBIDN=1
 endif
 
+ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
+WHOIS_BUILD_TARGETS =
+WHOIS_INSTALL_TARGETS = install
+else
+WHOIS_BUILD_TARGETS = Makefile.depend whois mkpasswd
+WHOIS_INSTALL_TARGETS = install-whois install-mkpasswd
+endif
+
 define WHOIS_BUILD_CMDS
-	$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) -C $(@D)
+	$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
+		$(WHOIS_BUILD_TARGETS) -C $(@D)
 endef
 
 define WHOIS_INSTALL_TARGET_CMDS
 	$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
-		BASEDIR="$(TARGET_DIR)" install -C $(@D)
+		BASEDIR="$(TARGET_DIR)" $(WHOIS_INSTALL_TARGETS) -C $(@D)
 endef
 
 $(eval $(generic-package))
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-09-06  9:03 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-13 18:34 [Buildroot] [PATCH 1/3] whois: fix build with NLS disabled Baruch Siach
2017-08-13 18:34 ` [Buildroot] [PATCH 2/3] whois: use github repo as home page Baruch Siach
2017-08-14 20:03   ` Thomas Petazzoni
2017-08-15  4:14     ` Baruch Siach
2017-08-15 10:10       ` Arnout Vandecappelle
2017-08-15 10:56         ` Thomas Petazzoni
2017-08-15 11:20           ` Baruch Siach
2017-08-15 12:07             ` Thomas Petazzoni
2017-08-15 15:23               ` Arnout Vandecappelle
2017-08-13 18:34 ` [Buildroot] [PATCH 3/3] whois: bump to version 5.2.17 Baruch Siach
2017-08-15  4:18   ` Baruch Siach
2017-08-15  8:40     ` Thomas Petazzoni
2017-08-15 10:12       ` Arnout Vandecappelle
2017-08-15 10:54         ` Thomas Petazzoni
2017-08-15 16:22   ` Arnout Vandecappelle
2017-09-06  9:03   ` Peter Korsgaard
2017-08-14 20:02 ` [Buildroot] [PATCH 1/3] whois: fix build with NLS disabled Thomas Petazzoni
2017-08-16 21:09 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox