Bug 8932

Summary: checkbashism for bbclasses and .bb files
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: zjh <junhuix.zhang>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Undecided CC: bluelightning, jing.j.wang, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description zjh 2016-01-15 06:25:11 UTC

    
Comment 1 jingwang 2016-01-15 06:35:43 UTC
Currently, some bbclass or recipes in poky use bash specific syntax, such as [[]].
on some system /bin/sh is not pointing to /bin/bash, thus when bitbake executes any shell pieces of code, it has a chance to fail on those systems.
Example of such system can be recent Ubuntu where /bin/sh is pointed to dash.
Comment 2 jingwang 2016-01-15 06:41:22 UTC
suggest bitbake can check whether a /bin/sh script contains any bash-specific contructs when parse bb or bbclass.
Comment 3 Paul Eggleton 2016-01-17 22:21:51 UTC
This is already covered by bug 8851.

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