GNU bug report logs - #42419
is this a sick joke ?

Previous Next

Package: grep;

Reported by: Dennis Clarke <dclarke <at> blastwave.org>

Date: Sat, 18 Jul 2020 19:21:02 UTC

Severity: normal

Tags: moreinfo

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42419 in the body.
You can then email your comments to 42419 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#42419; Package grep. (Sat, 18 Jul 2020 19:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dennis Clarke <dclarke <at> blastwave.org>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Sat, 18 Jul 2020 19:21:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dennis Clarke <dclarke <at> blastwave.org>
To: bug-grep <at> gnu.org
Subject: is this a sick joke ?
Date: Sat, 18 Jul 2020 19:20:33 +0000
alpha$ pwd
/opt/bw/build/grep-3.4_sunos5.10_sparcv9.002
alpha$
alpha$ ./configure --prefix=/opt/bw --disable-silent-rules \
> --enable-dependency-tracking --enable-threads=posix \
> --without-gnu-ld --with-libsigsegv-prefix=/opt/bw \
> --with-libiconv-prefix=/opt/bw \
> --with-libintl-prefix=/opt/bw 2>&1 | tee
../grep-3.4_sunos5.10_sparcv9.002.config.log
configure: error: no working 'grep' found
  A working 'grep' command is needed to build GNU Grep.
  This 'grep' should support -e and long lines.
  On Solaris 10, install the package SUNWggrp or SUNWxcu4.
  On Solaris 11, install the package text/gnu-grep or system/xopen/xcu4.
alpha$

Excuse me ?

alpha$
alpha$ which grep
/usr/local/bin/grep
alpha$
alpha$ grep --version
grep (GNU grep) 3.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see
<http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
alpha$
alpha$
alpha$ ls -lap /usr/xpg4/bin/grep
-r-xr-xr-x   3 root     bin        18652 Nov 18  2013 /usr/xpg4/bin/grep
alpha$
alpha$

I have GNU grep and I also have real XPG4 type grep ?

What grep does grep need to beuild grep for a new grep?

Curious what pre-requisite grep that grep needs for grep.

would love to hear back which I work on GNU autoconf beta
today :

https://lists.gnu.org/r/autoconf/2020-07/msg00006.html

What magic grep does grep want ?

-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional




Information forwarded to bug-grep <at> gnu.org:
bug#42419; Package grep. (Sat, 18 Jul 2020 20:08:01 GMT) Full text and rfc822 format available.

Message #8 received at 42419 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Dennis Clarke <dclarke <at> blastwave.org>
Cc: 42419 <at> debbugs.gnu.org
Subject: Re: bug#42419: is this a sick joke ?
Date: Sat, 18 Jul 2020 13:06:54 -0700
Builds work for me on Solaris 10 sparc, but then I don't have a 
locally-installed /usr/local/bin/grep to get in the way and cause trouble. I 
suggest removing /usr/local/bin from your PATH, or setting the GREP environment 
variable to be the 'grep' you prefer.

I used PATH='/usr/bin:/usr/ccs/bin:/r/share1/src/developerstudio12.6/bin' in my 
build, and got this:

checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E

It is true that you need a working 'grep' to build GNU grep, just as you need a 
working 'cp' to build GNU cp. The GNU coding standards allow builds to depend on 
a small set of POSIX tools, and 'grep' and 'cp' are both on the list.




Information forwarded to bug-grep <at> gnu.org:
bug#42419; Package grep. (Sun, 19 Jul 2020 02:20:01 GMT) Full text and rfc822 format available.

Message #11 received at 42419 <at> debbugs.gnu.org (full text, mbox):

From: Dennis Clarke <dclarke <at> blastwave.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 42419 <at> debbugs.gnu.org
Subject: Re: bug#42419: is this a sick joke ?
Date: Sun, 19 Jul 2020 02:19:14 +0000
On 7/18/20 8:06 PM, Paul Eggert wrote:
> Builds work for me on Solaris 10 sparc, but then I don't have a
> locally-installed /usr/local/bin/grep to get in the way and cause
> trouble. I suggest removing /usr/local/bin from your PATH, or setting
> the GREP environment variable to be the 'grep' you prefer.
> 
> I used
> PATH='/usr/bin:/usr/ccs/bin:/r/share1/src/developerstudio12.6/bin' in my
> build, and got this:
> 
> checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
> checking for egrep... /usr/xpg4/bin/grep -E
> 
> It is true that you need a working 'grep' to build GNU grep, just as you
> need a working 'cp' to build GNU cp. The GNU coding standards allow
> builds to depend on a small set of POSIX tools, and 'grep' and 'cp' are
> both on the list.

My tone certainly could have been better.  Sorry.  I simply do not see
why this is a problem given that I have the installed XPG4 grep as well
as GNU grep in my path and they are both working fine. I have no idea
why configure seems baffled by this.  Very frustrating.

Dennis




Information forwarded to bug-grep <at> gnu.org:
bug#42419; Package grep. (Sun, 19 Jul 2020 02:38:01 GMT) Full text and rfc822 format available.

Message #14 received at 42419 <at> debbugs.gnu.org (full text, mbox):

From: Jeffrey Walton <noloader <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 42419 <at> debbugs.gnu.org
Subject: Re: bug#42419: is this a sick joke ?
Date: Sat, 18 Jul 2020 22:36:43 -0400
On Sat, Jul 18, 2020 at 4:08 PM Paul Eggert <eggert <at> cs.ucla.edu> wrote:
>
> Builds work for me on Solaris 10 sparc, but then I don't have a
> locally-installed /usr/local/bin/grep to get in the way and cause trouble. I
> suggest removing /usr/local/bin from your PATH, or setting the GREP environment
> variable to be the 'grep' you prefer.
>
> I used PATH='/usr/bin:/usr/ccs/bin:/r/share1/src/developerstudio12.6/bin' in my
> build, and got this:
>
> checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
> checking for egrep... /usr/xpg4/bin/grep -E
>
> It is true that you need a working 'grep' to build GNU grep, just as you need a
> working 'cp' to build GNU cp. The GNU coding standards allow builds to depend on
> a small set of POSIX tools, and 'grep' and 'cp' are both on the list.

To add to Paul's answer...On modern Solaris you can usually find GNU
tools in /usr/gnu/bin.

I find Solaris is special. You usually need to modify your PATH before
doing anything with Autotools. Something like:

#!/usr/bin/env bash

THIS_SYSTEM=$(uname -s 2>&1)
IS_SOLARIS=$(grep -i -c 'sunos' <<< "$THIS_SYSTEM")
...

if [ "$IS_SOLARIS" -ne 0 ]
then
    for path in /usr/gnu/bin /usr/sfw/bin /usr/ucb/bin /bin /usr/bin
/sbin /usr/sbin
    do
        if [ -d "$path" ]; then
            SOLARIS_PATH="$SOLARIS_PATH:$path"
        fi
    done

    PATH="$SOLARIS_PATH:$PATH"
fi

# Strip leading and trailing semi-colons
PATH=$(echo "$PATH" | sed 's/::/:/g' | sed 's/^:\(.*\)/\1/')
export PATH

# echo "New PATH: $PATH"

Jeff




Added tag(s) moreinfo. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Mon, 21 Sep 2020 19:48:01 GMT) Full text and rfc822 format available.

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sun, 14 Nov 2021 21:27:02 GMT) Full text and rfc822 format available.

Notification sent to Dennis Clarke <dclarke <at> blastwave.org>:
bug acknowledged by developer. (Sun, 14 Nov 2021 21:27:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 42419-done <at> debbugs.gnu.org
Subject: grep needs 'grep' to build
Date: Sun, 14 Nov 2021 13:26:27 -0800
Closing this bug report as it seems to have been a problem in the 
reporter's build setup.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 13 Dec 2021 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 96 days ago.

Previous Next


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