summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez5/bluez5.inc
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-06-02 12:25:45 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-03 13:13:26 +0100
commiteb45d8353a1d27e265c306c1ce5ddcd9dac81a12 (patch)
tree8bb52243c3069689dd0296586cbb9addc1283371 /meta/recipes-connectivity/bluez5/bluez5.inc
parent48bd64078071888a0a7ed6339f1fc5ff94139089 (diff)
downloadpoky-eb45d8353a1d27e265c306c1ce5ddcd9dac81a12.tar.gz
bluez5: switch to Python 3
(From OE-Core rev: 51250c3dd2bbbdfcc1d9dfba8ed2111335802fe9) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index b3cd8ed5ca..92e360ae16 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -69,6 +69,10 @@ do_install_append() {
69 for f in ${NOINST_TOOLS} ; do 69 for f in ${NOINST_TOOLS} ; do
70 install -m 755 ${B}/$f ${D}/${bindir} 70 install -m 755 ${B}/$f ${D}/${bindir}
71 done 71 done
72
73 # Patch python tools to use Python 3; they should be source compatible, but
74 # still refer to Python 2 in the shebang
75 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/*
72} 76}
73 77
74ALLOW_EMPTY_libasound-module-bluez = "1" 78ALLOW_EMPTY_libasound-module-bluez = "1"
@@ -99,7 +103,7 @@ def get_noinst_tools_paths (d, bb, tools):
99 103
100FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS', True))}" 104FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS', True))}"
101 105
102RDEPENDS_${PN}-testtools += "python python-dbus python-pygobject" 106RDEPENDS_${PN}-testtools += "python3 python3-dbus python3-pygobject"
103 107
104SYSTEMD_SERVICE_${PN} = "bluetooth.service" 108SYSTEMD_SERVICE_${PN} = "bluetooth.service"
105INITSCRIPT_PACKAGES = "${PN}" 109INITSCRIPT_PACKAGES = "${PN}"