Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: williamh@g.o, floppym@g.o, Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH 2/2] meson.eclass: disable werror
Date: Tue, 19 Apr 2022 18:22:39
Message-Id: 20220419182159.3381283-2-sam@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/2] meson.eclass: disable PCH by Sam James
1 It's Gentoo policy to disable Werror where possible and this is
2 a builtin Meson option, so let's use it, to save needing to
3 add this all the time in ebuilds.
4
5 Closes: https://bugs.gentoo.org/754279
6 Signed-off-by: Sam James <sam@g.o>
7 ---
8 eclass/meson.eclass | 4 ++++
9 1 file changed, 4 insertions(+)
10
11 diff --git a/eclass/meson.eclass b/eclass/meson.eclass
12 index 809cf10f8366..f2f7173f5a9a 100644
13 --- a/eclass/meson.eclass
14 +++ b/eclass/meson.eclass
15 @@ -329,6 +329,10 @@ meson_src_configure() {
16 # bug #839549), but in any case, we don't want to bother attempting
17 # this.
18 -Db_pch=false
19 +
20 + # It's Gentoo policy to not have builds die on blanket -Werror, as it's
21 + # an upstream development matter. bug #754279.
22 + -Dwerror=false
23 )
24
25 if [[ -n ${EMESON_BUILDTYPE} ]]; then
26 --
27 2.35.1