# HG changeset patch # User "Yann E. MORIN" # Date 1262117811 -3600 # Node ID b522b439a1e4a7f8443d783caa52e92133ae5030 # Parent 5360c810222d471db619da4ed765fccdf487b310 config: fix generated config files when GREP_OPTIONS set --color=always grep is used when generating some .in files (in config.gen). If GREP_OPTIONS contains --color=always, then the generated files will contains some escape sequences setting the color, and mconf would choke on those escape sequences. Always set and export an empty GREP_OPTIONS to avoid that. Issue reported by Kevin Kirkup : http://sourceware.org/ml/crossgcc/2009-12/msg00026.html (transplanted from a5020a1facffc046d23d39a71a1b8089ca84beac) diff -r 5360c810222d -r b522b439a1e4 ct-ng.in --- a/ct-ng.in Sat Dec 19 12:44:21 2009 +0100 +++ b/ct-ng.in Tue Dec 29 21:16:51 2009 +0100 @@ -32,6 +32,10 @@ # bash. export SHELL=$(bash) +# GREP_OPTIONS=--color=always will break the generated .in files +# We do not need any GREP_OPTIONS anyway, so set it to empty. +export GREP_OPTIONS= + # Make the restart/stop steps availabe to scripts/crostool-NG.sh export CT_STOP:=$(STOP) export CT_RESTART:=$(RESTART)