From unknown Fri Aug 15 16:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23146: grep 2.24: tests broken with --program-prefix Resent-From: Christian Weisgerber Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Tue, 29 Mar 2016 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23146 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 23146@debbugs.gnu.org X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145926123525429 (code B ref -1); Tue, 29 Mar 2016 14:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Mar 2016 14:20:35 +0000 Received: from localhost ([127.0.0.1]:43870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akuVW-0006c4-JZ for submit@debbugs.gnu.org; Tue, 29 Mar 2016 10:20:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akef0-0003jh-Aj for submit@debbugs.gnu.org; Mon, 28 Mar 2016 17:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akeeu-0006vl-8V for submit@debbugs.gnu.org; Mon, 28 Mar 2016 17:25:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeeu-0006vf-58 for submit@debbugs.gnu.org; Mon, 28 Mar 2016 17:25:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeet-0001cM-6q for bug-grep@gnu.org; Mon, 28 Mar 2016 17:25:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akeep-0006uG-NO for bug-grep@gnu.org; Mon, 28 Mar 2016 17:25:11 -0400 Received: from quechua.inka.de ([193.197.184.2]:49075 helo=mail.inka.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeep-0006rv-H4 for bug-grep@gnu.org; Mon, 28 Mar 2016 17:25:07 -0400 Received: from mips.inka.de (naddy@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1akeem-0002Pt-Kx; Mon, 28 Mar 2016 23:25:04 +0200 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.15.2/8.15.2) with ESMTP id u2SLLWnA060060 for ; Mon, 28 Mar 2016 23:21:32 +0200 (CEST) (envelope-from naddy@lorvorc.mips.inka.de) Received: (from naddy@localhost) by lorvorc.mips.inka.de (8.15.2/8.15.2/Submit) id u2SLLWee060059 for bug-grep@gnu.org; Mon, 28 Mar 2016 23:21:32 +0200 (CEST) (envelope-from naddy) Date: Mon, 28 Mar 2016 23:21:32 +0200 From: Christian Weisgerber Message-ID: <20160328212132.GA60042@lorvorc.mips.inka.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Tue, 29 Mar 2016 10:20:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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@mips.inka.de From unknown Fri Aug 15 16:57:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Christian Weisgerber Subject: bug#23146: closed (Re: bug#23146: grep 2.24: tests broken with --program-prefix) Message-ID: References: <20160328212132.GA60042@lorvorc.mips.inka.de> X-Gnu-PR-Message: they-closed 23146 X-Gnu-PR-Package: grep Reply-To: 23146@debbugs.gnu.org Date: Tue, 29 Mar 2016 17:26:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1459272362-17033-1" This is a multi-part message in MIME format... ------------=_1459272362-17033-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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@debbugs.gnu.org. --=20 23146: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23146 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1459272362-17033-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 23146-done) by debbugs.gnu.org; 29 Mar 2016 17:25:55 +0000 Received: from localhost ([127.0.0.1]:44036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akxOt-0004QP-AL for submit@debbugs.gnu.org; Tue, 29 Mar 2016 13:25:55 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:36488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akxOr-0004QC-Ci for 23146-done@debbugs.gnu.org; Tue, 29 Mar 2016 13:25:53 -0400 Received: by mail-io0-f181.google.com with SMTP id q128so30994844iof.3 for <23146-done@debbugs.gnu.org>; Tue, 29 Mar 2016 10:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VyxgH7XFt3yGGEAOZg3afkKum/Ssq74nxLG1vM1B3jU=; b=tVXX06+oBre1lfA71uDtXWXaoie7S9cSgWVP5+qVK0Dqfh8AhKP77E1xvQRifF3zYQ tnXOLqWsDp7GB+muNelUSMguRDRjOE5nSMSYkfNf6YG9crAcMdfdMA8U5yiQFifyfHCd JNBE1pTCdD1MWMFYLXagbiaiK7WN/rdkLx9P1o3gs7i49lcyBYBl+Oue8VN5IHZKFtqZ ZE15fGnsTnMg5MVbgTObEFF59TOoENe0P14TUPcGh2sy10spc6IpAqyCzSes5dHYQB8r lZ1yCyDMPdhYoVgyA66iLPkdjIgzBFoeswunbt5XenrxV7b4vASpNj9sTA70zOaKdizl ukXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VyxgH7XFt3yGGEAOZg3afkKum/Ssq74nxLG1vM1B3jU=; b=a0zp23xVne7HDbwlpURDNo1hzLmqCX3xOsAwHVxhWFILwrkMiAwvx8RZrcKZa8BDDk Tfdzjvc37Ja9FMyS0XAH3vSpTjYuiG4E0p82XlLb/iJCdXEcmFzhoCT9pvaUda1o1Xog 5DgiOz1zcL4fO1nUss/r2Ni13LEVhSOtowxg7H5s3x7CXZRQllNAk3vyhzE6+UfmLyWv UFOKAgJubWu+NtGnDRC6ZKXa8E55PH+4PvTbsfXYrt2GcPxLJpiw/CKa71ODJaa5+zk9 DOmP4Xglh3ygQ2KpgNVur7Fyg0vl/xnqfR1SEFzUmrXyy0jlZsZUY6oUWsNjfY8VusU9 6lVA== X-Gm-Message-State: AD7BkJI3M5E8m06d7icmzqV8egz3zWaCOygfMpJkQPNm5qfxSYmUftzNNJ/DtIu2Eh56fpS+nRNxMwaceRj9uA== X-Received: by 10.157.44.66 with SMTP id f60mr1855244otb.163.1459272332769; Tue, 29 Mar 2016 10:25:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.213.141 with HTTP; Tue, 29 Mar 2016 10:25:13 -0700 (PDT) In-Reply-To: <20160328212132.GA60042@lorvorc.mips.inka.de> References: <20160328212132.GA60042@lorvorc.mips.inka.de> From: Jim Meyering Date: Tue, 29 Mar 2016 10:25:13 -0700 X-Google-Sender-Auth: 6CVCc0ez_gTYgqLA4kbsmZChNKw Message-ID: Subject: Re: bug#23146: grep 2.24: tests broken with --program-prefix To: Christian Weisgerber Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 23146-done Cc: 23146-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On Mon, Mar 28, 2016 at 2:21 PM, Christian Weisgerber 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. ------------=_1459272362-17033-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Mar 2016 14:20:35 +0000 Received: from localhost ([127.0.0.1]:43870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akuVW-0006c4-JZ for submit@debbugs.gnu.org; Tue, 29 Mar 2016 10:20:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akef0-0003jh-Aj for submit@debbugs.gnu.org; Mon, 28 Mar 2016 17:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akeeu-0006vl-8V for submit@debbugs.gnu.org; Mon, 28 Mar 2016 17:25:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeeu-0006vf-58 for submit@debbugs.gnu.org; Mon, 28 Mar 2016 17:25:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeet-0001cM-6q for bug-grep@gnu.org; Mon, 28 Mar 2016 17:25:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akeep-0006uG-NO for bug-grep@gnu.org; Mon, 28 Mar 2016 17:25:11 -0400 Received: from quechua.inka.de ([193.197.184.2]:49075 helo=mail.inka.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeep-0006rv-H4 for bug-grep@gnu.org; Mon, 28 Mar 2016 17:25:07 -0400 Received: from mips.inka.de (naddy@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1akeem-0002Pt-Kx; Mon, 28 Mar 2016 23:25:04 +0200 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.15.2/8.15.2) with ESMTP id u2SLLWnA060060 for ; Mon, 28 Mar 2016 23:21:32 +0200 (CEST) (envelope-from naddy@lorvorc.mips.inka.de) Received: (from naddy@localhost) by lorvorc.mips.inka.de (8.15.2/8.15.2/Submit) id u2SLLWee060059 for bug-grep@gnu.org; Mon, 28 Mar 2016 23:21:32 +0200 (CEST) (envelope-from naddy) Date: Mon, 28 Mar 2016 23:21:32 +0200 From: Christian Weisgerber To: bug-grep@gnu.org Subject: grep 2.24: tests broken with --program-prefix Message-ID: <20160328212132.GA60042@lorvorc.mips.inka.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 29 Mar 2016 10:20:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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@mips.inka.de ------------=_1459272362-17033-1-- From unknown Fri Aug 15 16:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23146: grep 2.24: tests broken with --program-prefix Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Sun, 03 Apr 2016 08:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23146 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: Christian Weisgerber , 23146-done@debbugs.gnu.org Received: via spool by 23146-done@debbugs.gnu.org id=D23146.145967053914388 (code D ref 23146); Sun, 03 Apr 2016 08:03:02 +0000 Received: (at 23146-done) by debbugs.gnu.org; 3 Apr 2016 08:02:19 +0000 Received: from localhost ([127.0.0.1]:49403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amczD-0003k0-9g for submit@debbugs.gnu.org; Sun, 03 Apr 2016 04:02:19 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:53848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amczB-0003jm-S4 for 23146-done@debbugs.gnu.org; Sun, 03 Apr 2016 04:02:18 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E1425161244; Sun, 3 Apr 2016 01:02:11 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id wpM88oZj4wfk; Sun, 3 Apr 2016 01:02:10 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ABD33161245; Sun, 3 Apr 2016 01:02:10 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ac8sjRKzyy6s; Sun, 3 Apr 2016 01:02:10 -0700 (PDT) Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8D11A161244; Sun, 3 Apr 2016 01:02:10 -0700 (PDT) References: <20160328212132.GA60042@lorvorc.mips.inka.de> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <5700CDF3.50103@cs.ucla.edu> Date: Sun, 3 Apr 2016 01:01:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160328212132.GA60042@lorvorc.mips.inka.de> Content-Type: multipart/mixed; boundary="------------010104070607050802020106" X-Spam-Score: -1.0 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------010104070607050802020106 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Christian Weisgerber 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). Jim fixed the second problem, and the attached patch should fix the first one, so I'll mark this bug as done. Thanks for reporting it. --------------010104070607050802020106 Content-Type: text/x-diff; name="0001-tests-test-egrep-fgrep-help-only-if-our-grep.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-tests-test-egrep-fgrep-help-only-if-our-grep.patch" >From 62fa4868439874fe0620798111ab24cf4525d93b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 3 Apr 2016 00:59:56 -0700 Subject: [PATCH] tests: test egrep/fgrep help only if our grep Problem reported by Christian Weisgerber in: http://bugs.gnu.org/23146 * tests/Makefile.am (TESTS_ENVIRONMENT): Test egrep and fgrep only if they use our grep. --- tests/Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 0326ff4..b65fc39 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -182,6 +182,14 @@ TESTS_ENVIRONMENT = \ done; \ }; \ fi; \ + \ + : 'Test egrep/fgrep help if they use our grep.'; \ + grep=`echo grep | sed -e '$(transform)'` || exit; \ + if test "$$grep" = grep; then \ + built_programs='grep egrep fgrep'; \ + else \ + built_programs='grep'; \ + fi; \ \ export_with_values \ VERSION='$(VERSION)' \ @@ -193,7 +201,7 @@ TESTS_ENVIRONMENT = \ abs_top_builddir='$(abs_top_builddir)' \ abs_top_srcdir='$(abs_top_srcdir)' \ abs_srcdir='$(abs_srcdir)' \ - built_programs='grep egrep fgrep' \ + built_programs="$$built_programs" \ srcdir='$(srcdir)' \ top_srcdir='$(top_srcdir)' \ CC='$(CC)' \ -- 2.5.5 --------------010104070607050802020106--