From 0bde4b9f0483d05f64862a151ff814570c0efbd2 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Thu, 2 Jun 2016 12:25:47 +0300 Subject: ofono: drop the custom-made revert to Python 2 from Python 3 (From OE-Core rev: 5645bd904b41fb765a03c4246ce6bcc3cda28f9d) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- meta/recipes-connectivity/ofono/ofono.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meta/recipes-connectivity/ofono/ofono.inc') diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc index c415a39981..72bbcacbd5 100644 --- a/meta/recipes-connectivity/ofono/ofono.inc +++ b/meta/recipes-connectivity/ofono/ofono.inc @@ -26,6 +26,10 @@ SYSTEMD_SERVICE_${PN} = "ofono.service" do_install_append() { install -d ${D}${sysconfdir}/init.d/ install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono + + # Ofono still has one test tool that refers to Python 2 in the shebang + sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/ofono/test/set-ddr + } PACKAGES =+ "${PN}-tests" @@ -34,4 +38,4 @@ RDEPENDS_${PN} += "dbus" FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}" FILES_${PN}-tests = "${libdir}/${BPN}/test" -RDEPENDS_${PN}-tests = "python python-pygobject python-dbus" +RDEPENDS_${PN}-tests = "python3 python3-pygobject python3-dbus" -- cgit v1.2.3-54-g00ecf