Rework the gettext handling
cover Rework the gettext handling
Hello All!
This patch series is an aggregation of the gettext rework by Maxime, Thomas, and I.
See this post for the 6 first patches:
http://lists.busybox.net/pipermail/buildroot/2012-July/055871.html
[PATCH 01/12] gettext: remove option to build statically [PATCH 02/12] gettext: remove the gettext-target make target, unused [PATCH 03/12] gettext: remove libintl handling
[PATCH 04/12] Remove all references to libintl
[PATCH 05/12] gettext: convert to autotools-package [PATCH 06/12] doc: update after gettext changes
The following 2 patches fix two packages in preparation for the end of the series:
[PATCH 07/12] package/lshw: add missing dependency on gettext [PATCH 08/12] package/pulseaudio: fix build-dependency on gettext
See this post for an explanation for the next 4 patches:
http://lists.busybox.net/pipermail/buildroot/2012-August/058042.html
[PATCH 09/12] toolchain/common: rename BR2_NEEDS_GETTEXT
[PATCH 10/12] pkg-infra: ensure gettext gets built before all other packages [PATCH 11/12] toolchain/common: introduce blind options BR2_NEEDS_GETTEXT{,_IF_LOCALE} [PATCH 12/12] packages: use the new gettext mechanism
The complete series has been build-tested with all packages touched by the series. Except for gmpc, which fails to build because it does not link with -lm (thus has missing symbol floor(3) with my uClibc-based toolchain), all other packages were built OK.
Regards,
Yann E. MORIN.
PATCH 1/12 gettext: remove option to build statically
From: Thomas Petazzoni <[email protected]>
--- package/gettext/Config.in | 12 ------------ package/gettext/gettext.mk | 9 --------- 2 files changed, 0 insertions(+), 21 deletions(-)
package/gettext/Config.in +0 -12
@@ -12,18 +12,6 @@ config BR2_PACKAGE_GETTEXT comment "gettext requires a toolchain with WCHAR support" depends on BR2_NEEDS_GETTEXT && !BR2_USE_WCHAR -config BR2_PACKAGE_GETTEXT_STATIC - bool "Use libgettext.a instead of libgettext.so.*" - depends on BR2_PACKAGE_GETTEXT - depends on BR2_arm - help - The GNU `gettext' utilities are a set of tools that provide a - framework to help other GNU packages produce multi-lingual - messages. - - http://www.gnu.org/software/gettext/ - - config BR2_PACKAGE_LIBINTL bool "libintl" depends on BR2_NEEDS_GETTEXT
package/gettext/gettext.mk +0 -9
@@ -11,11 +11,7 @@ GETTEXT_CAT:=$(ZCAT) GETTEXT_BINARY:=gettext-runtime/src/gettext GETTEXT_TARGET_BINARY:=usr/bin/gettext -ifeq ($(BR2_PACKAGE_GETTEXT_STATIC),y) -LIBINTL_TARGET_BINARY:=usr/lib/libintl.a -else LIBINTL_TARGET_BINARY:=usr/lib/libintl.so -endif $(DL_DIR)/$(GETTEXT_SOURCE): $(call DOWNLOAD,$(GETTEXT_SITE)/$(GETTEXT_SOURCE))
@@ -147,11 +143,6 @@ $(TARGET_DIR)/usr/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY) libgettext*.so*.la libintl*.so*.la) touch -c $@ -$(TARGET_DIR)/usr/lib/libintl.a: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY) - cp -dpf $(STAGING_DIR)/usr/lib/libgettext*.a $(TARGET_DIR)/usr/lib/ - cp -dpf $(STAGING_DIR)/usr/lib/libintl*.a $(TARGET_DIR)/usr/lib/ - touch -c $@ - libintl: $(TARGET_DIR)/$(LIBINTL_TARGET_BINARY) #############################################################
Signature · 1 line
1.7.2.5
PATCH 1/12 gettext: remove option to build statically
Quoted 2 lines · Yann E. MORIN
Signed-off-by Thomas Petazzoni<[email protected]>Reviewed-by "Yann E. MORIN"<[email protected]>
In the last BR developer meeting, we agreed not to use the Reviewed-by: tag,
but only the Acked-by: tag. It should be used when you've reviewed the patch and you would commit it if you had commit access.
Another thing: it was actually Samuel Martin who initiated this patch
series. However, the original patches were rewritten so completely by Thomas and Maxime that it doesn't make sense to keep his Signed-off-by. To be able to keep some of the credit, I propose to add a Cc: tag in such a situation.
Finally, for the whole series except 10/12 and 12/12:
(build-test with a minimal x86 config)
And:
I'm pretty much in favour of committing patches 1 to 9 now. The first
six have had plenty of time for review, 7 and 8 are fairly obvious bugfixes, and 9 is a mechanical rename.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH 1/12 gettext: remove option to build statically
Arnout, Thomas, All,
Quoted 7 lines · On Monday 03 September 2012 11:01:46 Arnout Vandecappelle wrote:
Quoted 2 lines · Yann E. MORIN
Signed-off-by Thomas Petazzoni<[email protected]>Reviewed-by "Yann E. MORIN"<[email protected]>In the last BR developer meeting, we agreed not to use the Reviewed-by: tag,
but only the Acked-by: tag. It should be used when you've reviewed the patch and you would commit it if you had commit access.
OK. So, to whoever commits these patches, you can change my Reviewed-by into an Acked-by
Quoted 2 lines
Thank you!
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ | | --==< O_o >==-- '------------.-------: X AGAINST | /e\ There is no | | http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL | """ conspiracy. | '------------------------------'-------'------------------'--------------------'
PATCH 1/12 gettext: remove option to build statically
In reply to Arnout VandecappelleArnout, All,
Quoted 3 lines · On Monday 03 September 2012 11:01:46 Arnout Vandecappelle wrote:
I'm pretty much in favour of committing patches 1 to 9 now. The first
six have had plenty of time for review, 7 and 8 are fairly obvious bugfixes, and 9 is a mechanical rename.
I'd suggest we wait yet a little tiny bit until later tonight (+0200), I will re-submit the whole series with your comments (and ack/tst).
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 2/12 gettext: remove the gettext-target make target, unused
In reply to Yann E. MORINFrom: Thomas Petazzoni <[email protected]>
--- package/gettext/gettext.mk | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
package/gettext/gettext.mk +0 -4
@@ -130,10 +130,6 @@ gettext-dirclean: # ############################################################# -gettext-target: $(GETTEXT_DIR)/$(GETTEXT_BINARY) - $(MAKE) DESTDIR=$(TARGET_DIR) -C $(GETTEXT_DIR) install - chmod +x $(TARGET_DIR)/usr/lib/libintl.so* # identify as needing to be stripped - $(TARGET_DIR)/usr/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY) cp -dpf $(STAGING_DIR)/usr/lib/libgettext*.so* \ $(STAGING_DIR)/usr/lib/libintl*.so* $(TARGET_DIR)/usr/lib/
Signature · 1 line
1.7.2.5
PATCH 3/12 gettext: remove libintl handling
In reply to Yann E. MORINFrom: Thomas Petazzoni <[email protected]>
Now, the gettext package always:
* install everything to the staging directory
* install the libraries to the target directory
Note that this commit removes BR2_PACKAGE_LIBINTL without updating the packages, it is done in a separate commit to ease the review process.
--- package/gettext/Config.in | 14 ++++++-------- package/gettext/gettext.mk | 7 +------ 2 files changed, 7 insertions(+), 14 deletions(-)
package/gettext/Config.in +6 -8
@@ -7,17 +7,15 @@ config BR2_PACKAGE_GETTEXT framework to help other GNU packages produce multi-lingual messages. + Only the gettext libraries will be installed in the + target. The full gettext suite, including tools, will be + installed in the staging directory. + http://www.gnu.org/software/gettext/ comment "gettext requires a toolchain with WCHAR support" depends on BR2_NEEDS_GETTEXT && !BR2_USE_WCHAR config BR2_PACKAGE_LIBINTL - bool "libintl" - depends on BR2_NEEDS_GETTEXT - depends on BR2_USE_WCHAR - help - Selecting this package installs all of gettext in the staging - directory and the shared library for it's use in the target. - - http://www.gnu.org/software/gettext/ + bool + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
package/gettext/gettext.mk +1 -6
@@ -112,7 +112,7 @@ $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY): $(GETTEXT_DIR)/$(GETTEXT_BINARY) gettext-legal-info: @$(call legal-warning-pkg,gettext,legal-info not yet implemented) -gettext: host-pkg-config $(if $(BR2_PACKAGE_LIBICONV),libiconv) $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY) +gettext: host-pkg-config $(if $(BR2_PACKAGE_LIBICONV),libiconv) $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY) $(TARGET_DIR)/$(LIBINTL_TARGET_BINARY) gettext-unpacked: $(GETTEXT_DIR)/.unpacked
@@ -139,16 +139,11 @@ $(TARGET_DIR)/usr/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY) libgettext*.so*.la libintl*.so*.la) touch -c $@ -libintl: $(TARGET_DIR)/$(LIBINTL_TARGET_BINARY) - ############################################################# # # Toplevel Makefile options # ############################################################# -ifeq ($(BR2_PACKAGE_LIBINTL),y) -TARGETS+=libintl -endif ifeq ($(BR2_PACKAGE_GETTEXT),y) TARGETS+=gettext endif
Signature · 1 line
1.7.2.5
PATCH 4/12 Remove all references to libintl
In reply to Yann E. MORINFrom: Thomas Petazzoni <[email protected]>
From now on, packages only need to select the BR2_PACKAGE_GETTEXT option and depend on the 'gettext' package to get the necessary i18n libraries installed on the target.
--- package/avahi/Config.in | 1 - package/avahi/avahi.mk | 6 +++--- package/axel/Config.in | 1 - package/axel/axel.mk | 2 +- package/binutils/Config.in | 1 - package/binutils/binutils.mk | 2 +- package/diffutils/diffutils.mk | 3 +-- package/dnsmasq/Config.in | 1 - package/dnsmasq/dnsmasq.mk | 2 +- package/flex/flex.mk | 3 +-- package/gdk-pixbuf/Config.in | 1 - package/gdk-pixbuf/gdk-pixbuf.mk | 2 +- package/gettext/Config.in | 4 ---- package/glib-networking/Config.in | 1 - package/glib-networking/glib-networking.mk | 2 +- package/gmpc/Config.in | 1 - package/gmpc/gmpc.mk | 2 +- package/grep/Config.in | 1 - package/grep/grep.mk | 2 +- package/kbd/Config.in | 1 - package/kbd/kbd.mk | 2 +- package/libglib2/Config.in | 1 - package/libglib2/libglib2.mk | 2 +- package/libsoup/Config.in | 1 - package/libsoup/libsoup.mk | 2 +- package/lshw/lshw.mk | 2 +- package/make/Config.in | 1 - package/make/make.mk | 2 +- package/midori/Config.in | 1 - package/midori/midori.mk | 2 +- package/multimedia/pulseaudio/Config.in | 2 +- package/multimedia/pulseaudio/pulseaudio.mk | 2 +- package/ndisc6/ndisc6.mk | 4 ++-- package/pango/Config.in | 1 - package/pango/pango.mk | 2 +- package/psmisc/Config.in | 1 - package/psmisc/psmisc.mk | 2 +- package/quota/Config.in | 1 - package/quota/quota.mk | 2 +- package/sshfs/Config.in | 1 - package/sshfs/sshfs.mk | 2 +- package/sysstat/Config.in | 1 - package/sysstat/sysstat.mk | 2 +- package/ushare/Config.in | 1 - package/ushare/ushare.mk | 2 +- package/util-linux/util-linux.mk | 4 ++-- package/vala/Config.in | 1 - package/vala/vala.mk | 2 +- 48 files changed, 31 insertions(+), 57 deletions(-)
package/avahi/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_AVAHI bool "avahi" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help Avahi is a system which facilitates service discovery on a local network.
package/avahi/avahi.mk +3 -3
@@ -85,7 +85,7 @@ AVAHI_CONF_OPT = --localstatedir=/var \ --with-autoipd-user=default \ --with-autoipd-group=default -AVAHI_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) host-intltool host-pkg-config +AVAHI_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-intltool host-pkg-config ifneq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_AVAHI_AUTOIPD),) AVAHI_DEPENDENCIES += libdaemon
@@ -133,8 +133,8 @@ else AVAHI_CONF_OPT += --disable-python endif -ifeq ($(BR2_PACKAGE_LIBINTL),y) -AVAHI_DEPENDENCIES += libintl +ifeq ($(BR2_PACKAGE_GETTEXT),y) +AVAHI_DEPENDENCIES += gettext AVAHI_MAKE_OPT = LIBS=-lintl endif
package/axel/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_AXEL bool "axel" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE depends on BR2_TOOLCHAIN_HAS_THREADS help HTTP/FTP download accelerator.
package/axel/axel.mk +1 -1
@@ -10,7 +10,7 @@ AXEL_SITE = https://alioth.debian.org/frs/download.php/3015 AXEL_LDFLAGS = -lpthread ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) -AXEL_DEPENDENCIES += gettext libintl +AXEL_DEPENDENCIES += gettext AXEL_LDFLAGS += -lintl endif
package/binutils/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_BINUTILS bool "binutils" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help Install binutils on the target
package/binutils/binutils.mk +1 -1
@@ -23,7 +23,7 @@ BINUTILS_SITE = ftp://www.at91.com/pub/buildroot endif BINUTILS_EXTRA_CONFIG_OPTIONS = $(call qstrip,$(BR2_BINUTILS_EXTRA_CONFIG_OPTIONS)) BINUTILS_INSTALL_STAGING = YES -BINUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) +BINUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) # We need to specify host & target to avoid breaking ARM EABI BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
package/diffutils/diffutils.mk +1 -2
@@ -7,8 +7,7 @@ DIFFUTILS_VERSION = 3.2 DIFFUTILS_SITE = $(BR2_GNU_MIRROR)/diffutils DIFFUTILS_DEPENDENCIES = \ - $(if $(BR2_PACKAGE_GETTEXT),gettext) \ - $(if $(BR2_PACKAGE_LIBINTL),libintl) + $(if $(BR2_PACKAGE_GETTEXT),gettext) ifeq ($(BR2_PACKAGE_BUSYBOX),y) DIFFUTILS_DEPENDENCIES += busybox
package/dnsmasq/Config.in +0 -1
@@ -25,7 +25,6 @@ config BR2_PACKAGE_DNSMASQ_IDN depends on BR2_USE_WCHAR select BR2_PACKAGE_LIBIDN select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help Enable IDN support in dnsmasq. This option is a big space taker since it pulls in many libraries.
package/dnsmasq/dnsmasq.mk +1 -1
@@ -24,7 +24,7 @@ endif # NLS requires IDN so only enable it (i18n) when IDN is true ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y) - DNSMASQ_DEPENDENCIES += libidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) + DNSMASQ_DEPENDENCIES += libidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) DNSMASQ_MAKE_OPT += LDFLAGS+="-lidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)" DNSMASQ_COPTS += -DHAVE_IDN DNSMASQ_I18N = $(if $(BR2_ENABLE_LOCALE),-i18n)
package/flex/flex.mk +1 -2
@@ -12,8 +12,7 @@ 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) \ - $(if $(BR2_PACKAGE_LIBINTL),libintl) + $(if $(BR2_PACKAGE_GETTEXT),gettext) # we don't have a host-gettext/libintl HOST_FLEX_DEPENDENCIES =
package/gdk-pixbuf/Config.in +0 -1
@@ -3,7 +3,6 @@ config BR2_PACKAGE_GDK_PIXBUF depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help Gdk-Pixbuf is an image loader and scaler. It uses GObject
package/gdk-pixbuf/gdk-pixbuf.mk +1 -1
@@ -35,7 +35,7 @@ GDK_PIXBUF_DEPENDENCIES += tiff endif GDK_PIXBUF_DEPENDENCIES += \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) \ + $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_ENABLE_LOCALE),,libiconv) \ host-pkg-config libglib2
package/gettext/Config.in +0 -4
@@ -15,7 +15,3 @@ config BR2_PACKAGE_GETTEXT comment "gettext requires a toolchain with WCHAR support" depends on BR2_NEEDS_GETTEXT && !BR2_USE_WCHAR - -config BR2_PACKAGE_LIBINTL - bool - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
package/glib-networking/Config.in +0 -1
@@ -3,7 +3,6 @@ config BR2_PACKAGE_GLIB_NETWORKING depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT help Network-related GIO modules for glib.
package/glib-networking/glib-networking.mk +1 -1
@@ -13,7 +13,7 @@ GLIB_NETWORKING_SOURCE = glib-networking-$(GLIB_NETWORKING_VERSION).tar.xz GLIB_NETWORKING_INSTALL_STAGING = YES GLIB_NETWORKING_DEPENDENCIES = \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) \ + $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ host-pkg-config \ host-intltool \ libglib2
package/gmpc/Config.in +0 -1
@@ -5,7 +5,6 @@ config BR2_PACKAGE_GMPC depends on BR2_PACKAGE_XORG7 select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_LIBMPD select BR2_PACKAGE_LIBSOUP
package/gmpc/gmpc.mk +1 -1
@@ -11,6 +11,6 @@ GMPC_CONF_OPT = --disable-mmkeys --disable-unique GMPC_DEPENDENCIES = host-gob2 host-intltool host-pkg-config host-vala \ libglib2 libgtk2 libmpd libsoup sqlite \ xlib_libICE xlib_libSM xlib_libX11 \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) + $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) $(eval $(autotools-package))
package/grep/Config.in +0 -1
@@ -2,7 +2,6 @@ config BR2_PACKAGE_GREP bool "grep" depends on BR2_USE_WCHAR select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help The GNU regular expression matcher.
package/grep/grep.mk +1 -1
@@ -8,7 +8,7 @@ GREP_VERSION = 2.13 GREP_SITE = $(BR2_GNU_MIRROR)/grep GREP_SOURCE = grep-$(GREP_VERSION).tar.xz GREP_CONF_OPT = --disable-perl-regexp --without-included-regex -GREP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) +GREP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) # link with iconv if enabled ifeq ($(BR2_PACKAGE_LIBICONV),y)
package/kbd/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_KBD bool "kbd" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE # Uses fork() depends on BR2_USE_MMU help
package/kbd/kbd.mk +1 -1
@@ -2,6 +2,6 @@ KBD_VERSION = 1.15.2 KBD_SOURCE = kbd-$(KBD_VERSION).tar.gz KBD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kbd -KBD_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) +KBD_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) $(eval $(autotools-package))
package/libglib2/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_LIBGLIB2 bool "libglib2" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_LIBFFI select BR2_PACKAGE_ZLIB
package/libglib2/libglib2.mk +1 -1
@@ -55,7 +55,7 @@ HOST_LIBGLIB2_CONF_OPT = \ --disable-gtk-doc \ --enable-debug=no \ -LIBGLIB2_DEPENDENCIES = host-pkg-config host-libglib2 libffi zlib $(if $(BR2_NEEDS_GETTEXT),gettext libintl) +LIBGLIB2_DEPENDENCIES = host-pkg-config host-libglib2 libffi zlib $(if $(BR2_NEEDS_GETTEXT),gettext) HOST_LIBGLIB2_DEPENDENCIES = host-pkg-config host-libffi host-zlib
package/libsoup/Config.in +0 -1
@@ -4,7 +4,6 @@ config BR2_PACKAGE_LIBSOUP select BR2_PACKAGE_LIBXML2 select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT help libsoup is an HTTP client/server library. It uses GObject and the GLib main loop, to integrate well with GNOME
package/libsoup/libsoup.mk +1 -1
@@ -19,7 +19,7 @@ endif LIBSOUP_CONF_OPT = --disable-glibtest --without-gnome -LIBSOUP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) host-pkg-config host-libglib2 libglib2 libxml2 +LIBSOUP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-pkg-config host-libglib2 libglib2 libxml2 ifeq ($(BR2_PACKAGE_LIBSOUP_SSL),y) LIBSOUP_DEPENDENCIES += glib-networking
package/lshw/lshw.mk +1 -1
@@ -9,7 +9,7 @@ LSHW_SITE = http://ezix.org/software/files LSHW_MAKE_OPT = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" AR="$(TARGET_AR)" \ RPM_OPT_FLAGS="$(TARGET_CFLAGS)" all LSHW_MAKE_ENV = LIBS="$(if $(BR2_NEEDS_GETTEXT),-lintl)" -LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT),libintl) +LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT),gettext) define LSHW_BUILD_CMDS $(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPT)
package/make/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_MAKE bool "make" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help A tool which controls the generation of executables and other non-source files of a program from the program's source files.
package/make/make.mk +1 -1
@@ -7,7 +7,7 @@ MAKE_VERSION:=3.81 MAKE_SOURCE:=make-$(MAKE_VERSION).tar.bz2 MAKE_SITE:=$(BR2_GNU_MIRROR)/make -MAKE_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) +MAKE_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) MAKE_CONF_ENV = make_cv_sys_gnu_glob=no \ GLOBINC='-I$(@D)/glob' \
package/midori/Config.in +0 -1
@@ -3,7 +3,6 @@ config BR2_PACKAGE_MIDORI select BR2_PACKAGE_WEBKIT select BR2_PACKAGE_LIBSEXY select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE depends on BR2_PACKAGE_LIBGTK2 depends on BR2_INSTALL_LIBSTDCPP # webkit
package/midori/midori.mk +1 -1
@@ -14,7 +14,7 @@ MIDORI_DEPENDENCIES = \ libgtk2 \ libsexy \ webkit \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) \ + $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_PACKAGE_LIBICONV),libiconv) ifneq ($(BR2_PACKAGE_XORG7),y)
package/multimedia/pulseaudio/Config.in +1 -1
@@ -5,7 +5,7 @@ config BR2_PACKAGE_PULSEAUDIO select BR2_PACKAGE_JSON_C select BR2_PACKAGE_LIBSNDFILE select BR2_PACKAGE_SPEEX - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT help PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications. It allows you to do
package/multimedia/pulseaudio/pulseaudio.mk +1 -1
@@ -16,7 +16,7 @@ PULSEAUDIO_CONF_OPT = \ PULSEAUDIO_DEPENDENCIES = \ host-pkg-config libtool json-c libsndfile speex host-intltool \ - $(if $(BR2_PACKAGE_LIBINTL),libintl) \ + $(if $(BR2_PACKAGE_GETTEXT),gettext) \ $(if $(BR2_PACKAGE_LIBATOMIC_OPS),libatomic_ops) \ $(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \ $(if $(BR2_PACKAGE_ALSA_LIB),alsa-lib) \
package/ndisc6/ndisc6.mk +2 -2
@@ -10,8 +10,8 @@ NDISC6_SITE = http://www.remlab.net/files/ndisc6/ NDISC6_CONF_ENV = CC="$(TARGET_CC) -std=gnu99" NDISC6_CONF_OPT = --localstatedir=/var --disable-rpath --disable-suid-install -ifeq ($(BR2_PACKAGE_LIBINTL),y) -NDISC6_DEPENDENCIES += libintl +ifeq ($(BR2_PACKAGE_GETTEXT),y) +NDISC6_DEPENDENCIES += gettext NDISC6_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl" endif
package/pango/Config.in +0 -1
@@ -6,7 +6,6 @@ config BR2_PACKAGE_PANGO select BR2_PACKAGE_EXPAT select BR2_PACKAGE_CAIRO select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that
package/pango/pango.mk +1 -1
@@ -41,7 +41,7 @@ PANGO_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \ PANGO_CONF_OPT = --enable-explicit-deps=no --disable-debug -PANGO_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) host-pkg-config libglib2 cairo +PANGO_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-pkg-config libglib2 cairo ifeq ($(BR2_PACKAGE_XORG7),y) PANGO_CONF_OPT += --with-x \
package/psmisc/Config.in +0 -1
@@ -2,7 +2,6 @@ config BR2_PACKAGE_PSMISC bool "psmisc" select BR2_PACKAGE_NCURSES select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help Helpful /proc related utilities such as pstree, fuser, and killall
package/psmisc/psmisc.mk +1 -1
@@ -8,7 +8,7 @@ PSMISC_VERSION = 22.16 PSMISC_SITE = http://downloads.sourceforge.net/project/psmisc/psmisc PSMISC_LICENSE = GPLv2 PSMISC_LICENSE_FILES = COPYING -PSMISC_DEPENDENCIES = ncurses $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) +PSMISC_DEPENDENCIES = ncurses $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) ifneq ($(BR2_TOOLCHAIN_BUILDROOT_USE_SSP),y) # Don't force -fstack-protector
package/quota/Config.in +0 -1
@@ -6,7 +6,6 @@ config BR2_PACKAGE_QUOTA select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_MOUNT select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help Implementation of the disk quota system.
package/quota/quota.mk +1 -1
@@ -11,7 +11,7 @@ QUOTA_SITE = http://downloads.sourceforge.net/project/linuxquota/quota-tools/$(Q QUOTA_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) -QUOTA_DEPENDENCIES = gettext libintl +QUOTA_DEPENDENCIES = gettext QUOTA_MAKE_OPT += LDFLAGS="$(TARGET_LDFLAGS) -lintl" endif
package/sshfs/Config.in +0 -1
@@ -3,7 +3,6 @@ config BR2_PACKAGE_SSHFS select BR2_PACKAGE_LIBFUSE select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_OPENSSH depends on BR2_LARGEFILE
package/sshfs/sshfs.mk +1 -1
@@ -9,7 +9,7 @@ SSHFS_SITE = http://downloads.sourceforge.net/project/fuse/sshfs-fuse/$(SSHFS_VE SSHFS_SOURCE = sshfs-fuse-$(SSHFS_VERSION).tar.gz SSHFS_DEPENDENCIES = \ libglib2 libfuse openssh \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) \ + $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_ENABLE_LOCALE),,libiconv) $(eval $(autotools-package))
package/sysstat/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_SYSSTAT bool "sysstat" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE # Uses fork() depends on BR2_USE_MMU help
package/sysstat/sysstat.mk +1 -1
@@ -14,7 +14,7 @@ SYSSTAT_CONF_OPT += --disable-documentation endif ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) -SYSSTAT_DEPENDENCIES += gettext libintl +SYSSTAT_DEPENDENCIES += gettext SYSSTAT_MAKE_OPT += CFLAGS+=-lintl endif
package/ushare/Config.in +0 -1
@@ -3,7 +3,6 @@ config BR2_PACKAGE_USHARE depends on BR2_LARGEFILE select BR2_PACKAGE_LIBUPNP select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices
package/ushare/ushare.mk +1 -1
@@ -10,7 +10,7 @@ USHARE_SITE = http://ushare.geexbox.org/releases USHARE_DEPENDENCIES = host-pkg-config libupnp ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) -USHARE_DEPENDENCIES += gettext libintl +USHARE_DEPENDENCIES += gettext USHARE_LDFLAGS += -lintl endif
package/util-linux/util-linux.mk +2 -2
@@ -29,8 +29,8 @@ else UTIL_LINUX_CONF_OPT += --without-ncurses endif -ifeq ($(BR2_PACKAGE_LIBINTL),y) -UTIL_LINUX_DEPENDENCIES += libintl +ifeq ($(BR2_PACKAGE_GETTEXT),y) +UTIL_LINUX_DEPENDENCIES += gettext UTIL_LINUX_MAKE_OPT += LIBS=-lintl endif
package/vala/Config.in +0 -1
@@ -3,7 +3,6 @@ config BR2_PACKAGE_VALA depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE - select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help Compiler for the GObject type system.
package/vala/vala.mk +1 -1
@@ -10,7 +10,7 @@ VALA_VERSION = $(VALA_VERSION_MAJOR).$(VALA_VERSION_MINOR) VALA_SITE = http://download.gnome.org/sources/vala/$(VALA_VERSION_MAJOR) VALA_SOURCE = vala-$(VALA_VERSION).tar.xz VALA_DEPENDENCIES = host-flex libglib2 \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) + $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) HOST_VALA_DEPENDENCIES = host-flex host-libglib2 $(eval $(autotools-package))
Signature · 1 line
1.7.2.5
PATCH 5/12 gettext: convert to autotools-package
In reply to Yann E. MORINFrom: Maxime Ripard <[email protected]>
--- package/gettext/Config.in | 10 +++- package/gettext/gettext.mk | 165 ++++++------------------------------------- 2 files changed, 32 insertions(+), 143 deletions(-)
package/gettext/Config.in +9 -1
@@ -7,11 +7,19 @@ config BR2_PACKAGE_GETTEXT framework to help other GNU packages produce multi-lingual messages. - Only the gettext libraries will be installed in the + Only the libintl library will be installed in the target. The full gettext suite, including tools, will be installed in the staging directory. http://www.gnu.org/software/gettext/ +config BR2_PACKAGE_GETTEXT_TOOLS + bool "Install gettext tools" + depends on BR2_PACKAGE_GETTEXT + help + This option allows to install the complete gettext suite in + the target filesystem. This is typically not useful for + correct operation of programs. + comment "gettext requires a toolchain with WCHAR support" depends on BR2_NEEDS_GETTEXT && !BR2_USE_WCHAR
package/gettext/gettext.mk +23 -142
170 lines not on this page · raw message
Signature · 1 line
1.7.2.5
PATCH 6/12 doc: update after gettext changes
In reply to Yann E. MORINFrom: Thomas Petazzoni <[email protected]>
--- docs/manual/adding-packages-gettext.txt | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)
docs/manual/adding-packages-gettext.txt +2 -6
@@ -27,18 +27,14 @@ Therefore, Buildroot defines two configuration options: Therefore, packages that unconditionally need gettext should: -* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT+ and possibly - +select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT+, if libintl is - also needed +* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT+ * Use +$(if $(BR2_NEEDS_GETTEXT),gettext)+ in the package +DEPENDENCIES+ variable Packages that need gettext only when locale support is enabled should: -* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE+ and - possibly +select BR2_PACKAGE_LIBINTL if - BR2_NEEDS_GETTEXT_IF_LOCALE+, if libintl is also needed +* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE+ * Use +$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)+ in the package +DEPENDENCIES+ variable
Signature · 1 line
1.7.2.5
PATCH 7/12 package/lshw: add missing dependency on gettext
In reply to Yann E. MORINlshw.mk defines a build-dependency on gettext,
but not in its Config.in.
--- package/lshw/Config.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
package/lshw/Config.in +1 -0
@@ -3,6 +3,7 @@ config BR2_PACKAGE_LSHW depends on BR2_INSTALL_LIBSTDCPP depends on BR2_LARGEFILE depends on BR2_USE_WCHAR + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT help lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the machine.
Signature · 1 line
1.7.2.5
PATCH 8/12 package/pulseaudio: fix build-dependency on gettext
In reply to Yann E. MORINIn its Config.in, pulseaudio declares a dependency on gettext using the documented construct:
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
but in its .mk file, declares a dependency on the package:
PULSEAUDIO_DEPENDENCIES = [...] $(if $(BR2_PACKAGE_GETTEXT),gettext) [...]
instead of the documented:
$(if $(BR2_NEEDS_GETTEXT),gettext)
Fix that.
--- package/multimedia/pulseaudio/pulseaudio.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
package/multimedia/pulseaudio/pulseaudio.mk +1 -1
@@ -16,7 +16,7 @@ PULSEAUDIO_CONF_OPT = \ PULSEAUDIO_DEPENDENCIES = \ host-pkg-config libtool json-c libsndfile speex host-intltool \ - $(if $(BR2_PACKAGE_GETTEXT),gettext) \ + $(if $(BR2_NEEDS_GETTEXT),gettext) \ $(if $(BR2_PACKAGE_LIBATOMIC_OPS),libatomic_ops) \ $(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \ $(if $(BR2_PACKAGE_ALSA_LIB),alsa-lib) \
Signature · 1 line
1.7.2.5
PATCH 9/12 toolchain/common: rename BR2_NEEDS_GETTEXT
In reply to Yann E. MORINRename the BR2_NEEDS_GETTEXT variable to a more explanatory name, BR2_NEEDS_EXTERNAL_GETTEXT.
Update manual and all packages accordingly.
--- docs/manual/adding-packages-gettext.txt | 12 ++++++------ package/avahi/Config.in | 2 +- package/avahi/avahi.mk | 2 +- package/axel/Config.in | 2 +- package/axel/axel.mk | 2 +- package/binutils/Config.in | 2 +- package/binutils/binutils.mk | 2 +- package/dnsmasq/Config.in | 2 +- package/dnsmasq/dnsmasq.mk | 4 ++-- package/gdk-pixbuf/Config.in | 2 +- package/gdk-pixbuf/gdk-pixbuf.mk | 2 +- package/gettext/Config.in | 4 ++-- package/glib-networking/Config.in | 2 +- package/glib-networking/glib-networking.mk | 2 +- package/gmpc/Config.in | 2 +- package/gmpc/gmpc.mk | 2 +- package/grep/Config.in | 2 +- package/grep/grep.mk | 2 +- package/kbd/Config.in | 2 +- package/kbd/kbd.mk | 2 +- package/libglib2/Config.in | 2 +- package/libglib2/libglib2.mk | 2 +- package/libidn/Config.in | 2 +- package/libidn/libidn.mk | 2 +- package/libsoup/Config.in | 2 +- package/libsoup/libsoup.mk | 2 +- package/lshw/Config.in | 2 +- package/lshw/lshw.mk | 4 ++-- package/make/Config.in | 2 +- package/make/make.mk | 2 +- package/midori/Config.in | 2 +- package/midori/midori.mk | 2 +- package/multimedia/pulseaudio/Config.in | 2 +- package/multimedia/pulseaudio/pulseaudio.mk | 2 +- package/pango/Config.in | 2 +- package/pango/pango.mk | 2 +- package/php/Config.ext | 2 +- package/php/php.mk | 2 +- package/psmisc/Config.in | 2 +- package/psmisc/psmisc.mk | 2 +- package/quota/Config.in | 2 +- package/quota/quota.mk | 2 +- package/sshfs/Config.in | 2 +- package/sshfs/sshfs.mk | 2 +- package/sysstat/Config.in | 2 +- package/sysstat/sysstat.mk | 2 +- package/ushare/Config.in | 2 +- package/ushare/ushare.mk | 2 +- package/vala/Config.in | 2 +- package/vala/vala.mk | 2 +- toolchain/toolchain-common.in | 6 +++--- 51 files changed, 61 insertions(+), 61 deletions(-)
docs/manual/adding-packages-gettext.txt +6 -6
@@ -18,23 +18,23 @@ is enabled. Therefore, Buildroot defines two configuration options: -* +BR2_NEEDS_GETTEXT+, which is true as soon as the toolchain doesn't +* +BR2_NEEDS_EXTERNAL_GETTEXT+, which is true as soon as the toolchain doesn't provide its own gettext implementation -* +BR2_NEEDS_GETTEXT_IF_LOCALE+, which is true if the toolchain +* +BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE+, which is true if the toolchain doesn't provide its own gettext implementation and if locale support is enabled Therefore, packages that unconditionally need gettext should: -* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT+ +* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT+ -* Use +$(if $(BR2_NEEDS_GETTEXT),gettext)+ in the package +* Use +$(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext)+ in the package +DEPENDENCIES+ variable Packages that need gettext only when locale support is enabled should: -* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE+ +* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE+ -* Use +$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)+ in the package +* Use +$(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext)+ in the package +DEPENDENCIES+ variable
package/avahi/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_AVAHI bool "avahi" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help Avahi is a system which facilitates service discovery on a local network.
package/avahi/avahi.mk +1 -1
@@ -85,7 +85,7 @@ AVAHI_CONF_OPT = --localstatedir=/var \ --with-autoipd-user=default \ --with-autoipd-group=default -AVAHI_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-intltool host-pkg-config +AVAHI_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) host-intltool host-pkg-config ifneq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_AVAHI_AUTOIPD),) AVAHI_DEPENDENCIES += libdaemon
package/axel/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_AXEL bool "axel" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE depends on BR2_TOOLCHAIN_HAS_THREADS help HTTP/FTP download accelerator.
package/axel/axel.mk +1 -1
@@ -9,7 +9,7 @@ AXEL_SITE = https://alioth.debian.org/frs/download.php/3015 AXEL_LDFLAGS = -lpthread -ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +ifeq ($(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),y) AXEL_DEPENDENCIES += gettext AXEL_LDFLAGS += -lintl endif
package/binutils/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_BINUTILS bool "binutils" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help Install binutils on the target
package/binutils/binutils.mk +1 -1
@@ -23,7 +23,7 @@ BINUTILS_SITE = ftp://www.at91.com/pub/buildroot endif BINUTILS_EXTRA_CONFIG_OPTIONS = $(call qstrip,$(BR2_BINUTILS_EXTRA_CONFIG_OPTIONS)) BINUTILS_INSTALL_STAGING = YES -BINUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) +BINUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) # We need to specify host & target to avoid breaking ARM EABI BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
package/dnsmasq/Config.in +1 -1
@@ -24,7 +24,7 @@ config BR2_PACKAGE_DNSMASQ_IDN bool "IDN support" depends on BR2_USE_WCHAR select BR2_PACKAGE_LIBIDN - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help Enable IDN support in dnsmasq. This option is a big space taker since it pulls in many libraries.
package/dnsmasq/dnsmasq.mk +2 -2
@@ -24,8 +24,8 @@ endif # NLS requires IDN so only enable it (i18n) when IDN is true ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y) - DNSMASQ_DEPENDENCIES += libidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) - DNSMASQ_MAKE_OPT += LDFLAGS+="-lidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)" + DNSMASQ_DEPENDENCIES += libidn $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) + DNSMASQ_MAKE_OPT += LDFLAGS+="-lidn $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),-lintl)" DNSMASQ_COPTS += -DHAVE_IDN DNSMASQ_I18N = $(if $(BR2_ENABLE_LOCALE),-i18n) endif
package/gdk-pixbuf/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_GDK_PIXBUF bool "gdk-pixbuf" depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help Gdk-Pixbuf is an image loader and scaler. It uses GObject
package/gdk-pixbuf/gdk-pixbuf.mk +1 -1
@@ -35,7 +35,7 @@ GDK_PIXBUF_DEPENDENCIES += tiff endif GDK_PIXBUF_DEPENDENCIES += \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ + $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_ENABLE_LOCALE),,libiconv) \ host-pkg-config libglib2
package/gettext/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_GETTEXT bool "gettext" - depends on BR2_NEEDS_GETTEXT + depends on BR2_NEEDS_EXTERNAL_GETTEXT depends on BR2_USE_WCHAR help The GNU `gettext' utilities are a set of tools that provide a
@@ -22,4 +22,4 @@ config BR2_PACKAGE_GETTEXT_TOOLS correct operation of programs. comment "gettext requires a toolchain with WCHAR support" - depends on BR2_NEEDS_GETTEXT && !BR2_USE_WCHAR + depends on BR2_NEEDS_EXTERNAL_GETTEXT && !BR2_USE_WCHAR
package/glib-networking/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_GLIB_NETWORKING bool "glib-networking" depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT help Network-related GIO modules for glib.
package/glib-networking/glib-networking.mk +1 -1
@@ -13,7 +13,7 @@ GLIB_NETWORKING_SOURCE = glib-networking-$(GLIB_NETWORKING_VERSION).tar.xz GLIB_NETWORKING_INSTALL_STAGING = YES GLIB_NETWORKING_DEPENDENCIES = \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ + $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) \ host-pkg-config \ host-intltool \ libglib2
package/gmpc/Config.in +1 -1
@@ -4,7 +4,7 @@ config BR2_PACKAGE_GMPC depends on BR2_USE_WCHAR # glib2 depends on BR2_PACKAGE_XORG7 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_LIBMPD select BR2_PACKAGE_LIBSOUP
package/gmpc/gmpc.mk +1 -1
@@ -11,6 +11,6 @@ GMPC_CONF_OPT = --disable-mmkeys --disable-unique GMPC_DEPENDENCIES = host-gob2 host-intltool host-pkg-config host-vala \ libglib2 libgtk2 libmpd libsoup sqlite \ xlib_libICE xlib_libSM xlib_libX11 \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) + $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) $(eval $(autotools-package))
package/grep/Config.in +1 -1
@@ -1,7 +1,7 @@ config BR2_PACKAGE_GREP bool "grep" depends on BR2_USE_WCHAR - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help The GNU regular expression matcher.
package/grep/grep.mk +1 -1
@@ -8,7 +8,7 @@ GREP_VERSION = 2.13 GREP_SITE = $(BR2_GNU_MIRROR)/grep GREP_SOURCE = grep-$(GREP_VERSION).tar.xz GREP_CONF_OPT = --disable-perl-regexp --without-included-regex -GREP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) +GREP_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) # link with iconv if enabled ifeq ($(BR2_PACKAGE_LIBICONV),y)
package/kbd/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_KBD bool "kbd" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE # Uses fork() depends on BR2_USE_MMU help
package/kbd/kbd.mk +1 -1
@@ -2,6 +2,6 @@ KBD_VERSION = 1.15.2 KBD_SOURCE = kbd-$(KBD_VERSION).tar.gz KBD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kbd -KBD_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) +KBD_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) $(eval $(autotools-package))
package/libglib2/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBGLIB2 bool "libglib2" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_LIBFFI select BR2_PACKAGE_ZLIB
package/libglib2/libglib2.mk +1 -1
@@ -55,7 +55,7 @@ HOST_LIBGLIB2_CONF_OPT = \ --disable-gtk-doc \ --enable-debug=no \ -LIBGLIB2_DEPENDENCIES = host-pkg-config host-libglib2 libffi zlib $(if $(BR2_NEEDS_GETTEXT),gettext) +LIBGLIB2_DEPENDENCIES = host-pkg-config host-libglib2 libffi zlib $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext) HOST_LIBGLIB2_DEPENDENCIES = host-pkg-config host-libffi host-zlib
package/libidn/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBIDN bool "libidn" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help Libidn's purpose is to encode and decode internationalized domain names.
package/libidn/libidn.mk +1 -1
@@ -9,7 +9,7 @@ LIBIDN_SITE = $(BR2_GNU_MIRROR)/libidn LIBIDN_INSTALL_STAGING = YES LIBIDN_CONF_ENV = EMACS="no" LIBIDN_CONF_OPT = --disable-java --enable-csharp=no -LIBIDN_DEPENDENCIES = host-pkg-config $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) $(if $(BR2_PACKAGE_LIBICONV),libiconv) +LIBIDN_DEPENDENCIES = host-pkg-config $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) $(if $(BR2_PACKAGE_LIBICONV),libiconv) define LIBIDN_REMOVE_BINARY rm -f $(TARGET_DIR)/usr/bin/idn
package/libsoup/Config.in +1 -1
@@ -3,7 +3,7 @@ config BR2_PACKAGE_LIBSOUP depends on BR2_USE_WCHAR # glib2 and gnutls select BR2_PACKAGE_LIBXML2 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT help libsoup is an HTTP client/server library. It uses GObject and the GLib main loop, to integrate well with GNOME
package/libsoup/libsoup.mk +1 -1
@@ -19,7 +19,7 @@ endif LIBSOUP_CONF_OPT = --disable-glibtest --without-gnome -LIBSOUP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-pkg-config host-libglib2 libglib2 libxml2 +LIBSOUP_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) host-pkg-config host-libglib2 libglib2 libxml2 ifeq ($(BR2_PACKAGE_LIBSOUP_SSL),y) LIBSOUP_DEPENDENCIES += glib-networking
package/lshw/Config.in +1 -1
@@ -3,7 +3,7 @@ config BR2_PACKAGE_LSHW depends on BR2_INSTALL_LIBSTDCPP depends on BR2_LARGEFILE depends on BR2_USE_WCHAR - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT help lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the machine.
package/lshw/lshw.mk +2 -2
@@ -8,8 +8,8 @@ LSHW_VERSION = B.02.16 LSHW_SITE = http://ezix.org/software/files LSHW_MAKE_OPT = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" AR="$(TARGET_AR)" \ RPM_OPT_FLAGS="$(TARGET_CFLAGS)" all -LSHW_MAKE_ENV = LIBS="$(if $(BR2_NEEDS_GETTEXT),-lintl)" -LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT),gettext) +LSHW_MAKE_ENV = LIBS="$(if $(BR2_NEEDS_EXTERNAL_GETTEXT),-lintl)" +LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext) define LSHW_BUILD_CMDS $(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPT)
package/make/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_MAKE bool "make" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help A tool which controls the generation of executables and other non-source files of a program from the program's source files.
package/make/make.mk +1 -1
@@ -7,7 +7,7 @@ MAKE_VERSION:=3.81 MAKE_SOURCE:=make-$(MAKE_VERSION).tar.bz2 MAKE_SITE:=$(BR2_GNU_MIRROR)/make -MAKE_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) +MAKE_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) MAKE_CONF_ENV = make_cv_sys_gnu_glob=no \ GLOBINC='-I$(@D)/glob' \
package/midori/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_MIDORI bool "midori" select BR2_PACKAGE_WEBKIT select BR2_PACKAGE_LIBSEXY - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE depends on BR2_PACKAGE_LIBGTK2 depends on BR2_INSTALL_LIBSTDCPP # webkit
package/midori/midori.mk +1 -1
@@ -14,7 +14,7 @@ MIDORI_DEPENDENCIES = \ libgtk2 \ libsexy \ webkit \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ + $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_PACKAGE_LIBICONV),libiconv) ifneq ($(BR2_PACKAGE_XORG7),y)
package/multimedia/pulseaudio/Config.in +1 -1
@@ -5,7 +5,7 @@ config BR2_PACKAGE_PULSEAUDIO select BR2_PACKAGE_JSON_C select BR2_PACKAGE_LIBSNDFILE select BR2_PACKAGE_SPEEX - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT help PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications. It allows you to do
package/multimedia/pulseaudio/pulseaudio.mk +1 -1
@@ -16,7 +16,7 @@ PULSEAUDIO_CONF_OPT = \ PULSEAUDIO_DEPENDENCIES = \ host-pkg-config libtool json-c libsndfile speex host-intltool \ - $(if $(BR2_NEEDS_GETTEXT),gettext) \ + $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext) \ $(if $(BR2_PACKAGE_LIBATOMIC_OPS),libatomic_ops) \ $(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \ $(if $(BR2_PACKAGE_ALSA_LIB),alsa-lib) \
package/pango/Config.in +1 -1
@@ -5,7 +5,7 @@ config BR2_PACKAGE_PANGO select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_EXPAT select BR2_PACKAGE_CAIRO - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that
package/pango/pango.mk +1 -1
@@ -41,7 +41,7 @@ PANGO_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \ PANGO_CONF_OPT = --enable-explicit-deps=no --disable-debug -PANGO_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-pkg-config libglib2 cairo +PANGO_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) host-pkg-config libglib2 cairo ifeq ($(BR2_PACKAGE_XORG7),y) PANGO_CONF_OPT += --with-x \
package/php/Config.ext +1 -1
@@ -146,7 +146,7 @@ comment "Human language and character encoding support" config BR2_PACKAGE_PHP_EXT_GETTEXT bool "Gettext" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT depends on BR2_USE_WCHAR help Gettext support
package/php/php.mk +1 -1
@@ -85,7 +85,7 @@ endif ifeq ($(BR2_PACKAGE_PHP_EXT_GETTEXT),y) PHP_CONF_OPT += --with-gettext=$(STAGING_DIR)/usr - PHP_DEPENDENCIES += $(if $(BR2_NEEDS_GETTEXT),gettext) + PHP_DEPENDENCIES += $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext) endif ifeq ($(BR2_PACKAGE_PHP_EXT_ICONV),y)
package/psmisc/Config.in +1 -1
@@ -1,7 +1,7 @@ config BR2_PACKAGE_PSMISC bool "psmisc" select BR2_PACKAGE_NCURSES - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help Helpful /proc related utilities such as pstree, fuser, and killall
package/psmisc/psmisc.mk +1 -1
@@ -8,7 +8,7 @@ PSMISC_VERSION = 22.16 PSMISC_SITE = http://downloads.sourceforge.net/project/psmisc/psmisc PSMISC_LICENSE = GPLv2 PSMISC_LICENSE_FILES = COPYING -PSMISC_DEPENDENCIES = ncurses $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) +PSMISC_DEPENDENCIES = ncurses $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) ifneq ($(BR2_TOOLCHAIN_BUILDROOT_USE_SSP),y) # Don't force -fstack-protector
package/quota/Config.in +1 -1
@@ -5,7 +5,7 @@ config BR2_PACKAGE_QUOTA depends on BR2_USE_WCHAR select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_MOUNT - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help Implementation of the disk quota system.
package/quota/quota.mk +1 -1
@@ -10,7 +10,7 @@ QUOTA_SITE = http://downloads.sourceforge.net/project/linuxquota/quota-tools/$(Q QUOTA_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +ifeq ($(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),y) QUOTA_DEPENDENCIES = gettext QUOTA_MAKE_OPT += LDFLAGS="$(TARGET_LDFLAGS) -lintl" endif
package/sshfs/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_SSHFS bool "sshfs (FUSE)" select BR2_PACKAGE_LIBFUSE select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_OPENSSH depends on BR2_LARGEFILE
package/sshfs/sshfs.mk +1 -1
@@ -9,7 +9,7 @@ SSHFS_SITE = http://downloads.sourceforge.net/project/fuse/sshfs-fuse/$(SSHFS_VE SSHFS_SOURCE = sshfs-fuse-$(SSHFS_VERSION).tar.gz SSHFS_DEPENDENCIES = \ libglib2 libfuse openssh \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ + $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_ENABLE_LOCALE),,libiconv) $(eval $(autotools-package))
package/sysstat/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_SYSSTAT bool "sysstat" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE # Uses fork() depends on BR2_USE_MMU help
package/sysstat/sysstat.mk +1 -1
@@ -13,7 +13,7 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y) SYSSTAT_CONF_OPT += --disable-documentation endif -ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +ifeq ($(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),y) SYSSTAT_DEPENDENCIES += gettext SYSSTAT_MAKE_OPT += CFLAGS+=-lintl endif
package/ushare/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_USHARE bool "ushare" depends on BR2_LARGEFILE select BR2_PACKAGE_LIBUPNP - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE help uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices
package/ushare/ushare.mk +1 -1
@@ -9,7 +9,7 @@ USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2 USHARE_SITE = http://ushare.geexbox.org/releases USHARE_DEPENDENCIES = host-pkg-config libupnp -ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +ifeq ($(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),y) USHARE_DEPENDENCIES += gettext USHARE_LDFLAGS += -lintl endif
package/vala/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_VALA bool "vala" depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help Compiler for the GObject type system.
package/vala/vala.mk +1 -1
@@ -10,7 +10,7 @@ VALA_VERSION = $(VALA_VERSION_MAJOR).$(VALA_VERSION_MINOR) VALA_SITE = http://download.gnome.org/sources/vala/$(VALA_VERSION_MAJOR) VALA_SOURCE = vala-$(VALA_VERSION).tar.xz VALA_DEPENDENCIES = host-flex libglib2 \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) + $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) HOST_VALA_DEPENDENCIES = host-flex host-libglib2 $(eval $(autotools-package))
toolchain/toolchain-common.in +3 -3
@@ -82,15 +82,15 @@ config BR2_GENERATE_LOCALE # locale support is enabled. See the documentation for how packages # should rely on the following two options. -config BR2_NEEDS_GETTEXT +config BR2_NEEDS_EXTERNAL_GETTEXT bool default y if BR2_TOOLCHAIN_BUILDROOT default y if BR2_TOOLCHAIN_EXTERNAL_UCLIBC default y if BR2_TOOLCHAIN_CTNG_uClibc -config BR2_NEEDS_GETTEXT_IF_LOCALE +config BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE bool - default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE) + default y if (BR2_NEEDS_EXTERNAL_GETTEXT && BR2_ENABLE_LOCALE) config BR2_USE_MMU bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_sh || BR2_xtensa
Signature · 1 line
1.7.2.5
PATCH 10/12 pkg-infra: ensure gettext gets built before all other packages
In reply to Yann E. MORINIf the gettext package is selected, it means that the toolchain does not provide gettext functionality, and that at least one package needs it. Thus, the gettext package needs to be built before any such package.
So far, packages that need gettext declare an explicit conditional build-dependency upon gettext, thus ensuring that gettext be built before they are.
But if gettext was built first, packages would no longer need to declare such an explicit build-dependency.
As it is not easy to ensure that gettext be the first package, we can also declare it as a dependency of all packages (except itself, of course).
--- package/pkg-generic.mk | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
package/pkg-generic.mk +6 -3
@@ -367,7 +367,8 @@ $(1)-patch: $(1)-extract $$($(2)_TARGET_PATCH) $(1)-extract: $(1)-source \ $$($(2)_TARGET_EXTRACT) -$(1)-depends: $$($(2)_DEPENDENCIES) +$(1)-depends: $(filter-out $(1),$(if $(BR2_PACKAGE_GETTEXT),gettext)) \ + $$($(2)_DEPENDENCIES) $(1)-source: $$($(2)_TARGET_SOURCE) else
@@ -378,7 +379,9 @@ else $(1)-configure: $(1)-depends \ $$($(2)_TARGET_CONFIGURE) -$(1)-depends: $(1)-rsync $$($(2)_DEPENDENCIES) +$(1)-depends: $(1)-rsync \ + $(filter-out $(1),$(if $(BR2_PACKAGE_GETTEXT),gettext)) \ + $$($(2)_DEPENDENCIES) $(1)-rsync: $$($(2)_TARGET_RSYNC)
@@ -386,7 +389,7 @@ $(1)-source: $$($(2)_TARGET_RSYNC_SOURCE) endif $(1)-show-depends: - @echo $$($(2)_DEPENDENCIES) + @echo $(filter-out $(1),$(if $(BR2_PACKAGE_GETTEXT),gettext)) $$($(2)_DEPENDENCIES) $(1)-uninstall: $(1)-configure $$($(2)_TARGET_UNINSTALL)
Signature · 1 line
1.7.2.5
PATCH 10/12 pkg-infra: ensure gettext gets built before all other packages
Quoted 8 lines · Yann E. MORIN
If the gettext package is selected, it means that the toolchain does not provide gettext functionality, and that at least one package needs it. Thus, the gettext package needs to be built before any such package.
So far, packages that need gettext declare an explicit conditional build-dependency upon gettext, thus ensuring that gettext be built before they are.
Quoted 5 lines
But if gettext was built first, packages would no longer need to declare such an explicit build-dependency.
As it is not easy to ensure that gettext be the first package, we can also declare it as a dependency of all packages (except itself, of course).
I don't like this. I don't like the idea of having redundant dependencies,
I don't like to have a single thing that everything depends on, I don't like the $(filter-out ...) construct.
I also don't like that it breaks the build when the toolchain depends on some
package (sstrip, ccache, ...).
Possible alternatives:
* Use a construct similar to patch 11/12: $(gettext-dependency) which is
nothing unless gettext is enabled.
* Move this dependency into the toolchain logic - which means duplicating
it three times so maybe not such a good idea...
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH 10/12 pkg-infra: ensure gettext gets built before all other packages
Arnout, All,
Quoted 5 lines · On Sunday 02 September 2012 22:30:48 Arnout Vandecappelle wrote:
Quoted 2 lines · Yann E. MORIN
As it is not easy to ensure that gettext be the first package, we can also declare it as a dependency of all packages (except itself, of course).
I don't like this.
Well, it's not ideal. I am not too fond of it either.
The reason for this patch was to avoid adding gettext to _DEPENDENCIES, because packages have different ways of doing so:
ifeq ($(BR2_PACKAGE_GETTEXT),y)
xxx_DEPENDENCIES += gettext
endif
or:
xxx_DEPENDENCIES += $(if $(BR2_PACKAGE_GETTEXT),gettext)
Without counting packages that test:
BR2_PACKAGE_GETTEXT
BR2_NEEDS_GETTEXT
BR2_NEEDS_GETTEXT_IF_LOCALE
and packages that need to add explicit link against -lintl
But I'll drop that patch.
Quoted 2 lines
I also don't like that it breaks the build when the toolchain depends on some
package (sstrip, ccache, ...).
Ah, I did test with an external toolchain.
Quoted 3 lines
Possible alternatives:
* Use a construct similar to patch 11/12: $(gettext-dependency) which is
nothing unless gettext is enabled.
Will do that.
Quoted 2 lines
* Move this dependency into the toolchain logic - which means duplicating
it three times so maybe not such a good idea...
Not sure I understand this... O_o
Thanks for the review!
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 10/12 pkg-infra: ensure gettext gets built before all other packages
Quoted 3 lines · Yann E. MORIN
Quoted 2 lines
Quoted 2 lines
* Move this dependency into the toolchain logic - which means duplicating
it three times so maybe not such a good idea...Not sure I understand this...
O_o
All the more reason not to do it :-)
I'm currently running a test build with the whole patch series (barring 10/12 and 12/12) - result in an hour or so.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH 10/12 pkg-infra: ensure gettext gets built before all other packages
In reply to Arnout VandecappelleLe Sun, 02 Sep 2012 22:30:48 +0200,
Arnout Vandecappelle <[email protected]> a ?crit :
Quoted 7 lines
I don't like this. I don't like the idea of having redundant
dependencies, I don't like to have a single thing that everything depends on, I don't like the $(filter-out ...) construct.I also don't like that it breaks the build when the toolchain
depends on some package (sstrip, ccache, ...).
Quoted 7 lines
Possible alternatives:
* Use a construct similar to patch 11/12: $(gettext-dependency)
which is nothing unless gettext is enabled.* Move this dependency into the toolchain logic - which means
duplicating it three times so maybe not such a good idea...
I don't like it either, and I don't think I like those alternatives either.
I prefer keeping the explicit dependency in the packages, because I don't like things that are too magic.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 10/12 pkg-infra: ensure gettext gets built before all other packages
Quoted 15 lines · Thomas Petazzoni
Le Sun, 02 Sep 2012 22:30:48 +0200,
Arnout Vandecappelle<[email protected]> a ?crit :Quoted 12 lines
I don't like this. I don't like the idea of having redundant
dependencies, I don't like to have a single thing that everything depends on, I don't like the $(filter-out ...) construct.I also don't like that it breaks the build when the toolchain
depends on some package (sstrip, ccache, ...).Possible alternatives:
* Use a construct similar to patch 11/12: $(gettext-dependency)
which is nothing unless gettext is enabled.
Quoted 8 lines
Quoted 2 lines
* Move this dependency into the toolchain logic - which means
duplicating it three times so maybe not such a good idea...I don't like it either, and I don't think I like those alternatives either.
I prefer keeping the explicit dependency in the packages, because I don't like things that are too magic.
With $(gettext-dependency), the dependency is explicit. You'll see
in Yann's next patch series :-)
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH 11/12 toolchain/common: introduce blind options BR2_NEEDS_GETTEXT{, _IF_LOCALE}
In reply to Yann E. MORINIntroduce two new blind config options:
- BR2_NEEDS_GETTEXT
selects the gettext package if the toolchain does not provide it
- BR2_NEEDS_GETTEXT_IF_LOCALE
ditto, but only if locales are enabled
Packages can then select either if they require gettext (resp. if locales are enabled).
This will simplify the packages Config.in by no longer requiring that the 'select' be conditional, thus hiding the gory details out of packages, which don't really need to know about those details.
Also, introduce two new Makefile variables:
- $(gettext-LDFLAGS)
contains the required LDFLAGS ("-lintl") if gettext is provided by the gettext package, empty otherwise
- $(gettext-LDFLAGS-if-locale)
ditto, but only if locales are enabled
Packages can then add either variable to their own LDFLAGS.
Note: those two new options and variables are going to be used in the next patch, for now they are a no-op.
--- Makefile | 1 + docs/manual/adding-packages-gettext.txt | 32 ++++++++++++++++++------------ toolchain/toolchain-common.in | 10 ++++++++- toolchain/toolchain-common.mk | 16 +++++++++++++++ 4 files changed, 45 insertions(+), 14 deletions(-) create mode 100644 toolchain/toolchain-common.mk
Makefile +1 -0
@@ -299,6 +299,7 @@ include support/dependencies/dependencies.mk # We also need the various per-package makefiles, which also add # each selected package to TARGETS if that package was selected # in the .config file. +include toolchain/toolchain-common.mk ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) include toolchain/toolchain-buildroot.mk else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
docs/manual/adding-packages-gettext.txt +19 -13
@@ -18,23 +18,29 @@ is enabled. Therefore, Buildroot defines two configuration options: -* +BR2_NEEDS_EXTERNAL_GETTEXT+, which is true as soon as the toolchain doesn't - provide its own gettext implementation +* +BR2_NEEDS_GETTEXT+, which a package can +select+ in its +Config.in+, + to indicate it requires gettext functionality -* +BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE+, which is true if the toolchain - doesn't provide its own gettext implementation and if locale support - is enabled +* +BR2_NEEDS_GETTEXT_IF_LOCALE+, which a package can +select+ in its + +Config.in+, to indicate it requires gettext functionality if locales + are enabled -Therefore, packages that unconditionally need gettext should: +Buildroot also defines two +Makefile+ variables: -* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT+ +* +$(gettext-LDFLAGS)+, that a package can add to its +LDFLAGS+ if it + requires gettext functionality -* Use +$(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext)+ in the package - +DEPENDENCIES+ variable +* +$(gettext-LDFLAGS-if-locale)+, that a package can add to its +LDFLAGS+ + if it requires gettext functionality if locales are enabled -Packages that need gettext only when locale support is enabled should: +Example +Config.in+ excerpts for two packages: -* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE+ +---- +config BR2_PACKAGE_FOO + bool "foo" + select BR2_NEEDS_GETTEXT -* Use +$(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext)+ in the package - +DEPENDENCIES+ variable +config BR2_PACKAGE_BAR + bool "bar" + select BR2_NEEDS_GETTEXT_IF_LOCALE +----
toolchain/toolchain-common.in +9 -1
@@ -80,7 +80,7 @@ config BR2_GENERATE_LOCALE # gettext isn't needed and shouldn't be built to avoid conflicts. Some # packages always need gettext, other packages only need gettext when # locale support is enabled. See the documentation for how packages -# should rely on the following two options. +# should rely on the following four options. config BR2_NEEDS_EXTERNAL_GETTEXT bool
@@ -92,6 +92,14 @@ config BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE bool default y if (BR2_NEEDS_EXTERNAL_GETTEXT && BR2_ENABLE_LOCALE) +config BR2_NEEDS_GETTEXT + bool + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT + +config BR2_NEEDS_GETTEXT_IF_LOCALE + bool + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + config BR2_USE_MMU bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_sh || BR2_xtensa default y if !BR2_bfin
toolchain/toolchain-common.mk new file +16 -0
@@ -0,0 +1,16 @@ +# Common set of variables + +# $(gettext-LDFLAGS) +# - set to "-lintl" if the toolchain does not provide gettext, and +# package gettext is selected +# - empty otherwise +# +# $(gettext-LDFLAGS-if-locale) +# - set to "-lintl" if the toolchain does not provide gettext, and +# locales are enabled, and package gettext is selected +# - empty otherwise +# +ifeq ($(BR2_PACKAGE_GETTEXT),y) +gettext-LDFLAGS = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),-lintl) +gettext-LDFLAGS-if-locale = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),-lintl) +endif
Signature · 1 line
1.7.2.5
PATCH 12/12 packages: use the new gettext mechanism
In reply to Yann E. MORIN--- package/avahi/Config.in | 2 +- package/avahi/avahi.mk | 7 ++----- package/axel/Config.in | 2 +- package/axel/axel.mk | 6 +----- package/binutils/Config.in | 2 +- package/binutils/binutils.mk | 1 - package/diffutils/diffutils.mk | 2 -- package/dnsmasq/Config.in | 2 +- package/dnsmasq/dnsmasq.mk | 4 ++-- package/flex/flex.mk | 2 -- package/gdk-pixbuf/Config.in | 2 +- package/gdk-pixbuf/gdk-pixbuf.mk | 1 - package/glib-networking/Config.in | 2 +- package/glib-networking/glib-networking.mk | 1 - package/gmpc/Config.in | 2 +- package/gmpc/gmpc.mk | 3 +-- package/grep/Config.in | 2 +- package/grep/grep.mk | 1 - package/kbd/Config.in | 2 +- package/kbd/kbd.mk | 2 -- package/libglib2/Config.in | 2 +- package/libglib2/libglib2.mk | 2 +- package/libidn/Config.in | 2 +- package/libidn/libidn.mk | 2 +- package/libsoup/Config.in | 2 +- package/libsoup/libsoup.mk | 2 +- package/lshw/Config.in | 2 +- package/lshw/lshw.mk | 3 +-- package/make/Config.in | 2 +- package/make/make.mk | 2 -- package/midori/Config.in | 2 +- package/midori/midori.mk | 1 - package/multimedia/pulseaudio/Config.in | 2 +- package/multimedia/pulseaudio/pulseaudio.mk | 1 - package/ndisc6/ndisc6.mk | 5 +---- package/pango/Config.in | 2 +- package/pango/pango.mk | 2 +- package/php/Config.ext | 2 +- package/php/php.mk | 1 - package/psmisc/Config.in | 2 +- package/psmisc/psmisc.mk | 2 +- package/quota/Config.in | 2 +- package/quota/quota.mk | 5 +---- package/sshfs/Config.in | 2 +- package/sshfs/sshfs.mk | 1 - package/sysstat/Config.in | 2 +- package/sysstat/sysstat.mk | 5 +---- package/ushare/Config.in | 2 +- package/ushare/ushare.mk | 5 +---- package/util-linux/util-linux.mk | 5 +---- package/vala/Config.in | 2 +- package/vala/vala.mk | 3 +-- 52 files changed, 42 insertions(+), 83 deletions(-)
package/avahi/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_AVAHI bool "avahi" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help Avahi is a system which facilitates service discovery on a local network.
package/avahi/avahi.mk +2 -5
@@ -85,7 +85,7 @@ AVAHI_CONF_OPT = --localstatedir=/var \ --with-autoipd-user=default \ --with-autoipd-group=default -AVAHI_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) host-intltool host-pkg-config +AVAHI_DEPENDENCIES = host-intltool host-pkg-config ifneq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_AVAHI_AUTOIPD),) AVAHI_DEPENDENCIES += libdaemon
@@ -133,10 +133,7 @@ else AVAHI_CONF_OPT += --disable-python endif -ifeq ($(BR2_PACKAGE_GETTEXT),y) -AVAHI_DEPENDENCIES += gettext -AVAHI_MAKE_OPT = LIBS=-lintl -endif +AVAHI_MAKE_OPT = LIBS="$(gettext-LDFLAGS-if-locale)" define AVAHI_REMOVE_INITSCRIPT rm -rf $(TARGET_DIR)/etc/init.d/avahi-*
package/axel/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_AXEL bool "axel" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE depends on BR2_TOOLCHAIN_HAS_THREADS help HTTP/FTP download accelerator.
package/axel/axel.mk +1 -5
@@ -8,11 +8,7 @@ AXEL_SOURCE = axel-$(AXEL_VERSION).tar.gz AXEL_SITE = https://alioth.debian.org/frs/download.php/3015 AXEL_LDFLAGS = -lpthread - -ifeq ($(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),y) -AXEL_DEPENDENCIES += gettext -AXEL_LDFLAGS += -lintl -endif +AXEL_LDFLAGS += $(gettext-LDFLAGS-if-locale) ifneq ($(BR2_ENABLE_LOCALE),y) AXEL_DISABLE_I18N=--i18n=0
package/binutils/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_BINUTILS bool "binutils" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help Install binutils on the target
package/binutils/binutils.mk +0 -1
@@ -23,7 +23,6 @@ BINUTILS_SITE = ftp://www.at91.com/pub/buildroot endif BINUTILS_EXTRA_CONFIG_OPTIONS = $(call qstrip,$(BR2_BINUTILS_EXTRA_CONFIG_OPTIONS)) BINUTILS_INSTALL_STAGING = YES -BINUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) # We need to specify host & target to avoid breaking ARM EABI BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
package/diffutils/diffutils.mk +0 -2
@@ -6,8 +6,6 @@ DIFFUTILS_VERSION = 3.2 DIFFUTILS_SITE = $(BR2_GNU_MIRROR)/diffutils -DIFFUTILS_DEPENDENCIES = \ - $(if $(BR2_PACKAGE_GETTEXT),gettext) ifeq ($(BR2_PACKAGE_BUSYBOX),y) DIFFUTILS_DEPENDENCIES += busybox
package/dnsmasq/Config.in +1 -1
@@ -24,7 +24,7 @@ config BR2_PACKAGE_DNSMASQ_IDN bool "IDN support" depends on BR2_USE_WCHAR select BR2_PACKAGE_LIBIDN - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help Enable IDN support in dnsmasq. This option is a big space taker since it pulls in many libraries.
package/dnsmasq/dnsmasq.mk +2 -2
@@ -24,8 +24,8 @@ endif # NLS requires IDN so only enable it (i18n) when IDN is true ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y) - DNSMASQ_DEPENDENCIES += libidn $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) - DNSMASQ_MAKE_OPT += LDFLAGS+="-lidn $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),-lintl)" + DNSMASQ_DEPENDENCIES += libidn + DNSMASQ_MAKE_OPT += LDFLAGS+="-lidn $(gettext-LDFLAGS-if-locale)" DNSMASQ_COPTS += -DHAVE_IDN DNSMASQ_I18N = $(if $(BR2_ENABLE_LOCALE),-i18n) endif
package/flex/flex.mk +0 -2
@@ -11,8 +11,6 @@ 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) # we don't have a host-gettext/libintl HOST_FLEX_DEPENDENCIES =
package/gdk-pixbuf/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_GDK_PIXBUF bool "gdk-pixbuf" depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT + select BR2_NEEDS_GETTEXT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help Gdk-Pixbuf is an image loader and scaler. It uses GObject
package/gdk-pixbuf/gdk-pixbuf.mk +0 -1
@@ -35,7 +35,6 @@ GDK_PIXBUF_DEPENDENCIES += tiff endif GDK_PIXBUF_DEPENDENCIES += \ - $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_ENABLE_LOCALE),,libiconv) \ host-pkg-config libglib2
package/glib-networking/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_GLIB_NETWORKING bool "glib-networking" depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT + select BR2_NEEDS_GETTEXT help Network-related GIO modules for glib.
package/glib-networking/glib-networking.mk +0 -1
@@ -13,7 +13,6 @@ GLIB_NETWORKING_SOURCE = glib-networking-$(GLIB_NETWORKING_VERSION).tar.xz GLIB_NETWORKING_INSTALL_STAGING = YES GLIB_NETWORKING_DEPENDENCIES = \ - $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) \ host-pkg-config \ host-intltool \ libglib2
package/gmpc/Config.in +1 -1
@@ -4,7 +4,7 @@ config BR2_PACKAGE_GMPC depends on BR2_USE_WCHAR # glib2 depends on BR2_PACKAGE_XORG7 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_LIBMPD select BR2_PACKAGE_LIBSOUP
package/gmpc/gmpc.mk +1 -2
@@ -10,7 +10,6 @@ GMPC_CONF_ENV = ac_cv_path_GOB2=$(GOB2_HOST_BINARY) GMPC_CONF_OPT = --disable-mmkeys --disable-unique GMPC_DEPENDENCIES = host-gob2 host-intltool host-pkg-config host-vala \ libglib2 libgtk2 libmpd libsoup sqlite \ - xlib_libICE xlib_libSM xlib_libX11 \ - $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) + xlib_libICE xlib_libSM xlib_libX11 $(eval $(autotools-package))
package/grep/Config.in +1 -1
@@ -1,7 +1,7 @@ config BR2_PACKAGE_GREP bool "grep" depends on BR2_USE_WCHAR - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help The GNU regular expression matcher.
package/grep/grep.mk +0 -1
@@ -8,7 +8,6 @@ GREP_VERSION = 2.13 GREP_SITE = $(BR2_GNU_MIRROR)/grep GREP_SOURCE = grep-$(GREP_VERSION).tar.xz GREP_CONF_OPT = --disable-perl-regexp --without-included-regex -GREP_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) # link with iconv if enabled ifeq ($(BR2_PACKAGE_LIBICONV),y)
package/kbd/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_KBD bool "kbd" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE # Uses fork() depends on BR2_USE_MMU help
package/kbd/kbd.mk +0 -2
@@ -2,6 +2,4 @@ KBD_VERSION = 1.15.2 KBD_SOURCE = kbd-$(KBD_VERSION).tar.gz KBD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kbd -KBD_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) - $(eval $(autotools-package))
package/libglib2/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBGLIB2 bool "libglib2" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT + select BR2_NEEDS_GETTEXT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_LIBFFI select BR2_PACKAGE_ZLIB
package/libglib2/libglib2.mk +1 -1
@@ -55,7 +55,7 @@ HOST_LIBGLIB2_CONF_OPT = \ --disable-gtk-doc \ --enable-debug=no \ -LIBGLIB2_DEPENDENCIES = host-pkg-config host-libglib2 libffi zlib $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext) +LIBGLIB2_DEPENDENCIES = host-pkg-config host-libglib2 libffi zlib HOST_LIBGLIB2_DEPENDENCIES = host-pkg-config host-libffi host-zlib
package/libidn/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBIDN bool "libidn" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help Libidn's purpose is to encode and decode internationalized domain names.
package/libidn/libidn.mk +1 -1
@@ -9,7 +9,7 @@ LIBIDN_SITE = $(BR2_GNU_MIRROR)/libidn LIBIDN_INSTALL_STAGING = YES LIBIDN_CONF_ENV = EMACS="no" LIBIDN_CONF_OPT = --disable-java --enable-csharp=no -LIBIDN_DEPENDENCIES = host-pkg-config $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) $(if $(BR2_PACKAGE_LIBICONV),libiconv) +LIBIDN_DEPENDENCIES = host-pkg-config $(if $(BR2_PACKAGE_LIBICONV),libiconv) define LIBIDN_REMOVE_BINARY rm -f $(TARGET_DIR)/usr/bin/idn
package/libsoup/Config.in +1 -1
@@ -3,7 +3,7 @@ config BR2_PACKAGE_LIBSOUP depends on BR2_USE_WCHAR # glib2 and gnutls select BR2_PACKAGE_LIBXML2 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT + select BR2_NEEDS_GETTEXT help libsoup is an HTTP client/server library. It uses GObject and the GLib main loop, to integrate well with GNOME
package/libsoup/libsoup.mk +1 -1
@@ -19,7 +19,7 @@ endif LIBSOUP_CONF_OPT = --disable-glibtest --without-gnome -LIBSOUP_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) host-pkg-config host-libglib2 libglib2 libxml2 +LIBSOUP_DEPENDENCIES = host-pkg-config host-libglib2 libglib2 libxml2 ifeq ($(BR2_PACKAGE_LIBSOUP_SSL),y) LIBSOUP_DEPENDENCIES += glib-networking
package/lshw/Config.in +1 -1
@@ -3,7 +3,7 @@ config BR2_PACKAGE_LSHW depends on BR2_INSTALL_LIBSTDCPP depends on BR2_LARGEFILE depends on BR2_USE_WCHAR - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT + select BR2_NEEDS_GETTEXT help lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the machine.
package/lshw/lshw.mk +1 -2
@@ -8,8 +8,7 @@ LSHW_VERSION = B.02.16 LSHW_SITE = http://ezix.org/software/files LSHW_MAKE_OPT = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" AR="$(TARGET_AR)" \ RPM_OPT_FLAGS="$(TARGET_CFLAGS)" all -LSHW_MAKE_ENV = LIBS="$(if $(BR2_NEEDS_EXTERNAL_GETTEXT),-lintl)" -LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext) +LSHW_MAKE_ENV = LIBS="$(gettext-LDFLAGS)" define LSHW_BUILD_CMDS $(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPT)
package/make/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_MAKE bool "make" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help A tool which controls the generation of executables and other non-source files of a program from the program's source files.
package/make/make.mk +0 -2
@@ -7,8 +7,6 @@ MAKE_VERSION:=3.81 MAKE_SOURCE:=make-$(MAKE_VERSION).tar.bz2 MAKE_SITE:=$(BR2_GNU_MIRROR)/make -MAKE_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) - MAKE_CONF_ENV = make_cv_sys_gnu_glob=no \ GLOBINC='-I$(@D)/glob' \ GLOBLIB=glob/libglob.a
package/midori/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_MIDORI bool "midori" select BR2_PACKAGE_WEBKIT select BR2_PACKAGE_LIBSEXY - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE depends on BR2_PACKAGE_LIBGTK2 depends on BR2_INSTALL_LIBSTDCPP # webkit
package/midori/midori.mk +0 -1
@@ -14,7 +14,6 @@ MIDORI_DEPENDENCIES = \ libgtk2 \ libsexy \ webkit \ - $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_PACKAGE_LIBICONV),libiconv) ifneq ($(BR2_PACKAGE_XORG7),y)
package/multimedia/pulseaudio/Config.in +1 -1
@@ -5,7 +5,7 @@ config BR2_PACKAGE_PULSEAUDIO select BR2_PACKAGE_JSON_C select BR2_PACKAGE_LIBSNDFILE select BR2_PACKAGE_SPEEX - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT + select BR2_NEEDS_GETTEXT help PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications. It allows you to do
package/multimedia/pulseaudio/pulseaudio.mk +0 -1
@@ -16,7 +16,6 @@ PULSEAUDIO_CONF_OPT = \ PULSEAUDIO_DEPENDENCIES = \ host-pkg-config libtool json-c libsndfile speex host-intltool \ - $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext) \ $(if $(BR2_PACKAGE_LIBATOMIC_OPS),libatomic_ops) \ $(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \ $(if $(BR2_PACKAGE_ALSA_LIB),alsa-lib) \
package/ndisc6/ndisc6.mk +1 -4
@@ -10,10 +10,7 @@ NDISC6_SITE = http://www.remlab.net/files/ndisc6/ NDISC6_CONF_ENV = CC="$(TARGET_CC) -std=gnu99" NDISC6_CONF_OPT = --localstatedir=/var --disable-rpath --disable-suid-install -ifeq ($(BR2_PACKAGE_GETTEXT),y) -NDISC6_DEPENDENCIES += gettext -NDISC6_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl" -endif +NDISC6_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(gettext-LDFLAGS)" NDISC6_BIN_ += dnssort # perl script NDISC6_BIN_$(BR2_PACKAGE_NDISC6_NAME2ADDR) += name2addr addr2name
package/pango/Config.in +1 -1
@@ -5,7 +5,7 @@ config BR2_PACKAGE_PANGO select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_EXPAT select BR2_PACKAGE_CAIRO - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that
package/pango/pango.mk +1 -1
@@ -41,7 +41,7 @@ PANGO_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \ PANGO_CONF_OPT = --enable-explicit-deps=no --disable-debug -PANGO_DEPENDENCIES = $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) host-pkg-config libglib2 cairo +PANGO_DEPENDENCIES = host-pkg-config libglib2 cairo ifeq ($(BR2_PACKAGE_XORG7),y) PANGO_CONF_OPT += --with-x \
package/php/Config.ext +1 -1
@@ -146,7 +146,7 @@ comment "Human language and character encoding support" config BR2_PACKAGE_PHP_EXT_GETTEXT bool "Gettext" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT + select BR2_NEEDS_GETTEXT depends on BR2_USE_WCHAR help Gettext support
package/php/php.mk +0 -1
@@ -85,7 +85,6 @@ endif ifeq ($(BR2_PACKAGE_PHP_EXT_GETTEXT),y) PHP_CONF_OPT += --with-gettext=$(STAGING_DIR)/usr - PHP_DEPENDENCIES += $(if $(BR2_NEEDS_EXTERNAL_GETTEXT),gettext) endif ifeq ($(BR2_PACKAGE_PHP_EXT_ICONV),y)
package/psmisc/Config.in +1 -1
@@ -1,7 +1,7 @@ config BR2_PACKAGE_PSMISC bool "psmisc" select BR2_PACKAGE_NCURSES - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help Helpful /proc related utilities such as pstree, fuser, and killall
package/psmisc/psmisc.mk +1 -1
@@ -8,7 +8,7 @@ PSMISC_VERSION = 22.16 PSMISC_SITE = http://downloads.sourceforge.net/project/psmisc/psmisc PSMISC_LICENSE = GPLv2 PSMISC_LICENSE_FILES = COPYING -PSMISC_DEPENDENCIES = ncurses $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) +PSMISC_DEPENDENCIES = ncurses ifneq ($(BR2_TOOLCHAIN_BUILDROOT_USE_SSP),y) # Don't force -fstack-protector
package/quota/Config.in +1 -1
@@ -5,7 +5,7 @@ config BR2_PACKAGE_QUOTA depends on BR2_USE_WCHAR select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_MOUNT - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help Implementation of the disk quota system.
package/quota/quota.mk +1 -4
@@ -10,10 +10,7 @@ QUOTA_SITE = http://downloads.sourceforge.net/project/linuxquota/quota-tools/$(Q QUOTA_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -ifeq ($(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),y) -QUOTA_DEPENDENCIES = gettext -QUOTA_MAKE_OPT += LDFLAGS="$(TARGET_LDFLAGS) -lintl" -endif +QUOTA_MAKE_OPT += LDFLAGS="$(TARGET_LDFLAGS) $(gettext-LDFLAGS-if-locale)" # Package uses autoconf but not automake. QUOTA_INSTALL_TARGET_OPT = \
package/sshfs/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_SSHFS bool "sshfs (FUSE)" select BR2_PACKAGE_LIBFUSE select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_OPENSSH depends on BR2_LARGEFILE
package/sshfs/sshfs.mk +0 -1
@@ -9,7 +9,6 @@ SSHFS_SITE = http://downloads.sourceforge.net/project/fuse/sshfs-fuse/$(SSHFS_VE SSHFS_SOURCE = sshfs-fuse-$(SSHFS_VERSION).tar.gz SSHFS_DEPENDENCIES = \ libglib2 libfuse openssh \ - $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_ENABLE_LOCALE),,libiconv) $(eval $(autotools-package))
package/sysstat/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_SYSSTAT bool "sysstat" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE # Uses fork() depends on BR2_USE_MMU help
package/sysstat/sysstat.mk +1 -4
@@ -13,10 +13,7 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y) SYSSTAT_CONF_OPT += --disable-documentation endif -ifeq ($(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),y) -SYSSTAT_DEPENDENCIES += gettext -SYSSTAT_MAKE_OPT += CFLAGS+=-lintl -endif +SYSSTAT_MAKE_OPT += CFLAGS+=$(gettext-LDFLAGS-if-locale) # The isag tool is a post processing script that depends on tcl/tk # among other things. So we don't install it.
package/ushare/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_USHARE bool "ushare" depends on BR2_LARGEFILE select BR2_PACKAGE_LIBUPNP - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE help uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices
package/ushare/ushare.mk +1 -4
@@ -9,10 +9,7 @@ USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2 USHARE_SITE = http://ushare.geexbox.org/releases USHARE_DEPENDENCIES = host-pkg-config libupnp -ifeq ($(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),y) -USHARE_DEPENDENCIES += gettext -USHARE_LDFLAGS += -lintl -endif +USHARE_LDFLAGS += $(gettext-LDFLAGS-if-locale) define USHARE_CONFIGURE_CMDS (cd $(@D); \
package/util-linux/util-linux.mk +1 -4
@@ -29,10 +29,7 @@ else UTIL_LINUX_CONF_OPT += --without-ncurses endif -ifeq ($(BR2_PACKAGE_GETTEXT),y) -UTIL_LINUX_DEPENDENCIES += gettext -UTIL_LINUX_MAKE_OPT += LIBS=-lintl -endif +UTIL_LINUX_MAKE_OPT += LIBS="$(gettext-LDFLAGS)" ############################################# #
package/vala/Config.in +1 -1
@@ -2,7 +2,7 @@ config BR2_PACKAGE_VALA bool "vala" depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE + select BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help Compiler for the GObject type system.
package/vala/vala.mk +1 -2
@@ -9,8 +9,7 @@ VALA_VERSION_MINOR = 2 VALA_VERSION = $(VALA_VERSION_MAJOR).$(VALA_VERSION_MINOR) VALA_SITE = http://download.gnome.org/sources/vala/$(VALA_VERSION_MAJOR) VALA_SOURCE = vala-$(VALA_VERSION).tar.xz -VALA_DEPENDENCIES = host-flex libglib2 \ - $(if $(BR2_NEEDS_EXTERNAL_GETTEXT_IF_LOCALE),gettext) +VALA_DEPENDENCIES = host-flex libglib2 HOST_VALA_DEPENDENCIES = host-flex host-libglib2 $(eval $(autotools-package))
Signature · 1 line
1.7.2.5