sys-power/iasl-20080514 does not build Reproducible: Always * ERROR: sys-power/iasl-20080514 failed. * Call stack: * ebuild.sh, line 49: Called src_install * environment, line 2472: Called die * The specific snippet of code: * cd "${ASLTSDIR}"/tmp/RESULTS || die "cd ${ASLTSDIR}/tmp/RESULTS failed"; * The die message: * cd /tmp/RESULTS failed --- for some reason ${ASLTSDIR} is not exported
Try FEATURES="test" USE="test" emerge -v1 =iasl-20080514 I think the reason is that ASLTSDIR is exported by aslts_test(), which is called by src_test(), which is called only if FEATURES="test" is enabled. If such behavior is not a bug, the user should be at least informed about it.
I suggest removing IUSE="test" entirely and checking only portage FEATURES. This patch seems to work for me.
Created attachment 155157 [details, diff] iasl-20080514.ebuild.patch
Fixed. Don't use =~ in the bash constructs. Not safe on older versions.