Gentoo Archives: gentoo-dev

From: Matt Turner <mattst88@g.o>
To: gentoo-dev@l.g.o
Cc: x11@g.o, Matt Turner <mattst88@g.o>
Subject: [gentoo-dev] [PATCH] xorg-2.eclass: Use --disable-selective-werror.
Date: Sun, 29 Jan 2017 20:09:02
Message-Id: 1485720492-24543-1-git-send-email-mattst88@gentoo.org
In Reply to: [gentoo-dev] [PATCH] xorg-2.eclass: Use --disable-selective-werror. by Matt Turner
1 Bug: https://bugs.gentoo.org/416069
2 ---
3 eclass/xorg-2.eclass | 6 ++++++
4 1 file changed, 6 insertions(+)
5
6 diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass
7 index b7c7ba2..fabad09 100644
8 --- a/eclass/xorg-2.eclass
9 +++ b/eclass/xorg-2.eclass
10 @@ -468,8 +468,14 @@ xorg-2_src_configure() {
11 local dep_track="--disable-dependency-tracking"
12 fi
13
14 + # Check if package supports disabling of selective -Werror=...
15 + if grep -q -s "disable-selective-werror" ${ECONF_SOURCE:-.}/configure; then
16 + local selective_werror="--disable-selective-werror"
17 + fi
18 +
19 local myeconfargs=(
20 ${dep_track}
21 + ${selective_werror}
22 ${FONT_OPTIONS}
23 "${xorgconfadd[@]}"
24 )
25 --
26 2.7.3