Bug 5111 - Error for ptest when default shell is dash
Summary: Error for ptest when default shell is dash
Status: RESOLVED DUPLICATE of bug 5128
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M5
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-09-04 08:12 UTC by Mihai Prica
Modified: 2013-09-11 23:17 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***