From 8d8da26055e9f6b61f5a61da7d191c2b54944b33 Mon Sep 17 00:00:00 2001 From: Ovidiu Panait Date: Tue, 3 Mar 2020 17:14:52 +0200 Subject: bcc: Replace python3 patch with do_install_append sed Use sed to replace all occurences of /usr/bin/env python with the python3 variant instead of maintaining a patch that does this. Signed-off-by: Ovidiu Panait --- recipes-devtools/bcc/bcc_0.13.0.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'recipes-devtools/bcc/bcc_0.13.0.bb') diff --git a/recipes-devtools/bcc/bcc_0.13.0.bb b/recipes-devtools/bcc/bcc_0.13.0.bb index 2a346c1..6c92b17 100644 --- a/recipes-devtools/bcc/bcc_0.13.0.bb +++ b/recipes-devtools/bcc/bcc_0.13.0.bb @@ -18,7 +18,6 @@ RDEPENDS_${PN} += "bash python3 python3-core" SRC_URI = "git://github.com/iovisor/bcc \ file://0001-Allow-to-build-with-OE-LLVM-cross-compiled-package.patch \ - file://0001-BCC-Use-python-3.patch \ " SRCREV = "942227484d3207f6a42103674001ef01fb5335a0" @@ -35,6 +34,11 @@ EXTRA_OECMAKE = " \ -DPYTHON_CMD=python3 \ " +do_install_append() { + sed -e 's@#!/usr/bin/python@#!/usr/bin/env python3@g' \ + -i $(find ${D}${datadir}/${PN} -type f) +} + FILES_${PN} += "${libdir}/python*/dist-packages" COMPATIBLE_HOST = "(x86_64.*|aarch64.*|powerpc64.*)-linux" -- cgit v1.2.3-54-g00ecf