Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466484 - portage complains about 'automake --get-libdir' call
Summary: portage complains about 'automake --get-libdir' call
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-19 17:25 UTC by Michał Górny
Modified: 2013-04-20 06:18 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 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.