summaryrefslogtreecommitdiffstats
path: root/package/iprutils/0001-iprutils-Don-t-use-gettext.patch
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-01-30 16:25:28 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-07 13:57:22 +0100
commit0d80aee73d977dfdc37413ed61ac1d3d29ad3540 (patch)
treebd96479aa62e36dfce428633efb23684c5ab732f /package/iprutils/0001-iprutils-Don-t-use-gettext.patch
parent8b9eaff0006ffba1559f532534c3c9e5f55ad114 (diff)
downloadbuildroot-0d80aee73d977dfdc37413ed61ac1d3d29ad3540.tar.gz
buildroot-0d80aee73d977dfdc37413ed61ac1d3d29ad3540.zip
package/iprutils: bump version to 2.4.10
Upstream now provides a new autoconf-based build system, therefore our patches for Makefile are not needed anymore. We adapt the gettext patch to make sure that the configure script doesn't check for libintl.h, and we add an additional patch to fix the libm check. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Thomas: rework patches.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/iprutils/0001-iprutils-Don-t-use-gettext.patch')
-rw-r--r--package/iprutils/0001-iprutils-Don-t-use-gettext.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/iprutils/0001-iprutils-Don-t-use-gettext.patch b/package/iprutils/0001-iprutils-Don-t-use-gettext.patch
new file mode 100644
index 0000000000..680bb07f5d
--- /dev/null
+++ b/package/iprutils/0001-iprutils-Don-t-use-gettext.patch
@@ -0,0 +1,48 @@
+From 4ce3545b704588c5889b8dd7b100fcdb88ae2e1a Mon Sep 17 00:00:00 2001
+From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+Date: Wed, 17 Sep 2014 17:48:54 +0100
+Subject: [PATCH] iprutils: Don't use gettext
+
+... since we don't have any translation.
+
+Based on the former patch by Jeremy Kerr.
+
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+[Thomas: adapt to the new autotools build system.]
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ configure.ac | 2 +-
+ iprconfig.h | 4 +---
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index ee69bee..c1a4f70 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -137,7 +137,7 @@ AC_SUBST([IPRCONFIG_LIBS])
+ LIBS="$save_LIBS"
+
+ # Checks for header files.
+-AC_CHECK_HEADERS([fcntl.h libintl.h locale.h netinet/in.h nl_types.h \
++AC_CHECK_HEADERS([fcntl.h locale.h netinet/in.h nl_types.h \
+ paths.h stddef.h stdint.h stdlib.h string.h sys/file.h \
+ sys/ioctl.h sys/mount.h sys/socket.h syslog.h \
+ unistd.h ncurses.h form.h menu.h], [],
+diff --git a/iprconfig.h b/iprconfig.h
+index 9bce950..751a737 100644
+--- a/iprconfig.h
++++ b/iprconfig.h
+@@ -11,9 +11,7 @@
+ *
+ **/
+
+-#include <libintl.h>
+-
+-#define _(string) gettext(string)
++#define _(string) (string)
+ #define __(string) (string)
+ #define EXIT_FLAG 0x8000 /* stops at given screen on exit call */
+ #define CANCEL_FLAG 0x4000 /* stops at given screen on quit call */
+--
+2.6.4
+
OpenPOWER on IntegriCloud