[OE-core] [PATCH 1/1] bootchart2-native: correct python3 path

kai.kang at windriver.com kai.kang at windriver.com
Wed Dec 21 06:32:41 UTC 2016


From: Kai Kang <kai.kang at windriver.com>

Correct python3 path in script pybootchartgui from bootchart2-native.

Signed-off-by: Kai Kang <kai.kang at windriver.com>
---
 meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb b/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb
index 4f01734..dfd3c09 100644
--- a/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb
+++ b/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb
@@ -137,6 +137,10 @@ do_install () {
    sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${bindir}/pybootchartgui
 }
 
+do_install_append_class-native () {
+    sed -i '1s,#!.*,#!${PYTHON},' ${D}${bindir}/pybootchartgui
+}
+
 PACKAGES =+ "pybootchartgui"
 FILES_pybootchartgui += "${PYTHON_SITEPACKAGES_DIR}/pybootchartgui ${bindir}/pybootchartgui"
 RDEPENDS_pybootchartgui = "python3-pycairo python3-compression python3-image python3-textutils python3-shell python3-compression python3-codecs"
-- 
2.10.1




More information about the Openembedded-core mailing list