1 |
commit: 6aaaf15f8882dd112d22454600294e37969fa822 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 29 19:30:39 2017 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 06:35:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6aaaf15f |
7 |
|
8 |
xorg-2.eclass: Use --disable-selective-werror. |
9 |
|
10 |
Bug: https://bugs.gentoo.org/416069 |
11 |
|
12 |
eclass/xorg-2.eclass | 6 ++++++ |
13 |
1 file changed, 6 insertions(+) |
14 |
|
15 |
diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass |
16 |
index c356c33..9a1abb1 100644 |
17 |
--- a/eclass/xorg-2.eclass |
18 |
+++ b/eclass/xorg-2.eclass |
19 |
@@ -468,8 +468,14 @@ xorg-2_src_configure() { |
20 |
local dep_track="--disable-dependency-tracking" |
21 |
fi |
22 |
|
23 |
+ # Check if package supports disabling of selective -Werror=... |
24 |
+ if grep -q -s "disable-selective-werror" ${ECONF_SOURCE:-.}/configure; then |
25 |
+ local selective_werror="--disable-selective-werror" |
26 |
+ fi |
27 |
+ |
28 |
local myeconfargs=( |
29 |
${dep_track} |
30 |
+ ${selective_werror} |
31 |
${FONT_OPTIONS} |
32 |
"${xorgconfadd[@]}" |
33 |
) |