GNU bug report logs - #23146
grep 2.24: tests broken with --program-prefix

Previous Next

Package: grep;

Reported by: Christian Weisgerber <naddy <at> mips.inka.de>

Date: Tue, 29 Mar 2016 14:21:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 23146-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Christian Weisgerber <naddy <at> mips.inka.de>
Cc: 23146-done <at> debbugs.gnu.org
Subject: Re: bug#23146: grep 2.24: tests broken with --program-prefix
Date: Tue, 29 Mar 2016 10:25:13 -0700
On Mon, Mar 28, 2016 at 2:21 PM, Christian Weisgerber
<naddy <at> mips.inka.de> wrote:
> In GNU grep 2.24 and earlier, the regression tests
>
>   help-version
>   reversed-range-endpoints
>
> fail if grep is built with a program prefix (I use --program-prefix=g).
>
> ---------- help-version.log ----------
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/egrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/egrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/fgrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/fgrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/egrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/egrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/fgrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/fgrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/egrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/egrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/fgrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/fgrep[2]: ggrep: not found
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/egrep[2]: ggrep: not found
> FAIL: egrep
> /usr/obj/ggrep-2.24/grep-2.24/tests/../src/fgrep[2]: ggrep: not found
> FAIL: fgrep
> FAIL help-version (exit status: 1)
>
> ---------- reversed-range-endpoints.log ----------
> --- exp Mon Mar 28 22:46:48 2016
> +++ out Mon Mar 28 22:46:48 2016
> @@ -1 +1 @@
> -Invalid range end
> +/usr/obj/ggrep-2.24/grep-2.24/tests/../src/egrep[2]: ggrep: not found
> FAIL reversed-range-endpoints (exit status: 1)

Thanks for the report.
You should be able to cause "make check" to pass in that case
by creating a symlink for each classic name to its prefixed version, e.g.,

  cd src && for i in grep egrep fgrep; do ln -fs g$i $i; done

You're the first to report this, so for now, I'll simply mark this
issue as closed.
By the way, that reversed-range-endpoints test need not use egrep,
since it already tests 'grep -E', so I have fixed that.




This bug report was last modified 9 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.