Bug 5111

Summary: Error for ptest when default shell is dash
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mihai Prica <mihai.prica>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 1.4   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mihai Prica 2013-09-04 08:12:56 UTC
1) Configure dash to be default shell (/bin/sh -> bash);
2) Enable ptest using: DISTRO_FEATURES_append = " ptest";
3) Build a recipe that contains a ptest package (ex strace);
4) Look in the log.do_configure_ptest_base or log.do_compile_ptest_base
and you will find the following error:

108: [: a-t:: unexpected operator

The problem comes from the ptest.bbclass where "type -t" is used to determine if the ptest functions are defined(lines 21,29,42). In dash "type" does not accept -t as a parameter.
Comment 1 Saul Wold 2013-09-11 23:17:54 UTC
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8905f7715d175c834c4d0797b2da7366ee2c8ace

*** This bug has been marked as a duplicate of bug 5128 ***