Gentoo Archives: gentoo-dev

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Changing policy about -Werror
Date: Sun, 09 Sep 2018 11:32:44
Message-Id: 20180909143221.21d784d02f51623e8c57c545@gentoo.org
1 Hi!
2
3 Our current -Werror policy demands unconditional removal:
4 https://devmanual.gentoo.org/ebuild-writing/common-mistakes/index.html#-werror-compiler-flag-not-removed
5
6 I think this is wrong, see bugs 665464, 665538 for a recent
7 discussion why.
8
9 My point is that in *most* cases -Werror indeed should be removed,
10 because upstream rarely can keep up with all possible configure,
11 *FLAGS, compiler versions and arch combinations. But! In some cases
12 — especially for security oriented software — this flag may be
13 pertain and may be kept at maintainer's discretion.
14
15 The rationale is that -Werror usually points to dangerous
16 situations like uninitialized variables, pointer type mismatch or
17 implicit function declaration (and much more) which may lead to
18 serious security implications.
19
20 So, if maintainer has enough manpower to support this flag, we
21 should allow to keep it. Of course if it will cause long-standing
22 troubles (e.g. bugs opened for a long time) QA should have power to
23 remove it or demand its removal.
24
25 So my proposal is:
26
27 1) Deprecate QA policy with unconditional demand of -Werror removal.
28 2) Add to devmanual's chapter on -Werror an exception clause about
29 security-oriented software and maintainer's right to make final
30 decision.
31
32 Best regards,
33 Andrew Savchenko

Replies

Subject Author
Re: [gentoo-dev] Changing policy about -Werror Thomas Deutschmann <whissi@g.o>
Re: [gentoo-dev] Changing policy about -Werror Jeroen Roovers <jer@g.o>
Re: [gentoo-dev] Changing policy about -Werror Richard Yao <ryao@g.o>
Re: [gentoo-dev] Changing policy about -Werror "Michał Górny" <mgorny@g.o>
Re: [gentoo-dev] Changing policy about -Werror Michael Orlitzky <mjo@g.o>
Re: [gentoo-dev] Changing policy about -Werror Matt Turner <mattst88@g.o>
Re: [gentoo-dev] Changing policy about -Werror "Chí-Thanh Christopher Nguyễn" <chithanh@g.o>
Re: [gentoo-dev] Changing policy about -Werror "Andreas K. Huettel" <dilfridge@g.o>
[gentoo-dev] acceptable alternatives to -Werror, was: Changing policy about -Werror "Chí-Thanh Christopher Nguyễn" <chithanh@g.o>
[gentoo-dev] Re: Changing policy about -Werror Nikos Chantziaras <realnc@×××××.com>