Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384193 - sys-apps/portage: add a check to detect -Werror usage
Summary: sys-apps/portage: add a check to detect -Werror usage
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: NeedPatch
: 409955 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-23 12:02 UTC by Pacho Ramos
Modified: 2020-12-06 04:21 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2011-09-23 12:02:36 UTC
I think would be interesting to add a QA check to warn us when a package is being built with Werror and, then, we can fix it before committing.


Thanks

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2011-09-23 17:45:21 UTC
How are we supposed to know it's being built with -Werror, by searching the build log? We can do that along with the other _check_build_log stuff like this:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1ef4238727ec3cd69bda9bcae9ce899fd3e66f43
Comment 2 Pacho Ramos gentoo-dev 2011-09-23 20:58:47 UTC
Not sure how Diego is checking for it... he already told be wasn't sure about to implement it into portage, but maybe it helps anyway :-/
Comment 3 Pacho Ramos gentoo-dev 2011-10-25 10:50:18 UTC
(In reply to comment #1)
> How are we supposed to know it's being built with -Werror, by searching the
> build log? We can do that along with the other _check_build_log stuff like
> this:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1ef4238727ec3cd69bda9bcae9ce899fd3e66f43

The problem of checking build.log is for packages using V=0 make option as, if I don't misremember, it won't show used flags (well, I would even suggest to use V=1 by default always as it gives more useful build.logs and people wanting quiet output should run emerge --quiet instead, but maybe this was already discussed)
Comment 4 Fabian Groffen gentoo-dev 2011-10-25 10:53:36 UTC
yup, in particular the cmake-loving people hate any "non pretty" output written to stdout, which kills any opportunity to see what's going on.
Comment 5 Pacho Ramos gentoo-dev 2011-10-25 10:57:22 UTC
(In reply to comment #4)
> yup, in particular the cmake-loving people hate any "non pretty" output written
> to stdout, which kills any opportunity to see what's going on.

If it was already discussed, could you please point me to mailing list thread? I cannot find it (and don't have much time for searching more). Thanks a lot :)

Of course, if you neither have time, don't worry, will re-search later
Comment 6 Fabian Groffen gentoo-dev 2011-10-25 11:10:41 UTC
here you are: bug #306207

I can't find the discussion on -dev or -project ML
Comment 7 SpanKY gentoo-dev 2011-10-25 11:26:12 UTC
for autotools, we already have Bug 379497 to address this
Comment 8 Pacho Ramos gentoo-dev 2011-10-25 11:35:32 UTC
(In reply to comment #6)
> here you are: bug #306207
> 
> I can't find the discussion on -dev or -project ML

Thanks, looks like, per comment https://bugs.gentoo.org/show_bug.cgi?id=306207#c11 we would have enough for checking build.log for used flags :D

(In reply to comment #7)
> for autotools, we already have Bug 379497 to address this

Nice, well, maybe it will be delayed some time as looks like it would require and eapi bump :S, but happy to see it will be handled 

Once build.logs provide needed output, this could also be extended to detect -D[A-Z_]*DISABLE_DEPRECATED also I think
Comment 9 Pacho Ramos gentoo-dev 2011-11-01 12:44:05 UTC
Maybe these checks could be added without waiting for eapi bump but, instead, asking people to set AM_DEFAULT_VERBOSITY themselves until then :-/
Comment 10 Zac Medico gentoo-dev 2012-05-05 08:25:00 UTC
*** Bug 409955 has been marked as a duplicate of this bug. ***
Comment 11 Julian Ospald 2012-12-05 12:21:41 UTC
verbose build log is policy now, so we should rely on it

if a package does not show verbose log, then it's a bug.
Comment 12 Pacho Ramos gentoo-dev 2013-05-03 07:12:21 UTC
As I can see in gentoo-dev ML, this would also be interesting for gcc-4.8 adoption. Could be done? :)

Thanks a lot!
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2013-05-18 06:33:06 UTC
There are packages like app-shells/mksh that have a build system that echoes command lines during configure, and -Werror is required for many configure tests.  So if we do come up with a check for -Werror we'd also need a way for ebuilds to turn it off.
Comment 14 Agostino Sarubbo gentoo-dev 2020-09-09 15:26:27 UTC
any progress here?
Comment 15 Zac Medico gentoo-dev 2020-09-09 16:05:33 UTC
No progress so far.