bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext-0.11.5, make check


From: Bruno Haible
Subject: Re: gettext-0.11.5, make check
Date: Thu, 13 Mar 2003 12:48:33 +0100 (CET)

Sven Utcke writes:

> make check fails for me (partly), see below.  This is
> 
> gettext-0.11.5
> SunOS kogs2 5.8 Generic_108528-12 sun4u sparc SUNW,Sun-Blade-1000
> 
> The error message is:
> 
> /usr/bin/grep: illegal option -- q
> /usr/bin/grep: illegal option -- e
> Usage: grep -hblcnsviw pattern file . . .
> FAIL: msggrep-3

Thanks for the report. This should fix it. As a workaround, you can
put /usr/xpg4/bin in front of /usr/bin in your PATH.

Bruno


diff -c -3 -r1.1 msggrep.c
*** msggrep.c   14 Feb 2003 14:12:00 -0000      1.1
--- msggrep.c   13 Mar 2003 11:47:11 -0000
***************
*** 329,334 ****
--- 329,343 ----
         This is an optimization, to avoid that spawn/exec searches the PATH
         on every call.  */
        grep_path = find_in_path ("grep");
+ 
+       /* On Solaris >= 2.8, we need to use /usr/xpg4/bin/grep instead of
+        /usr/bin/grep, because /usr/bin/grep doesn't understand the options
+        -q and -e.  */
+ #if (defined (sun) || defined (__sun)) && defined (__SVR4)
+       if (strcmp (grep_path, "/usr/bin/grep") == 0
+         && access ("/usr/xpg4/bin/grep", X_OK) == 0)
+       grep_path = "/usr/xpg4/bin/grep";
+ #endif
      }
  
    /* Build argument lists for the 'grep' program.  */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]