Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111436 - add support for filtering stderr output for QA purposes
Summary: add support for filtering stderr output for QA purposes
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 155597 (view as bug list)
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2005-11-03 19:24 UTC by SpanKY
Modified: 2007-01-14 23:32 UTC (History)
3 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 SpanKY gentoo-dev 2005-11-03 19:24:48 UTC
as discussed on irc, it'd be nice to have a mechanism to filter stderr to catch
warnings and such and abort the build

specifically, we'd like to catch 'dereferencing type-punned pointer will break
strict-aliasing rules' warnings since these almost always end up with runtime
bugs/crashes
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-11-03 19:32:15 UTC
...and as discussed on irc, come up with a filter, and I can do the modification
to handle it.
Nee stderr only, or?
Comment 2 Zac Medico gentoo-dev 2006-11-26 13:30:54 UTC

*** This bug has been marked as a duplicate of 155597 ***
Comment 3 Zac Medico gentoo-dev 2006-11-26 13:31:55 UTC
Opp, I meant to dupe it the other way.
Comment 4 Zac Medico gentoo-dev 2006-11-26 13:32:04 UTC
*** Bug 155597 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2007-01-02 09:34:20 UTC
thinking about this, we already have most parts in place ...

if the user has PORTAGE_LOGDIR set, then we have a full build log we can work with, so really the case is where the user hasnt set that variable

what i propose is:
 - set PORTAGE_LOGFILE in environment that points to the relevant build output
 - if user does not have PORTAGE_LOGDIR set, then pretend they have it set to $T
 - in install_qa_check(), we can add grep's and what not to work on the logfile

should be trivial to do this now
Comment 6 SpanKY gentoo-dev 2007-01-02 18:33:15 UTC
ok, i've merged my previous idea with help from zmedico ... i've also integrated the aforementioned pointer scanner code

this stuff only spits out QA Notices in the normal scenario ... if you have FEATURES=stricter, then it'll abort ...

we'll see how well that flies and how we need to tweak this behavior and/or the messages scanned for
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2007-01-02 20:46:07 UTC
thanks!
Comment 8 Zac Medico gentoo-dev 2007-01-04 18:27:41 UTC
What we've got now has been released in 2.1.2_rc4-r6.
Comment 9 Zac Medico gentoo-dev 2007-01-14 23:32:57 UTC
2.1.2 final has been released.