]> code.ossystems Code Review - openembedded-core.git/commit
perf: Correct the substitution of python shebangs
authorHe Zhe <zhe.he@windriver.com>
Sat, 22 Feb 2020 03:37:24 +0000 (11:37 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 22 Feb 2020 23:51:46 +0000 (23:51 +0000)
commit3f93173130a94310255389cfc62c67102a4fb21b
tree761b040d0483fae8c6f1f6706d5e6ebb8c6c1688
parentbbf9e8ae5e0ce2968e4fef071d3de3ddfdc7463c
perf: Correct the substitution of python shebangs

To make the native python3 always used,

- Use sed one-liner instead
- Add substitution for ${S}/scripts/bpf_helpers_doc.py to fix the
  following warning.

File "/usr/lib/python3.6/sysconfig.py", line 421, in _init_posix
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named '_sysconfigdata'

This issue is first reported by Joel Stanley <joel@jms.id.au>
The sed one-liner is credited to Anuj Mittal <anuj.mittal@intel.com>

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/perf/perf.bb