Clean up improper dependencies on gettext without LOCALE
cover Clean up improper dependencies on gettext without LOCALE
This is a resend of a series that cleans up redundant dependencies on gettext, in packages that select gettext when LOCALE is not enabled.
The first 7 patches really remove the gettext dependency. The last three are in fact a NOP, because libglib2 selects gettext unconditionally. I have kept the NEEDS_GETTEXT_IF_LOCALE dependency for these packages, because they do have i18n code and do require libintl. But the dependency adds nothing, because libglib2 does the same already.
There are no changes compared to the first send, except for patch 7 which received a comment from Thomas Petazzoni.
Regards,
Arnout
---
Arnout Vandecappelle (Essensium/Mind) (10):
diffutils: only needs gettext if locale is selected
flex: only needs gettext if locale is selected
ndisc6: only needs gettext if locale is selected
util-linux: only needs gettext if locale is selected
lshw: fix build with no LOCALE support
avahi: remove double dependency on gettext
pulseaudio: remove dependency on gettext
gdk-pixbuf: remove dependency on gettext
glib-networking: remove redundant dependency on gettext
libsoup: remove redundant dependency on gettext
package/avahi/avahi.mk | 5 +---- package/diffutils/Config.in | 1 + package/diffutils/diffutils.mk | 3 +-- package/flex/Config.in | 1 + package/flex/flex.mk | 3 +-- package/gdk-pixbuf/Config.in | 1 - package/gdk-pixbuf/gdk-pixbuf.mk | 1 - package/glib-networking/Config.in | 2 +- package/libsoup/Config.in | 2 +- package/lshw/Config.in | 2 +- package/lshw/lshw.mk | 12 +++++++++--- package/multimedia/pulseaudio/Config.in | 1 - package/multimedia/pulseaudio/pulseaudio.mk | 1 - package/ndisc6/Config.in | 1 + package/ndisc6/ndisc6.mk | 2 +- package/util-linux/Config.in | 1 + package/util-linux/util-linux.mk | 2 +- 17 files changed, 21 insertions(+), 20 deletions(-)
PATCH 1/10 diffutils: only needs gettext if locale is selected
Also add missing select in Config.in.
--- package/diffutils/Config.in | 1 + package/diffutils/diffutils.mk | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-)
package/diffutils/Config.in +1 -0
@@ -1,6 +1,7 @@ config BR2_PACKAGE_DIFFUTILS bool"diffutils" depends on BR2_USE_WCHAR + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help GNU diff. Compare files per line.
package/diffutils/diffutils.mk +1 -2
@@ -6,8 +6,7 @@ DIFFUTILS_VERSION = 3.2 DIFFUTILS_SITE = $(BR2_GNU_MIRROR)/diffutils -DIFFUTILS_DEPENDENCIES = \ - $(if $(BR2_PACKAGE_GETTEXT),gettext) +DIFFUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) ifeq ($(BR2_PACKAGE_BUSYBOX),y) DIFFUTILS_DEPENDENCIES += busybox
PATCH 1/10 diffutils: only needs gettext if locale is selected
Arnout, All,
Quoted 3 lines · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
Also add missing select in Config.in.
Quoted 38 lines
--- package/diffutils/Config.in | 1 + package/diffutils/diffutils.mk | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-)package/diffutils/Config.in +1
-0@@ -1,6 +1,7 @@ config BR2_PACKAGE_DIFFUTILS bool"diffutils" depends on BR2_USE_WCHAR + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help GNU diff. Compare files per line.package/diffutils/diffutils.mk +1
-2@@ -6,8 +6,7 @@ DIFFUTILS_VERSION = 3.2 DIFFUTILS_SITE = $(BR2_GNU_MIRROR)/diffutils -DIFFUTILS_DEPENDENCIES = \ - $(if $(BR2_PACKAGE_GETTEXT),gettext) +DIFFUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) ifeq ($(BR2_PACKAGE_BUSYBOX),y) DIFFUTILS_DEPENDENCIES += busybox_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
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/10 flex: only needs gettext if locale is selected
In reply to Arnout Vandecappelle (Essensium/Mind)Also add missing select in Config.in.
--- package/flex/Config.in | 1 + package/flex/flex.mk | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-)
package/flex/Config.in +1 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_FLEX bool "flex" + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help A fast lexical analyser generator. A tool for generating programs that perform pattern-matching on text.
package/flex/flex.mk +1 -2
@@ -11,8 +11,7 @@ FLEX_PATCH = flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz FLEX_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/f/flex FLEX_DIR = $(BUILD_DIR)/flex-$(FLEX_VERSION) FLEX_INSTALL_STAGING = YES -FLEX_DEPENDENCIES = \ - $(if $(BR2_PACKAGE_GETTEXT),gettext) +FLEX_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) # we don't have a host-gettext/libintl HOST_FLEX_DEPENDENCIES =
PATCH 2/10 flex: only needs gettext if locale is selected
Arnout, All,
Quoted 3 lines · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
Also add missing select in Config.in.
Quoted 37 lines
--- package/flex/Config.in | 1 + package/flex/flex.mk | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-)package/flex/Config.in +1
-0@@ -1,5 +1,6 @@ config BR2_PACKAGE_FLEX bool "flex" + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help A fast lexical analyser generator. A tool for generating programs that perform pattern-matching on text.package/flex/flex.mk +1
-2@@ -11,8 +11,7 @@ FLEX_PATCH = flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz FLEX_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/f/flex FLEX_DIR = $(BUILD_DIR)/flex-$(FLEX_VERSION) FLEX_INSTALL_STAGING = YES -FLEX_DEPENDENCIES = \ - $(if $(BR2_PACKAGE_GETTEXT),gettext) +FLEX_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) # we don't have a host-gettext/libintl HOST_FLEX_DEPENDENCIES =_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
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 3/10 ndisc6: only needs gettext if locale is selected
In reply to Arnout Vandecappelle (Essensium/Mind)Also add missing select in Config.in.
--- package/ndisc6/Config.in | 1 + package/ndisc6/ndisc6.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
package/ndisc6/Config.in +1 -0
@@ -4,6 +4,7 @@ comment "ndisc6 requires a toolchain with IPv6 support" config BR2_PACKAGE_NDISC6 bool "ndisc6 tools" depends on BR2_INET_IPV6 + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help NDisc6 is a small collection of useful tools for IPv6 networking
package/ndisc6/ndisc6.mk +1 -1
@@ -10,7 +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) +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) NDISC6_DEPENDENCIES += gettext NDISC6_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl" endif
PATCH 3/10 ndisc6: only needs gettext if locale is selected
Arnout, All,
Quoted 3 lines · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
Also add missing select in Config.in.
Quoted 37 lines
--- package/ndisc6/Config.in | 1 + package/ndisc6/ndisc6.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)package/ndisc6/Config.in +1
-0@@ -4,6 +4,7 @@ comment "ndisc6 requires a toolchain with IPv6 support" config BR2_PACKAGE_NDISC6 bool "ndisc6 tools" depends on BR2_INET_IPV6 + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help NDisc6 is a small collection of useful tools for IPv6 networkingpackage/ndisc6/ndisc6.mk +1
-1@@ -10,7 +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) +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) NDISC6_DEPENDENCIES += gettext NDISC6_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl" endif_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
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 4/10 util-linux: only needs gettext if locale is selected
In reply to Arnout Vandecappelle (Essensium/Mind)Also add missing select in Config.in.
--- package/util-linux/Config.in | 1 + package/util-linux/util-linux.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
package/util-linux/Config.in +1 -0
@@ -2,6 +2,7 @@ config BR2_PACKAGE_UTIL_LINUX bool "util-linux" depends on BR2_LARGEFILE depends on BR2_USE_WCHAR + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help Various useful/essential Linux utilities.
package/util-linux/util-linux.mk +1 -1
@@ -29,7 +29,7 @@ else UTIL_LINUX_CONF_OPT += --without-ncurses endif -ifeq ($(BR2_PACKAGE_GETTEXT),y) +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) UTIL_LINUX_DEPENDENCIES += gettext UTIL_LINUX_MAKE_OPT += LIBS=-lintl endif
PATCH 4/10 util-linux: only needs gettext if locale is selected
Arnout, All,
Quoted 3 lines · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
Also add missing select in Config.in.
Quoted 37 lines
--- package/util-linux/Config.in | 1 + package/util-linux/util-linux.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)package/util-linux/Config.in +1
-0@@ -2,6 +2,7 @@ config BR2_PACKAGE_UTIL_LINUX bool "util-linux" depends on BR2_LARGEFILE depends on BR2_USE_WCHAR + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help Various useful/essential Linux utilities.package/util-linux/util-linux.mk +1
-1@@ -29,7 +29,7 @@ else UTIL_LINUX_CONF_OPT += --without-ncurses endif -ifeq ($(BR2_PACKAGE_GETTEXT),y) +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) UTIL_LINUX_DEPENDENCIES += gettext UTIL_LINUX_MAKE_OPT += LIBS=-lintl endif_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
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 5/10 lshw: fix build with no LOCALE support
In reply to Arnout Vandecappelle (Essensium/Mind)lshw doesn't need libintl if -DNONLS is defined.
--- package/lshw/Config.in | 2 +- package/lshw/lshw.mk | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-)
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_GETTEXT_IF_LOCALE help lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the machine.
package/lshw/lshw.mk +9 -3
@@ -6,10 +6,16 @@ LSHW_VERSION = B.02.16 LSHW_SITE = http://ezix.org/software/files + +LSHW_CFLAGS = $(TARGET_CFLAGS) +ifeq ($(BR2_ENABLE_LOCALE),) +LSHW_CFLAGS += -DNONLS +endif + 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) + RPM_OPT_FLAGS="$(LSHW_CFLAGS)" all +LSHW_MAKE_ENV = LIBS="$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)" +LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) define LSHW_BUILD_CMDS $(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPT)
PATCH 6/10 avahi: remove double dependency on gettext
In reply to Arnout Vandecappelle (Essensium/Mind)--- package/avahi/avahi.mk | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
package/avahi/avahi.mk +1 -4
@@ -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 += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),LIBS=-lintl) define AVAHI_REMOVE_INITSCRIPT rm -rf $(TARGET_DIR)/etc/init.d/avahi-*
PATCH 6/10 avahi: remove double dependency on gettext
Atnout, All,
Quoted 1 line · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
Quoted 27 lines
--- package/avahi/avahi.mk | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)package/avahi/avahi.mk +1
-4@@ -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 += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),LIBS=-lintl) define AVAHI_REMOVE_INITSCRIPT rm -rf $(TARGET_DIR)/etc/init.d/avahi-*_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
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 7/10 pulseaudio: remove dependency on gettext
In reply to Arnout Vandecappelle (Essensium/Mind)The dependency on gettext is only due to libglib2, not due to portaudio itself. It works fine without gettext if libglib2 is not selected.
---
v2: actually remove the gettext dependency this time; thanks Thomas
--- package/multimedia/pulseaudio/Config.in | 1 - package/multimedia/pulseaudio/pulseaudio.mk | 1 - 2 files changed, 2 deletions(-)
package/multimedia/pulseaudio/Config.in +0 -1
@@ -5,7 +5,6 @@ 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 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_GETTEXT),gettext) \ $(if $(BR2_PACKAGE_LIBATOMIC_OPS),libatomic_ops) \ $(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \ $(if $(BR2_PACKAGE_ALSA_LIB),alsa-lib) \
PATCH 7/10 pulseaudio: remove dependency on gettext
Hi Arnout, all,
2012/10/14 Arnout Vandecappelle (Essensium/Mind) <[email protected]>:
Quoted 2 lines
The dependency on gettext is only due to libglib2, not due to portaudio itself. It works fine without gettext if libglib2 is
s/portaudio/pulseaudio/
Quoted 3 lines
not selected.
Regards,
Signature · 1 line
Sam
PATCH 8/10 gdk-pixbuf: remove dependency on gettext
In reply to Arnout Vandecappelle (Essensium/Mind)The dependency on gettext comes from libglib2, not from gdk-pixbuf itself.
--- package/gdk-pixbuf/Config.in | 1 - package/gdk-pixbuf/gdk-pixbuf.mk | 1 - 2 files changed, 2 deletions(-)
package/gdk-pixbuf/Config.in +0 -1
@@ -2,7 +2,6 @@ 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_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
@@ -40,7 +40,6 @@ GDK_PIXBUF_DEPENDENCIES += xlib_libX11 endif GDK_PIXBUF_DEPENDENCIES += \ - $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_ENABLE_LOCALE),,libiconv) \ host-pkg-config libglib2
PATCH 9/10 glib-networking: remove redundant dependency on gettext
In reply to Arnout Vandecappelle (Essensium/Mind)--- package/glib-networking/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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_GETTEXT_IF_LOCALE help Network-related GIO modules for glib.
PATCH 9/10 glib-networking: remove redundant dependency on gettext
Arnout, All,
Quoted 10 lines · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
--- package/glib-networking/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/glib-networking/Config.in +0
-0
package/glib-networking/Config.in config BR2_PACKAGE_GLIB_NETWORKING · line 7
Quoted 7 lines
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_GETTEXT_IF_LOCALE help Network-related GIO modules for glib.
The commit message says "remove redundant dependency on gettext", but this change changes the dependency on plain gettext to gettext-if-locales.
Thus, I think the subject is wrong, and should be changed to something like:
glib-networking: only depends on gettext if locales are used
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 9/10 glib-networking: remove redundant dependency on gettext
Quoted 24 lines · Yann E. MORIN
Arnout, All,
Quoted 10 lines · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
Signed-off-by Arnout Vandecappelle (Essensium/Mind)<[email protected]>--- package/glib-networking/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/glib-networking/Config.in +0
-0package/glib-networking/Config.in config BR2_PACKAGE_GLIB_NETWORKING · line 7
Quoted 7 lines
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_GETTEXT_IF_LOCALE help Network-related GIO modules for glib.The commit message says "remove redundant dependency on gettext", but this change changes the dependency on plain gettext to gettext-if-locales.
Quoted 2 lines
Thus, I think the subject is wrong, and should be changed to something like:
glib-networking: only depends on gettext if locales are used
Actually, on second revision: glib-networking uses gettext directly so we should
therefore select it here as well. It worked fine in testing because libglib2 anyway depends on locale.
Therefore, I'll replace this with unconditionally depending on gettext in
the .mk file.
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 9/10 glib-networking: remove redundant dependency on gettext
Quoted 28 lines · Arnout Vandecappelle
Quoted 24 lines · Yann E. MORIN
Arnout, All,
Quoted 10 lines · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
Signed-off-by Arnout Vandecappelle (Essensium/Mind)<[email protected]>---
package/glib-networking/Config.in | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)package/glib-networking/Config.in +0
-0@@ -2,7 +2,7 @@ config BR2_PACKAGE_GLIB_NETWORKINGQuoted 7 lines
bool "glib-networking"
depends onBR2_USE_WCHAR# glib2
selectBR2_PACKAGE_LIBGLIB2
- selectBR2_PACKAGE_GETTEXTifBR2_NEEDS_GETTEXT
+ selectBR2_PACKAGE_GETTEXTifBR2_NEEDS_GETTEXT_IF_LOCALEhelp
Network-related GIO modules for glib.The commit message says "remove redundant dependency on gettext", but this change changes the dependency on plain gettext to gettext-if-locales.
Quoted 2 lines
Thus, I think the subject is wrong, and should be changed to something like:
glib-networking: only depends on gettext if locales are used
Quoted 6 lines
Actually, on second revision: glib-networking uses gettext directly so we should therefore select it here as well. It worked fine in testing because libglib2 anyway depends on locale.
Therefore, I'll replace this with unconditionally depending on gettext in the .mk file.
... but of course, the whole point of this series was to remove BR2_NEEDS_GETTEXT...
I'm just going to drop this patch for the time being, which leaves us with 3
packages using BR2_NEEDS_GETTEXT: php (gettext module), libglib2, glib-networking.
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/10 libsoup: remove redundant dependency on gettext
In reply to Arnout Vandecappelle (Essensium/Mind)--- package/libsoup/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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_GETTEXT_IF_LOCALE help libsoup is an HTTP client/server library. It uses GObject and the GLib main loop, to integrate well with GNOME
PATCH 10/10 libsoup: remove redundant dependency on gettext
Arnout, All,
Quoted 10 lines · On Sunday 14 October 2012 Arnout Vandecappelle (Essensium/Mind) wrote:
--- package/libsoup/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/libsoup/Config.in +0
-0
package/libsoup/Config.in config BR2_PACKAGE_LIBSOUP · line 9
Quoted 8 lines
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_GETTEXT_IF_LOCALE help libsoup is an HTTP client/server library. It uses GObject and the GLib main loop, to integrate well with GNOME
Ditto the glib-networking patch: the subject is misleading. Change to something like:
libsoup: only depends on gettext if locales are used
Or maybe you meant that gettext is needed by libglib2, not by libsoup itself? In which case you want to remove the select altogether.
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/10 libsoup: remove redundant dependency on gettext
Quoted 2 lines · Yann E. MORIN
Or maybe you meant that gettext is needed by libglib2, not by libsoup itself? In which case you want to remove the select altogether.
In fact, libsoup doesn't use libintl directly, but does use gi18n. So
I guess the dependency can indeed be removed.
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