Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350482 - EAPI=4 - default_src_compile and default_src_install do not exist
Summary: EAPI=4 - default_src_compile and default_src_install do not exist
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-03 18:08 UTC by Martin Väth
Modified: 2011-01-03 22:42 UTC (History)
0 users

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 Martin Väth 2011-01-03 18:08:30 UTC
With EAPI="4", if there is no src_compile or src_install function defined,
then nothing is done, even if ${S}/Makefile exists.
With EAPI="3", src_compile worked as required.
As I understand pms, in EAPI="4" both functions should have a default.
Comment 1 Zac Medico gentoo-dev 2011-01-03 20:30:24 UTC
It seems to work for me. Here's what it shows for those functions in $T/environment after I run the setup phase:

src_compile () 
{ 
    _eapi2_src_compile "$@"
}

src_install () 
{ 
    _eapi4_src_install "$@"
}

The _eapi2_src_compile and _eapi4_src_install functions are both defined inside /usr/lib/portage/bin/ebuild.sh. The default_* variants are generarated by the _ebuild_phase_funcs function in the same file.
Comment 2 Martin Väth 2011-01-03 22:42:03 UTC
Sorry for the noise:
Originally there was an "inherit latex-package" in the ebuild
(this eclass EXPORTS src_compile src_install),
and apparently, I had deleted the wrong line instead of the inherit...