Browse Source

Add patch to fix broken grep logic

Michael Schloh von Bennewitz 22 years ago
parent
commit
391c6fff67
2 changed files with 15 additions and 1 deletions
  1. 12 0
      gettext/gettext.patch
  2. 3 1
      gettext/gettext.spec

+ 12 - 0
gettext/gettext.patch

@@ -0,0 +1,12 @@
+diff -Naur gettext-0.12.orig/gettext-tools/src/msggrep.c gettext-0.12/gettext-tools/src/msggrep.c
+--- gettext-0.12.orig/gettext-tools/src/msggrep.c	2003-04-29 12:00:16.000000000 +0200
++++ gettext-0.12/gettext-tools/src/msggrep.c	2003-05-27 21:37:37.611599004 +0200
+@@ -346,7 +346,7 @@
+ 	 -q and -e.  */
+ #if (defined (sun) || defined (__sun)) && defined (__SVR4)
+       if ((strcmp (grep_path, "/usr/bin/grep") == 0
+-	   || strcmp (grep_path, "/bin/grep") == 0))
++	   || strcmp (grep_path, "/bin/grep") == 0)
+ 	  && access ("/usr/xpg4/bin/grep", X_OK) == 0)
+ 	grep_path = "/usr/xpg4/bin/grep";
+ #endif

+ 3 - 1
gettext/gettext.spec

@@ -33,10 +33,11 @@ Distribution: OpenPKG [BASE]
 Group:        Converter
 License:      GPL
 Version:      0.12
-Release:      20030520
+Release:      20030527
 
 #   list of sources
 Source0:      ftp://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.gz
+Patch0:       gettext.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -51,6 +52,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p1
 
 %build
     CC="%{l_cc}" \