Gentoo Archives: gentoo-dev

From: Richard Yao <ryao@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Changing policy about -Werror
Date: Wed, 12 Sep 2018 21:54:22
Message-Id: 3E68FBFE-CC19-4EEE-AF73-CC12C3B80C87@gentoo.org
In Reply to: Re: [gentoo-dev] Changing policy about -Werror by "Andreas K. Huettel"
1 On Sep 12, 2018, at 4:28 PM, Andreas K. Huettel <dilfridge@g.o> wrote:
2
3 >> If a package really ought to have
4 >> -Werror due to a very good reason and is properly maintained to support it,
5 >> then there is nothing wrong with inventing a USE flag to give users the
6 >> option of enforcing that.
7 >
8 > There is something very *much* wrong with that.
9 >
10 > 1) It's trivial to enforce -Werror via the packages.env mechanism on specific
11 > packages (e.g. those that you maintain).
12
13 That really does not help the users see which packages explicitly support -Werror if they want it.
14 >
15 > 2) Compared to that, an additional useflag introduces a lot of unnecessary
16 > overhead at the package manager level *and* requires yet another level of
17 > policies and Gentoo-specific definitions.
18 It occurs to me that this is really a debug feature, so it really ought to be turned on for USE=debug. Use of USE=debug in production is largely discouraged, so this could be fine. However, this is very much a case by case thing.
19 >
20 > --
21 > Andreas K. Hüttel
22 > dilfridge@g.o
23 > Gentoo Linux developer
24 > (council, toolchain, perl, libreoffice, comrel)
25 >
26 >
27 >