Skip to contentSkip to conversation

Fix for kexec, enable libintl for findutils and netcat if locale is enabled

PATCH New Bryan Hundven 1 participant 4 messages Jun 29, 2010

lore
Share & tools
lore
#1 lore raw

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
index 4367885..2094d65 100644
@@ -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
#2 lore raw

PATCH 2/3 findutils needs libintl

In reply to Bryan Hundven

Modified 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
index bbe2cc1..4ebd31c 100644
@@ -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
index a1893ad..58c4625 100644
@@ -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
#3 lore raw

PATCH 3/3 netcat needs libintl

In reply to Bryan Hundven

Modified 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
index 54aac76..cdec91f 100644
@@ -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
index 31f6b71..586b2d8 100644
@@ -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