Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
git.eclass could not be found by inherit() [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Tue Oct 08, 2013 5:39 am    Post subject: git.eclass could not be found by inherit() [SOLVED] Reply with quote

Suddently out of the blue [ I guess I did not pay attention when it has started], my strongswan overlay ebuild [ based to get the latest greatest git version]
is failing and it complains about git.eclass could not be found by inherit()

Any clues why the portage has changed behavior?

Quote:

Calculating dependencies / * ERROR: net-misc/strongswan-9999::myoverlay failed (depend phase):
* git.eclass could not be found by inherit()
*
* Call stack:
* ebuild.sh, line 545: Called source '/usr/local/portage/overlay/net-misc/strongswan/strongswan-9999.ebuild'
* strongswan-9999.ebuild, line 6: Called inherit 'eutils' 'linux-info' 'user' 'git'
* ebuild.sh, line 257: Called die
* The specific snippet of code:
* [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()"
*
* If you need support, post the output of `emerge --info '=net-misc/strongswan-9999::myoverlay'`,
* the complete build log and the output of `emerge -pqv '=net-misc/strongswan-9999::myoverlay'`.
* Working directory: '/usr/lib64/portage/pym'
* S: '/var/tmp/portage/net-misc/strongswan-9999/work/strongswan-9999'



My ebuild is the strongswan ebuild just modified to get the git code

Quote:

gentoo olpeleri # cat /usr/local/portage/overlay/net-misc/strongswan/strongswan-9999.ebuild | less
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/strongswan-5.0.4.ebuild,v 1.5 2013/05/11 11:18:38 ago Exp $

EAPI=2
inherit eutils linux-info user git

DESCRIPTION="IPsec-based VPN solution focused on security and ease of use, supporting IKEv1/IKEv2 and MOBIKE"
HOMEPAGE="http://www.strongswan.org/"
#SRC_URI="http://download.strongswan.org/${P}.tar.bz2"
EGIT_REPO_URI="git://git.strongswan.org/strongswan.git"
#EGIT_BRANCH="ikev1-dpd-fix"
LICENSE="GPL-2 RSA DES"
SLOT="0"
KEYWORDS="amd64 arm ppc ~ppc64 x86"
IUSE="+caps curl debug dhcp eap farp gcrypt ldap mysql +non-root +openssl sqlite pam"

COMMON_DEPEND="!net-misc/openswan
>=dev-libs/gmp-4.1.5
gcrypt? ( dev-libs/libgcrypt )
caps? ( sys-libs/libcap )
curl? ( net-misc/curl )
ldap? ( net-nds/openldap )
openssl? ( >=dev-libs/openssl-0.9.8[-bindist] )
mysql? ( virtual/mysql )
sqlite? ( >=dev-db/sqlite-3.3.1 )
pam? ( sys-libs/pam )"
DEPEND="${COMMON_DEPEND}
virtual/linux-sources
sys-kernel/linux-headers"
RDEPEND="${COMMON_DEPEND}
virtual/logger
sys-apps/iproute2"

UGID="ipsec"
.....

_________________
Olivier PELERIN


Last edited by OPelerin on Tue Oct 08, 2013 8:32 am; edited 1 time in total
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 140
Location: Berlin (Germany)

PostPosted: Tue Oct 08, 2013 7:06 am    Post subject: Reply with quote

git.eclass ist dead and was cleaned from the tree three days ago. Either use git-2.eclass (or maybe git-r3.eclass) or get an old git.eclass and put it to your overlay (or - if someone else maintains that overlay get him/her to do the aforementioned changes).
Back to top
View user's profile Send private message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Tue Oct 08, 2013 8:32 am    Post subject: Reply with quote

changed git to git-2 and now it works.


Thanks!
_________________
Olivier PELERIN
Back to top
View user's profile Send private message
hitchhacker
n00b
n00b


Joined: 13 Oct 2013
Posts: 1

PostPosted: Sun Oct 13, 2013 4:32 pm    Post subject: x-modular Reply with quote

Thanks this worked.
I needed to change git to git-2 in /usr/portage/eclass/x-modular.eclass as well.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum