View previous topic :: View next topic |
Author |
Message |
aharel n00b
Joined: 16 Nov 2011 Posts: 36
|
Posted: Sat Feb 28, 2015 11:58 pm Post subject: inherit fails in my local overlay |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Mar 01, 2015 7:45 am Post subject: |
|
|
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 |
|
|
aharel n00b
Joined: 16 Nov 2011 Posts: 36
|
Posted: Tue Oct 20, 2015 7:37 am Post subject: It worked the second time. |
|
|
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 |
|
|
|