Fix for kexec, enable libintl for findutils and netcat if locale is enabled
cover Fix for kexec, enable libintl for findutils and netcat if locale is enabled
Patch 1/3 fixes a build issue in kexec noted:
http://lists.busybox.net/pipermail/buildroot/2009-August/028973.html
Where the BUILD_CC is the same as the TARGET_CC, this patch sets the BUILD_CC to the HOSTCC.
Patch 2/3 and 3/3 add libintl to findutils and netcat, if locale is enabled.
PATCH 1/3 Fix kexec 'bin-to-hex' build failure
During the kexec build, bin-to-hex is built to run on the host to help generate purgatory.c.BUILD_CC is set to the same thing as TARGET_CC, which does not run on my host.
This change sets BUILD_CC to HOSTCC so that bin-to-hex is runnable on the host.
--- package/kexec/kexec.mk | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
package/kexec/kexec.mk +1 -0
@@ -8,6 +8,7 @@ KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.bz2 KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/horms/kexec-tools/ # no install-strip/install-exec KEXEC_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install +KEXEC_MAKE_OPT = BUILD_CC="$(HOSTCC)" ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y) KEXEC_CONF_OPT += --with-zlib
Signature · 1 line
1.7.0.4
PATCH 2/3 findutils needs libintl
In reply to Bryan HundvenModified Config.in and findutils.mk to build with libintl if the toolchain was built with locales.
--- package/findutils/Config.in | 2 ++ package/findutils/findutils.mk | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-)
package/findutils/Config.in +2 -0
@@ -1,6 +1,8 @@ config BR2_PACKAGE_FINDUTILS bool "findutils" 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 Basic directory searching utilities. Provides the common 'find', 'xargs', 'locate', and 'updatedb' binaries.
package/findutils/findutils.mk +5 -0
@@ -7,4 +7,9 @@ FINDUTILS_VERSION:=4.2.31 FINDUTILS_SOURCE:=findutils-$(FINDUTILS_VERSION).tar.gz FINDUTILS_SITE:=$(BR2_GNU_MIRROR)/findutils/ +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +FINDUTILS_DEPENDENCIES += gettext libintl +FINDUTILS_MAKE_OPT = LIBS=-lintl +endif + $(eval $(call AUTOTARGETS,package,findutils))
Signature · 1 line
1.7.0.4
PATCH 3/3 netcat needs libintl
In reply to Bryan HundvenModified Config.in and netcat.mk to build with libintl if the toolchain was built with locales.
--- package/netcat/Config.in | 2 ++ package/netcat/netcat.mk | 4 ++++ 2 files changed, 6 insertions(+), 0 deletions(-)
package/netcat/Config.in +2 -0
@@ -1,5 +1,7 @@ config BR2_PACKAGE_NETCAT bool "netcat" + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol.
package/netcat/netcat.mk +4 -0
@@ -10,5 +10,9 @@ NETCAT_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/netc NETCAT_AUTORECONF:=NO NETCAT_INSTALL_STAGING:=NO NETCAT_INSTALL_TARGET:=YES +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +NETCAT_DEPENDENCIES += gettext libintl +NETCAT_MAKE_OPT = LIBS=-lintl +endif $(eval $(call AUTOTARGETS,package,netcat))
Signature · 1 line
1.7.0.4