Gentoo Archives: gentoo-dev

From: Matt Turner <mattst88@g.o>
To: Sergei Trofimovich <slyfox@g.o>
Cc: gentoo development <gentoo-dev@l.g.o>, x11 <x11@g.o>
Subject: Re: [gentoo-dev] [PATCH] xorg-2.eclass: Use --disable-selective-werror.
Date: Sun, 29 Jan 2017 20:08:13
Message-Id: CAEdQ38HJ6B+MJO1R8d68LoWY6XJDYqBm9H6M+GxctdMJy17cOw@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH] xorg-2.eclass: Use --disable-selective-werror. by Sergei Trofimovich
1 On Sun, Jan 29, 2017 at 12:00 PM, Sergei Trofimovich <slyfox@g.o> wrote:
2 > On Sun, 29 Jan 2017 11:42:16 -0800
3 > Matt Turner <mattst88@g.o> wrote:
4 >
5 >> Bug: https://bugs.gentoo.org/416069
6 >> ---
7 >> eclass/xorg-2.eclass | 5 +++++
8 >> 1 file changed, 5 insertions(+)
9 >>
10 >> diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass
11 >> index b7c7ba2..7d681f2 100644
12 >> --- a/eclass/xorg-2.eclass
13 >> +++ b/eclass/xorg-2.eclass
14 >> @@ -468,6 +468,11 @@ xorg-2_src_configure() {
15 >> local dep_track="--disable-dependency-tracking"
16 >> fi
17 >>
18 >> + # Check if package supports disabling of selective -Werror=...
19 >> + if grep -q -s "disable-selective-werror" ${ECONF_SOURCE:-.}/configure; then
20 >> + local dep_track="--disable-selective-werror"
21 >
22 > I guess you planned to use new local var name here (or '+='). Otherwise
23 > code will drop --disable-dependency-tracking a few lines above.
24
25 Derp. Thanks for noticing.