summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-18 16:34:13 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-18 16:34:13 +0000
commit4a29f32a11ff1bc265a95f73e48509b91f997454 (patch)
treea19661df99d5029d5201c9b13ab8d5f569b0815a /sys-apps/grep/files
parentVersion bump (diff)
downloadgentoo-2-4a29f32a11ff1bc265a95f73e48509b91f997454.tar.gz
gentoo-2-4a29f32a11ff1bc265a95f73e48509b91f997454.tar.bz2
gentoo-2-4a29f32a11ff1bc265a95f73e48509b91f997454.zip
Replace libintl patch on latest version with one that actually disables nls support instead of forcing linking against libintl. Update deps to add virtual/libintl.
(Portage version: 2.1_pre7-r5)
Diffstat (limited to 'sys-apps/grep/files')
-rw-r--r--sys-apps/grep/files/grep-2.5.1a-nls.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys-apps/grep/files/grep-2.5.1a-nls.patch b/sys-apps/grep/files/grep-2.5.1a-nls.patch
new file mode 100644
index 000000000000..91fb49798b3b
--- /dev/null
+++ b/sys-apps/grep/files/grep-2.5.1a-nls.patch
@@ -0,0 +1,39 @@
+Index: grep-2.5.1a/src/dfa.c
+===================================================================
+--- grep-2.5.1a.orig/src/dfa.c
++++ grep-2.5.1a/src/dfa.c
+@@ -102,7 +102,7 @@ extern void free();
+ /* If we (don't) have I18N. */
+ /* glibc defines _ */
+ #ifndef _
+-# ifdef HAVE_LIBINTL_H
++# if defined(ENABLE_NLS) && defined(HAVE_LIBINTL_H)
+ # include <libintl.h>
+ # ifndef _
+ # define _(Str) gettext (Str)
+Index: grep-2.5.1a/lib/obstack.c
+===================================================================
+--- grep-2.5.1a.orig/lib/obstack.c
++++ grep-2.5.1a/lib/obstack.c
+@@ -451,7 +451,7 @@ _obstack_memory_used (h)
+
+ /* Define the error handler. */
+ #ifndef _
+-# ifdef HAVE_LIBINTL_H
++# if defined(ENABLE_NLS) && defined(HAVE_LIBINTL_H)
+ # include <libintl.h>
+ # ifndef _
+ # define _(Str) gettext (Str)
+Index: grep-2.5.1a/lib/regex.c
+===================================================================
+--- grep-2.5.1a.orig/lib/regex.c
++++ grep-2.5.1a/lib/regex.c
+@@ -112,7 +112,7 @@
+ #endif
+
+ /* This is for other GNU distributions with internationalized messages. */
+-#if HAVE_LIBINTL_H || defined _LIBC
++#if ENABLE_NLS && (HAVE_LIBINTL_H || defined _LIBC)
+ # include <libintl.h>
+ # ifdef _LIBC
+ # undef gettext