Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 501712

Summary: sys-apps/portage: ebuild.sh outputs QA notice when automake is called from _automake_version
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: EclassesAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: base-system, nikoli, phajdan.jr, rafaelmartins
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=509786
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Add _automake_version to the whitelist

Description Mike Gilbert gentoo-dev 2014-02-18 19:40:43 UTC
* QA Notice: 'automake' called by _automake_version: app-shells/dash-0.5.7.4
 * Use autotools.eclass instead of calling 'automake' directly.

I think this problem was introduced in version 1.160 of autotools.eclass.

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/autotools.eclass?r1=1.159&r2=1.160
Comment 1 Mike Gilbert gentoo-dev 2014-02-18 20:01:03 UTC
It looks like ebuild.sh has a hard-coded whitelist of functions where automake may be called.
Comment 2 Mike Gilbert gentoo-dev 2014-02-22 18:48:03 UTC
*** Bug 502154 has been marked as a duplicate of this bug. ***
Comment 3 Mike Gilbert gentoo-dev 2014-02-22 19:00:08 UTC
Created attachment 371084 [details, diff]
Add _automake_version to the whitelist

Here's the obvious fix.

It would be nice if we did not have to hard-code that list in ebuild.sh, however.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2014-03-01 12:35:41 UTC
I was impatient and pushed it as:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/autotools.eclass?r1=1.160&r2=1.161

Maybe it's worth keeping single function-wrapper that exempts from warnings?

Like 'blessed-autocall() { "@" }' and stop maintaining that large list?
Otherwise it's a bit too tied to portage version.
Comment 5 Ben Kohler gentoo-dev 2014-03-03 04:30:21 UTC
*** Bug 503284 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2014-11-17 02:28:16 UTC
(In reply to Sergei Trofimovich from comment #4)

unfortunately your change broke the function entirely.  it needed to parse the output, but the wrapper function swallows all the output (by design).
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2014-11-23 17:08:18 UTC
(In reply to SpanKY from comment #6)
> (In reply to Sergei Trofimovich from comment #4)
> 
> unfortunately your change broke the function entirely.  it needed to parse
> the output, but the wrapper function swallows all the output (by design).

Ugh, apologies for breakage.

Thanks for fixing it!