From ed88f93cbbbbec6327637e269e456861dfde51a5 Mon Sep 17 00:00:00 2001 From: Xiangyu Chen Date: Sun, 28 May 2023 12:41:06 +0800 Subject: bcc: updating the shebang of python scripts in tools to python3 the upstream changed the shebang of python scripts in tools folder[1], this would cause do_install:append cannot conver all scripts. [1] https://github.com/iovisor/bcc/commit/3f5e402bcadf44ce0250864db52673bf7317797b Signed-off-by: Xiangyu Chen --- dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.26.0.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dynamic-layers') diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.26.0.bb b/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.26.0.bb index 9bd6b4f..ba773b6 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.26.0.bb +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.26.0.bb @@ -55,6 +55,8 @@ EXTRA_OECMAKE = " \ " do_install:append() { + sed -e 's@#!/usr/bin/env python@#!/usr/bin/env python3@g' \ + -i $(find ${D}${datadir}/${PN} -type f) sed -e 's@#!/usr/bin/python@#!/usr/bin/env python3@g' \ -i $(find ${D}${datadir}/${PN} -type f) } -- cgit v1.2.3-54-g00ecf