| Summary: | Add bashism checks for shell script functions | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Paul Eggleton <bluelightning> |
| Component: | core | Assignee: | Ross Burton <ross.burton> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium+ | CC: | jose.perez.carranza, junhuix.zhang, meta.mr.watcher, meta.watcher, richard.purdie |
| Version: | 2.0 | ||
| Target Milestone: | 2.2 M4 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Paul Eggleton
2015-12-22 19:35:14 UTC
Since we parse the shell functions, could the parser check for these? *** Bug 8932 has been marked as a duplicate of this bug. *** checkbashisms is 26k of perl, so I don't fancy reimplementing that in Python to be honest! I'm thinking a bit of tooling to extract all the shell scripts from the metadata and run it through checkbashisms would be more practical that verifying on every parse. Well I've made a prototype and it bloody well works! checkbashism is far too slow to do on parse. Merge in oe-core d77fe838ab7631a19e90ff4226f0712e54aa4e22. |