From: Michal Marek <mmarek@suse.cz>
To: Borislav Petkov <bp@alien8.de>,
linux-kbuild@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>
Cc: x86-ml <x86@kernel.org>
Subject: Re: Kbuild: Ignore GREP_OPTIONS env variable
Date: Wed, 06 Nov 2013 22:42:41 +0100 [thread overview]
Message-ID: <527AB7D1.9080307@suse.cz> (raw)
In-Reply-To: <20131030160635.GE13290@pd.tnic>
Dne 30.10.2013 17:06, Borislav Petkov napsal(a):
> So I had defined GREP_OPTIONS=--color=always on one of my boxes and had
> forgotten about it and the kernel build started failing because we use
> grep quite a while in the tree and it started issuing shell color markup
> which generated garbage files, like the syscall headers on x86, for
> example.
>
> I have a fix below which seems to take care of it but what is the
> general opinion: Do we want to be more robust against the environment we
> find on a machine before building the kernel or let the user figure it
> out himself that he should be using
>
> GREP_OPTIONS=--color=auto
>
> in the first place and it is his own moronic fault if he does 'always'?
I think that on a scale from one to ten, building with
GREP_OPTIONS=--color=always and building with LC_COLLATE=<language with
non-ASCII sorting rules> score about the same. And are already
sanitizing the LC_* variables.
> +GREP_OPTIONS=
> +export GREP_OPTIONS
Just remove it from the enviromnet completely, like the next statement does:
> +
> # Avoid funny character set dependencies
> unexport LC_ALL
> LC_COLLATE=C
Michal
next prev parent reply other threads:[~2013-11-07 4:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 16:06 Kbuild: Ignore GREP_OPTIONS env variable Borislav Petkov
2013-11-06 21:42 ` Michal Marek [this message]
2013-11-11 14:27 ` [PATCH -v1.1] " Borislav Petkov
2013-11-11 17:00 ` Michal Marek
2013-11-11 20:43 ` Ingo Molnar
2013-11-11 20:58 ` Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=527AB7D1.9080307@suse.cz \
--to=mmarek@suse.cz \
--cc=bp@alien8.de \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox