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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Christian Weisgerber <naddy <at> mips.inka.de>
Subject: bug#23146: closed (Re: bug#23146: grep 2.24: tests broken with
 --program-prefix)
Date: Tue, 29 Mar 2016 17:26:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#23146: grep 2.24: tests broken with --program-prefix

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 23146 <at> debbugs.gnu.org.

-- 
23146: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23146
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.

[Message part 3 (message/rfc822, inline)]
From: Christian Weisgerber <naddy <at> mips.inka.de>
To: bug-grep <at> gnu.org
Subject: grep 2.24: tests broken with --program-prefix
Date: Mon, 28 Mar 2016 23:21:32 +0200
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)

-- 
Christian "naddy" Weisgerber                          naddy <at> mips.inka.de



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.