GNOME Bugzilla – Bug 313531
gnome-autogen.sh uses grep syntax solaris doesn't understand
Last modified: 2005-08-17 00:41:57 UTC
Please describe the problem: I'm tinderboxing gnome, and gnome-autogen.sh uses syntax that solaris's /usr/bin/grep doesn't understand (it's incredibly brain-dead). Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information: The solution is to either use /usr/xpg4/bin/grep or ggrep. The question is, should I just work around this by fiddling my $PATH, or is it an actual bug that needs to be fixed, by munging $PATH, or introducing $grep which uses ggrep by preference ...
*** Bug 313539 has been marked as a duplicate of this bug. ***
*** Bug 313540 has been marked as a duplicate of this bug. ***
Can you point out which particular syntax Solaris Grep is getting stuck on?
Is this the grep call causing the problems? if grep "^\(AC\|IT\)_PROG_INTLTOOL" $configure_ac >/dev/null; then That is using extended regexps, which aren't usually turned on unless you use "grep -E" or egrep. If that's the only problem you are running into, then we can fix that.
Yeah, that's the syntax. Solaris egrep doesn't like it either - it doesn't want the (, ), and | escaped. GNU egrep doesn't want them escaped either, so changing the line to if egrep "^(AC|IT)_PROG_INTLTOOL" $configure_ac >/dev/null; then should be the correct fix. This actaully occurs twice, at lines 230 and 361.
Fixed in CVS.