bug-automake
[Top][All Lists]
Advanced

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

Re: automake-1.6.1: verbose test failure results: Apple PowerPC G4 267MH


From: Alexandre Duret-Lutz
Subject: Re: automake-1.6.1: verbose test failure results: Apple PowerPC G4 267MHz Darwin 5.3
Date: Mon, 15 Apr 2002 18:06:16 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

Nelson, most of these test failures (probably all but lex5.test
and yacc8.test) are due to bad interaction between grep-2.5.1 (I
guess that's what you have) and Zsh.

egrep looks like

  #!/bin/sh
  exec grep -E ${1+"$@"}

but /bin/sh is Zsh and it will split all words in ${1+"$@"}.

(See http://www.zsh.org/mla/workers//2002/msg00546.html for the details.)

In other words 

 % fgrep 'foo bar' /dev/null

will certainly complain that it doesn't find the file `bar'.

You can fix it by rewriting egrep as

  #!/bin/sh
  exec grep -E "$@"

on this host; or maybe more portably as

  #!/bin/sh
  if test -n "${ZSH_VERSION+set}"; then
    exec grep -E "$@"
  else
    exec grep -E ${1+"$@"}
  fi

Likewise for the fgrep.

(CC-ing bug-gnu-utils in case it's not already fixed in grep)

>>> "Nelson" == Nelson H F Beebe <address@hidden> writes:
[...]
| + egrep ^DEFAULT_INCLUDES =.* -I(\.|\$\(top_builddir\))/include Makefile.in
| /usr/local/bin/grep: invalid option -- (
| Usage: grep [OPTION]... PATTERN [FILE]...
| Try `grep --help' for more information.
| FAIL: confh4.test
[...]
| config.status: creating subdir/config.h
| grep: Unmatched [ or [^
[...]
| FAIL: confsub.test
[...]
| + test -z grep: directory: No such file or directory
| FAIL: depcomp2.test
[...]
| + egrep ^(@address@hidden@)*DEP_FILES =  Makefile.in
| grep: =: No such file or directory
[...]
| FAIL: depend4.test
[...]
| + make foo/foo.o
| flex   `test -f foo/foo.l || echo '../'`foo/foo.l
| sed '/^#/ s|lex.yy\.c|foo/foo.c|' lex.yy.c >foo/foo.c
| zsh: no such file or directory: foo/foo.c
| make: *** [foo/foo.c] Error 1
| FAIL: lex5.test
[...]
| + fgrep am__include = include Makefile
| grep: =: No such file or directory
| grep: include: No such file or directory
| Makefile:am__include = #
| FAIL: make.test
[...]
| + fgrep @CC@ -Dwhatever Makefile.in
| grep: unknown devices method
| FAIL: pluseq4.test
[...]
| + fgrep @mandir@ foo Makefile.in
| grep: foo: No such file or directory
| Makefile.in:mandir = @mandir@ foo
| + exit 1
| FAIL: pluseq6.test
[...]
| + test -f .deps/fx64.Po
| FAIL: pr243.test
[...]
| + test -f .deps/fx64.Po
| FAIL: pr266.test
[...]
| + fgrep -e -o foo-foo Makefile.in
| grep: foo-foo: No such file or directory
[...]
| FAIL: specflags3.test
[...]
| + egrep ^\$\(srcdir\)/stamp-vti:.*textutils\.texi( .*)?$ Makefile.in
| grep: Unmatched ( or \(
| FAIL: vtexi.test
[...]
| + make foo/parse.o
| bison -y   `test -f 'foo/parse.y' || echo '../'`foo/parse.y
| sed '/^#/ s|y\.tab\.c|foo/parse.c|' y.tab.c >foo/parse.c
| zsh: no such file or directory: foo/parse.c
| make: *** [foo/parse.c] Error 1
| FAIL: yacc8.test

-- 
Alexandre Duret-Lutz




reply via email to

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