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

Bug 466484

Summary: portage complains about 'automake --get-libdir' call
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: minor CC: base-system, qa
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-04-19 17:25:24 UTC
I've committed the following snippet to dev-python/subunit;

  DEPEND=">=sys-devel/automake-1.12"

  src_prepare() {
    # update py-compile to handle py3 properly
    cp "$(automake --print-libdir || die)"/py-compile . || die

    ...
  }

And now portage complains that:

 * QA Notice: 'automake' called by src_prepare: dev-python/subunit-0.0.10-r1
 * Use autotools.eclass instead of calling 'automake' directly.

But is there anything autotools.eclass could help me with? I'm not reconfiguring the package, and I don't see any helper there which could be used to obtain automake's libdir.
Comment 1 SpanKY gentoo-dev 2013-04-20 00:25:54 UTC
adding a helper to autotools.eclass like automake_tool() should be fine.

 "$(automake_tool py-compile)" . || die
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-04-20 05:13:16 UTC
(In reply to comment #1)
> adding a helper to autotools.eclass like automake_tool() should be fine.
> 
>  "$(automake_tool py-compile)" . || die

You mean:

  cp "$(automake_tool py-compile)" . || die

Correct? Probably the name should have some 'get' or otherwise it suggests it calls it.
Comment 3 SpanKY gentoo-dev 2013-04-20 06:18:44 UTC
(In reply to comment #2)

yes, cp.  in your snippet, i thought you were running `py-compile` and not just updating it locally.

there is talk upstream of adding a dedicated command so you can automake to refresh/install its helper programs, but that doesn't seem to have gone anywhere.