Bug 8932 - checkbashism for bbclasses and .bb files
Summary: checkbashism for bbclasses and .bb files
Status: RESOLVED DUPLICATE of bug 8851
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-15 06:25 UTC by zjh
Modified: 2016-01-17 22:21 UTC (History)
4 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 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 ***