bug-grep
[Top][All Lists]
Advanced

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

Re: grep-2.9.69-f91c on OSF/1


From: Jim Meyering
Subject: Re: grep-2.9.69-f91c on OSF/1
Date: Sat, 12 Nov 2011 12:48:57 +0100

Jim Meyering wrote:

> Bruno Haible wrote:
>
>> Jim Meyering wrote:
>>> > It comes from tests/Makefile:
>>> >
>>> > TESTS_ENVIRONMENT = \
>>> >   tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \
>>> >   TMPDIR=$$tmp__; export TMPDIR;                \
>>> >   export                                        \
>>> >   VERSION='$(VERSION)'                          \
>>> >   ...
>>> >
>>> > The syntax "export VAR=VALUE" is not guaranteed by this shell.
>>> > Either write "env VAR=VALUE ...", or "VAR=VALUE; export VAR; ..."
>>> >
>>> > SHELL is defined as
>>> > SHELL = /bin/ksh
>>> >
>>> > $ grep CONFIG_SHELL config.status
>>> > SHELL=${CONFIG_SHELL-/bin/ksh}
>>> >   $as_echo "running CONFIG_SHELL=/bin/ksh $*" >&6
>>> >   CONFIG_SHELL='/bin/ksh'
>>> >   export CONFIG_SHELL
>>>
>>> Hi Bruno,
>>>
>>> Thanks for the report.
>>> Can you work around it by running something like
>>> "make CONFIG_SHELL=bash"?
>>
>> $ make check CONFIG_SHELL=bash
>> $ make check SHELL=bash
>> $ make check SHELL=/opt/fsw/bin/bash
>>
>> all fail in the same way.
>>
>> Even when I change config.status, replacing
>>   S["SHELL"]="/bin/ksh"
>> by
>>   S["SHELL"]="/opt/fsw/bin/bash"
>> then tests/Makefile contains
>>   SHELL = /opt/fsw/bin/bash
>> but "make check" still fails the same way. Apparently only GNU make, not
>> OSF/1 'make', considers the SHELL variable from the Makefile.
>
> Then one work-around for those who require to be able to run grep's
> "make check" before "make install" on OSF/1 is to use GNU make.
> I am inclined to document that, say in README.

I've done just that:

>From 941f1dbbac0744057241b571c0e1b789b0d92d3f Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 12 Nov 2011 12:47:59 +0100
Subject: [PATCH] doc: document the "make check"-vs-export work-around

* README (KNOWN BUGS): Mention "make check" work-around for systems
with a shell that doesn't accept "export VAR=value".
---
 README |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/README b/README
index 9c550ee..6445acf 100644
--- a/README
+++ b/README
@@ -45,6 +45,14 @@ The option -i does not work properly in some multibyte 
locales such as
 tr_TR.UTF-8 where the upper case and lower case forms of a character are not
 necessarily of the same byte length.

+If running "make check" fails for you due to its use of "export VAR=value",
+it is probably because you are using non-GNU-make with an old /bin/sh.  If so,
+and assuming you have installed a working shell, say /usr/local/bin/bash,
+using GNU make and invoking it like this should run the tests:
+
+  make check SHELL=/usr/local/bin/bash
+
+
 Additional bug reports can be found at:

         http://savannah.gnu.org/bugs/?group=grep
--
1.7.8.rc0.61.g8a042



reply via email to

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