If you see something like:
* ebuild.sh, line 1239: Called qa_source '/usr/portage/eclass/java-pkg-2.eclass' * ebuild.sh, line 37: Called source '/usr/portage/eclass/java-pkg-2.eclass' * java-pkg-2.eclass, line 10: Called inherit 'java-utils-2' * ebuild.sh, line 1239: Called die * The specific snippet of code: * qa_source "$location" || die "died sourcing $location in inherit()" * The die message: * died sourcing /usr/portage/eclass/java-utils-2.eclass in inherit()
Then it was me. It seems emerge doesn’t like if $? is set to something else than 0 after an eclass has been sourced. If you use /usr/bin/ebuild then Portage doesn’t die. I filed https://bugs.gentoo.org/show_bug.cgi?id=239253 for this inconsistency. So because of this an eclass can’t end with some conditional like
[[ ${FOO} ]] && FOO=laa