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

Bug 427076

Summary: Gentoo ebuild dependency on package from overlay
Product: Portage Development Reporter: Samoilenko Yuri <kinnalru>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: kinnalru, mrueg
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Samoilenko Yuri 2012-07-18 10:48:16 UTC
It is possible to add overlay dependencies to ebuild DEPEND syntax?

Ex:
DEPEND="dev-lang/yasm::stuff"
Comment 1 Zac Medico gentoo-dev 2012-07-18 11:07:08 UTC
You can with EAPI 4-python:

http://people.apache.org/~Arfrever/EAPI_4-python_Specification
Comment 2 Samoilenko Yuri 2012-07-18 11:32:50 UTC
Hmm. I have the latests portage =sys-apps/portage-2.2.0_alpha116 and when I'am using EAPI="4-python" I have:

ebuild terminalus-env-0.1.ebuild digest

 * ERROR: skppk/terminalus-env-0.1 failed (depend phase):
 *   Unknown EAPI, Bug eclass maintainers.
Comment 3 Zac Medico gentoo-dev 2012-07-18 18:01:47 UTC
(In reply to comment #2)
> Hmm. I have the latests portage =sys-apps/portage-2.2.0_alpha116 and when
> I'am using EAPI="4-python" I have:
> 
> ebuild terminalus-env-0.1.ebuild digest
> 
>  * ERROR: skppk/terminalus-env-0.1 failed (depend phase):
>  *   Unknown EAPI, Bug eclass maintainers.

That's an eclass issue, and eclasses are not part of sys-apps/portage. You'll have to bug the eclass maintainers like the message says. It seems that a number of eclasses die like this:

$ cd /usr/portage/eclass
$ grep 'Unknown EAPI' *.eclass
cmake-utils.eclass:     *) die "Unknown EAPI, Bug eclass maintainers." ;;
gst-plugins-base.eclass:        *) die "Unknown EAPI" ;;
gtk-sharp-module.eclass:        *) die "Unknown EAPI." ;;
leechcraft.eclass:      *) die "Unknown EAPI, bug eclass maintainers" ;;
ruby-ng.eclass:         die "Unknown EAPI=${EAPI} for ruby-ng.eclass"
vim.eclass:             die "Unknown EAPI ${EAPI}"
xfconf.eclass:  *) die "Unknown EAPI." ;;
x-modular.eclass:               die "Unknown EAPI ${EAPI}"
Comment 4 Samoilenko Yuri 2012-07-19 05:13:58 UTC
cmake-utils.eclass fix:

 CMAKE_EXPF="src_compile src_test src_install"
 case ${EAPI:-0} in
-       4|3|2) CMAKE_EXPF+=" src_configure" ;;
+       4-python|4|3|2) CMAKE_EXPF+=" src_configure" ;;
        1|0) ;;
        *) die "Unknown EAPI, Bug eclass maintainers." ;;
 esac


Thx.