Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/avahi

Buildroot jacmet at uclibc.org 2 participants 3 messages Aug 27, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-08-27 00:29:20 -0700 (Wed, 27 Aug 2008) New Revision: 23235

Log:
avahi: fix build with BR2_ENABLE_LOCALE

Modified:
trunk/buildroot/package/avahi/Config.in
trunk/buildroot/package/avahi/avahi.mk

Changeset:
Modified: trunk/buildroot/package/avahi/Config.in
===================================================================

buildroot/package/avahi/Config.in +2 -0
@@ -1,6 +1,8 @@
 config BR2_PACKAGE_AVAHI
 	bool "avahi"
 	select BR2_PACKAGE_LIBDAEMON
+	select BR2_PACKAGE_GETTEXT if BR2_ENABLE_LOCALE
+	select BR2_PACKAGE_LIBINTL if BR2_ENABLE_LOCALE
 	help
 	  Avahi is a system which facilitates service
 	  discovery on a local network.

Modified: trunk/buildroot/package/avahi/avahi.mk
===================================================================

buildroot/package/avahi/avahi.mk +2 -2
@@ -142,7 +142,7 @@
 	touch $@
 
 $(AVAHI_DIR)/.compiled: $(AVAHI_DIR)/.configured
-	$(MAKE) -C $(AVAHI_DIR)
+	$(MAKE) -C $(AVAHI_DIR) $(if $(BR2_ENABLE_LOCALE),LIBS=-lintl)
 	touch $@
 
 $(AVAHI_DIR)/.installed: $(AVAHI_DIR)/.compiled
@@ -180,7 +180,7 @@
 		 $(TARGET_DIR)/usr/sbin/avahi-daemon
 	$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
 
-avahi: uclibc libdaemon $(AVAHI_TARGETS)
+avahi: uclibc libdaemon $(AVAHI_TARGETS) $(if $(BR2_ENABLE_LOCALE),gettext libintl)
 
 avahi-clean:
 	-$(MAKE) -C $(AVAHI_DIR) distclean
#1 lore raw
Quoted 18 lines · jacmet at uclibc.org

Author: jacmet
Date: 2008-08-27 00:29:20 -0700 (Wed, 27 Aug 2008) New Revision: 23235

Modified: trunk/buildroot/package/avahi/avahi.mk
===================================================================

buildroot/package/avahi/avahi.mk +0 -0
@@ -142,7 +142,7 @@
 	touch $@
 

$(AVAHI_DIR)/.compiled: $(AVAHI_DIR)/.configured

buildroot/package/avahi/avahi.mk +1 -1
-	$(MAKE) -C $(AVAHI_DIR)
+	$(MAKE) -C $(AVAHI_DIR) $(if $(BR2_ENABLE_LOCALE),LIBS=-lintl)

touch $@

$(AVAHI_DIR)/.installed: $(AVAHI_DIR)/.compiled

buildroot/package/avahi/avahi.mk line 183

Quoted 5 lines
buildroot/package/avahi/avahi.mk +1 -1
@@ -180,7 +180,7 @@
 		 $(TARGET_DIR)/usr/sbin/avahi-daemon
 	$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
 
-avahi: uclibc libdaemon $(AVAHI_TARGETS)
+avahi: uclibc libdaemon $(AVAHI_TARGETS) $(if $(BR2_ENABLE_LOCALE),gettext libintl)

are you sure that the order is correct? Getting this proper for toplevel parallel make would be fun:

# make sure to set JLEVEL=1
$ make oldconfig
$ rm -rf {toolchain,build,project}_*
$ make -j avahi
#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernhard" == Bernhard Reutner-Fischer <[email protected]> writes:

Hi,

Quoted 2 lines

buildroot/package/avahi/avahi.mk line 183

Quoted 2 lines
buildroot/package/avahi/avahi.mk +1 -1
-avahi: uclibc libdaemon $(AVAHI_TARGETS)
+avahi: uclibc libdaemon $(AVAHI_TARGETS) $(if $(BR2_ENABLE_LOCALE),gettext libintl)

Bernhard> are you sure that the order is correct? Getting this proper for toplevel Bernhard> parallel make would be fun:

Bernhard> # make sure to set JLEVEL=1
Bernhard> $ make oldconfig
Bernhard> $ rm -rf {toolchain,build,project}_*
Bernhard> $ make -j avahi

No it isn't, but neither is the rest of buildroot ;) That's why we don't support parallel toplevel make. For it to work we would have to make the configure steps depend on the staging install of the user libs, and so on.

Signature · 1 line
Bye, Peter Korsgaard