Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
inherit fails in my local overlay
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
aharel
n00b
n00b


Joined: 16 Nov 2011
Posts: 36

PostPosted: Sat Feb 28, 2015 11:58 pm    Post subject: inherit fails in my local overlay Reply with quote

Hi,

Trying to write my first ebuild (I need a 3D CAD program, and all the ebuilds I found are outdated) and I'm running into a weird problem where "inherit" fails.
1. created a local overlay as instructed in http://gentoo-en.vfose.ru/wiki/Overlay#Local_Overlays
2. started with http://wiki.gentoo.org/wiki/Basic_guide_to_write_Gentoo_Ebuilds, which doesn't go very far and everything there works.
3. looked at http://www.gentoo-wiki.info/HOWTO_Create_an_Updated_Ebuild, which covers my general use case
4. copied the "inherit eutils" line from the old ebuild I'm updating (for varicad-viewer) tried to ebuild ... manifest again
5. made a simpler reproduction in sci-misc/test which still gets the error:
Quote:
ahx test # ebuild test-1.1.ebuild manifest
* ERROR: sci-misc/test-1.1::my_local_overlay failed (depend phase):
* eutils.eclass could not be found by inherit()

6. Found https://forums.gentoo.org/viewtopic-p-7402972.html?sid=132e5060dfd8cf48010965ae01c4f143 and indeed,
A) the eclass exists in the usual location:
Quote:
ahx portage # ls -l /usr/portage/eclass/eutils.eclass
-rw-r--r-- 1 portage portage 51319 Jan 15 01:01 /usr/portage/eclass/eutils.eclass

B) my PORTAGE_ECLASS_LOCATIONS environment variable was empty

However, even after I
Quote:
export PORTAGE_ECLASS_LOCATIONS=/usr/portage/eclass

I still get the same error message

7. Verified that an emerge from the main portage tree (bzip2, as it happens) works as usual and that it uses inherit.

Any ideas?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Mar 01, 2015 7:45 am    Post subject: Reply with quote

Well, I'm not sure, but it just might be the page mentioned in step 1 is not quite up to date - it doesn't mention the need for metadata/layout.conf.
Check if a trivial one ('masters = gentoo') helps.
Back to top
View user's profile Send private message
aharel
n00b
n00b


Joined: 16 Nov 2011
Posts: 36

PostPosted: Tue Oct 20, 2015 7:37 am    Post subject: It worked the second time. Reply with quote

Just wanted to say thanks to VoidMage.
As far as I recall I didn't use his solution back in March. I guess I just ignored the warning back then.
But now I found myself in the same situation, tried VoidMage's solution and it worked as expected.
So thanks again.
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