Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155597 - QA checks for implicit functions which return pointers
Summary: QA checks for implicit functions which return pointers
Status: RESOLVED DUPLICATE of bug 111436
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-18 10:02 UTC by Daniel Drake (RETIRED)
Modified: 2006-11-26 13:32 UTC (History)
2 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 Daniel Drake (RETIRED) gentoo-dev 2006-11-18 10:02:10 UTC
Hi,

After reading the following bug I had the idea that having some kind of check like this inside portage might be useful for detecting problems with 64bit archs early on.
http://bugzilla.gnome.org/show_bug.cgi?id=353314

Would it be practical to implement some parsing along these lines?
Comment 1 Mike Doty (RETIRED) gentoo-dev 2006-11-18 10:14:41 UTC
it would seem useful for non x86 arches(amd64, ia64, and probably ppc64 at a minimum) but I fear that it would be a huge undertaking to correct all the packages that throw warnings like this even though the returned result is correct(i.e. false warning) media-* stuff comes to mind.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2006-11-18 10:24:31 UTC
In which cases are the warnings false?
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-11-18 16:16:22 UTC
I think I speak for the portage team when I say we'd prefer you implement it in your profile.bashrc as opposed to doing it internally to portage if possible.  Much of the time there is no need for portage to know or care about these checks other than to run them and record failures.
Comment 4 Zac Medico gentoo-dev 2006-11-18 17:01:35 UTC
(In reply to comment #3)
> I think I speak for the portage team when I say we'd prefer you implement it in
> your profile.bashrc as opposed to doing it internally to portage if possible.

When PORT_LOGDIR is enabled, portage exports the name of the log file in the ebuild environment as PORTAGE_LOG_FILE.  You'd want to grep that file sometime after the src_compile phase.  The user level phase hooks would be one way to trigger it (but profiles and ebuilds/eclasses aren't allowed to use those).

> Much of the time there is no need for portage to know or care about these
> checks other than to run them and record failures.

Well, we don't want to include the qa checks themselves directly in portage.  However, we could create a general framework that allows qa checks like this to be implemented in eclasses or something similar. 

Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-11-18 22:48:56 UTC
(In reply to comment #3)
> I think I speak for the portage team when I say we'd prefer you implement it in
> your profile.bashrc as opposed to doing it internally to portage if possible. 

I don't really have a personal interest in pursuing this, I just saw that bug report and realised that automated weeding of these messages makes a certain degree of sense.

> Much of the time there is no need for portage to know or care about these
> checks other than to run them and record failures.

Which is precisely what I'm suggesting. Interested people who read the logs or see the warnings fly by then might look into fixing them (similar to the current QA notices).

However, if you don't want to have this kind of thing running in portage, that's fine -- go ahead and close this bug. It was only a suggestion and I know that not all suggestions are feasible/practical.
Comment 6 SpanKY gentoo-dev 2006-11-26 07:31:59 UTC
sounds like a dupe of 111436

however, this particular test would catch false positives ... the glib hash API for example has generic callbacks which utilize void* arguments and often times people just pass in integers ... then we end up with this warning
Comment 7 Zac Medico gentoo-dev 2006-11-26 13:30:54 UTC
*** Bug 111436 has been marked as a duplicate of this bug. ***
Comment 8 Zac Medico gentoo-dev 2006-11-26 13:32:04 UTC

*** This bug has been marked as a duplicate of 111436 ***