Patrick McLean wrote:
> For about a month now, we (amd64) have had some code in our
> profile.bashrc that filters CFLAGS that are unrecognized by gcc, and
> warnings the user about bad CFLAGS.
> 
> So far it has worked fairly well, and it has really cut down on the
> number of bugs that filed by people with extreme ricer CFLAGS. It might
> be an idea to have something similar in the global bashrc, and have a
> system for arches to customize the CFLAGS that are warned about.
> 
> The code is at gentoo-x86/profiles/default-linux/amd64/profile.bashrc
> for those who want to see it.

Except you need a way for them to turn it off, and you do not currently
provide one.  We can set default flags all we want, but I don't see
filtering 'bad' flags as necessarily our problem.  If you want to say:

"Hey we have had issues with people filing bogus bug reports with CFLAGS
that are completely inappropriate, so by default we check the sanity of
your CFLAGS, this is how you turn those checks off." then I'd be ok with it.

Most of the Ricers won't read it, and maybe you can print a warning that
CFLAG checking is disabled.

However leaving it on all the time merely imposes penalties on the power
users who wish to use your profile.  Your profile is a tool that should
be useful to all classes of users.

-Alec Warner
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to