The econf() function in ebuild.sh checks if ECONF_SOURCE is set before defaulting to the current directory, when looking for a configure script. However, calls to econf() from several other functions don't use ECONF_SOURCE to search for a configure script. Instead, they check only the current directory, and silently skip the configure step, if the script is not found there. This breaks ebuilds that try to compile in a directory other than the source directory. Reproducible: Always
Created attachment 119129 [details] patch for x-modular.eclass x-modular has this problem. Here's a patch.
I don't think this is a portage bug, if specific ebuilds or eclasses need fixing it's probably easier to just e-mail the specific maintainers. -Alec
Oh, ok. Thanks. However, the default src_compile() function in ebuild.sh does the same thing. Should I make a patch for that file here? /\V
Yes please; you might want to make this a tracker for all the eclasses that do this too.
Created attachment 119142 [details, diff] make src_compile search ECONF_SOURCE for configure script
(In reply to comment #4) > Yes please; you might want to make this a tracker for all the eclasses that do > this too. > I don't know how to do that.
(In reply to comment #5) > Created an attachment (id=119142) [edit] > make src_compile search ECONF_SOURCE for configure script > I should have stated that this new patch is for ebuild.sh, as requested.
(In reply to comment #5) > Created an attachment (id=119142) [edit] > make src_compile search ECONF_SOURCE for configure script Thanks, it's in portage svn r6558.
Applied, thanks for your patience!