Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416069 - xorg-2.eclass: add --disable-selective-werror to configure
Summary: xorg-2.eclass: add --disable-selective-werror to configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror 415949 415953 474686 494308 499442 529318 541896 551376 557486 567634
  Show dependency tree
 
Reported: 2012-05-15 11:54 UTC by Samuli Suominen (RETIRED)
Modified: 2017-02-01 06:40 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xorg-2.eclass.patch (xorg-2.eclass.patch,207 bytes, patch)
2012-05-15 21:33 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2012-05-15 11:54:15 UTC
A lot of X.org related packages are passing -Werror= like -Werror=implicit-function-declaration

A generic way to solve this would be to add 'append-flags -Wno-error' somewhere in xorg-2.eclass

Bug 415949
Bug 415953
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-05-15 21:33:12 UTC
Created attachment 311897 [details, diff]
xorg-2.eclass.patch
Comment 2 Mike Gilbert gentoo-dev 2012-06-23 15:58:03 UTC
-Wno-error does not seem to de-activate specific -Werror=... checks.
Comment 3 Mike Gilbert gentoo-dev 2012-06-23 16:08:36 UTC
It looks like Xorg packages support the following configure flag, which would be a better fix.

  --disable-selective-werror
                          Turn off selective compiler errors. (default:
                          enabled)
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2013-06-29 23:45:42 UTC
--disable-selective-werror comes from xorg-macros.  Please use it.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2013-12-23 19:53:58 UTC
Do we not have an X11 team anymore?
Comment 6 Pacho Ramos gentoo-dev 2015-01-05 19:08:50 UTC
I guess we could handle this as currently done for disable-depencency-tracking in xorg-2.eclass no? (grep in configure looking for this option and appending it when available)
Comment 7 Pacho Ramos gentoo-dev 2015-01-15 13:20:44 UTC
(In reply to Pacho Ramos from comment #6)
> I guess we could handle this as currently done for
> disable-depencency-tracking in xorg-2.eclass no? (grep in configure looking
> for this option and appending it when available)

Any problem with me doing that changes?
Comment 8 Mike Gilbert gentoo-dev 2015-01-15 14:10:09 UTC
(In reply to Pacho Ramos from comment #6)
> I guess we could handle this as currently done for
> disable-depencency-tracking in xorg-2.eclass no? (grep in configure looking
> for this option and appending it when available)

Sounds good to me. Would be nice to hear from a maintainer though.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-01-15 15:50:14 UTC
The issue is not that xorg packages indiscriminately use -Werror, as this bug blocking bug 260867 might suggest.

The build system selectively turns certain compiler warnings into errors (-Werror=array-bounds among others) which are known to have been indications of real problems in the past.

I am not comfortable with this change, but other x11 members might want chime in too.
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2015-01-16 00:10:53 UTC
It doesn't matter if it's selective warnings or not, -Werror is not allowed in the tree.  Half the bugs I had filed for GCC 4.8 were caused by this.  It's a powderkeg for anyone running anything but the current GCC release (eg. older GCC releases are really bad for -Warray-bounds false positives).
Comment 11 Matt Turner gentoo-dev 2017-01-29 19:43:26 UTC
(In reply to Pacho Ramos from comment #6)
> I guess we could handle this as currently done for
> disable-depencency-tracking in xorg-2.eclass no? (grep in configure looking
> for this option and appending it when available)

I've sent a patch that does this for review to gentoo-dev@.
Comment 12 Matt Turner gentoo-dev 2017-02-01 06:40:16 UTC
Committed as

commit 6aaaf15f8882dd112d22454600294e37969fa822
Author: Matt Turner <mattst88@gentoo.org>
Date:   Sun Jan 29 11:30:39 2017 -0800

    xorg-2.eclass: Use --disable-selective-werror.