Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 224505

Summary: sys-power/iasl-20080514 src_test fails
Product: Gentoo Linux Reporter: Pinky <j-pi>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: minor CC: mlm
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: iasl-20080514.ebuild.patch

Description Pinky 2008-06-01 17:39:43 UTC
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
Comment 1 Marek Miller 2008-06-01 19:05:42 UTC
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.
Comment 2 Marek Miller 2008-06-01 20:36:30 UTC
I suggest removing IUSE="test" entirely
and checking only portage FEATURES.
This patch seems to work for me.
Comment 3 Marek Miller 2008-06-01 20:37:17 UTC
Created attachment 155157 [details, diff]
iasl-20080514.ebuild.patch
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-07 02:56:20 UTC
Fixed. Don't use =~ in the bash constructs. Not safe on older versions.